Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Shadow password file utilities |
2 | # URL: http://pkg-shadow.alioth.debian.org/ | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=shadow | |
1f3fed7f VM |
8 | version=4.1.5.1 |
9 | release=3 | |
e9af0b5a | 10 | source=(http://ftp.cross-lfs.org/pub/clfs/conglomeration/shadow/$name-$version.tar.bz2 |
6dca1d21 JB |
11 | pwck login.defs) |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
1f3fed7f VM |
15 | |
16 | echo "ac_cv_func_setpgrp_void=yes" >> config.cache | |
17 | ||
7649a0ac VM |
18 | # Fix first configure to point to the right place |
19 | sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i aclocal.m4 | |
20 | ||
6dca1d21 JB |
21 | ./configure --build=$CHOST \ |
22 | --host=$CTARGET \ | |
23 | --prefix=/usr \ | |
24 | --mandir=/usr/man \ | |
25 | --sysconfdir=/etc \ | |
26 | --disable-shared \ | |
27 | --disable-shadowgrp \ | |
28 | --disable-nls \ | |
29 | --without-selinux \ | |
30 | --without-libpam \ | |
31 | --without-audit \ | |
32 | --cache-file=config.cache | |
33 | ||
7649a0ac VM |
34 | # Forcing libtool to prioritize our sysroot |
35 | sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i libtool | |
36 | ||
6dca1d21 JB |
37 | make |
38 | make DESTDIR=$PKG install | |
39 | ||
40 | install -d $PKG/etc/cron/daily $PKG/var/log | |
41 | install -m 644 $SRC/login.defs $PKG/etc | |
42 | install -m 755 $SRC/pwck $PKG/etc/cron/daily | |
43 | mv $PKG/bin/{su,groups} $PKG/usr/bin | |
44 | touch $PKG/var/log/{lastlog,faillog} | |
45 | ||
46 | rm -r $PKG/usr/bin/gpasswd \ | |
47 | $PKG/usr/man/man1/gpasswd.1 \ | |
48 | $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \ | |
49 | $PKG/usr/sbin/{newusers,pwconv,pwunconv} \ | |
50 | $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \ | |
51 | $PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} \ | |
52 | $PKG/usr/man/man5/gshadow.5 \ | |
53 | $PKG/usr/man/man3 \ | |
54 | $PKG/etc/{login.access,limits,default} | |
55 | } |