CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
d41a2c62f7a092f8516ec278e8fae95aea055ab9
[crossrootfs.git] / shadow / Pkgfile
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
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=shadow
8 version=4.1.4.2
9 release=1
10 source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2 \
11 pwck login.defs)
12
13 build() {
14 cd $name-$version
15 cat > config.cache << EOF
16 ac_cv_func_setpgrp_void=yes
17 EOF
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --mandir=/usr/man \
22 --sysconfdir=/etc \
23 --disable-shared \
24 --disable-shadowgrp \
25 --disable-nls \
26 --without-selinux \
27 --without-libpam \
28 --without-audit \
29 --cache-file=config.cache
30
31 make
32 make DESTDIR=$PKG install
33
34 install -d $PKG/etc/cron/daily $PKG/var/log
35 install -m 644 $SRC/login.defs $PKG/etc
36 install -m 755 $SRC/pwck $PKG/etc/cron/daily
37 mv $PKG/bin/{su,groups} $PKG/usr/bin
38 touch $PKG/var/log/{lastlog,faillog}
39
40 rm -r $PKG/usr/bin/gpasswd \
41 $PKG/usr/man/man1/gpasswd.1 \
42 $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
43 $PKG/usr/sbin/{newusers,pwconv,pwunconv} \
44 $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
45 $PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} \
46 $PKG/usr/man/man5/gshadow.5 \
47 $PKG/usr/man/man3 \
48 $PKG/etc/{login.access,limits,default}
49 }