summaryrefslogtreecommitdiff
path: root/shadow/Pkgfile
blob: 5d8a5c1b2e21f9792f6784dfd859006c59aedd5a (plain)
    1 # Description: Shadow password file utilities
    2 # URL:         http://shadow.pld.org.pl/
    3 # Packager:    Per Lidén, per at fukt dot bth dot se
    4 # Maintainer:  Johannes Winkelmann, jw at crux dot nu
    5 
    6 name=shadow
    7 version=4.0.18.1
    8 release=4
    9 source=(ftp://ftp.pld.org.pl/software/shadow/$name-$version.tar.bz2
   10         pwck login.defs
   11         shadow-4.0.16-fix-useradd-usergroups.patch
   12         shadow-4.0.18.1-useradd-usermod.diff)
   13 
   14 build() {
   15     cd $name-$version
   16     patch -p0 < $SRC/shadow-4.0.16-fix-useradd-usergroups.patch
   17     patch -p1 < $SRC/shadow-4.0.18.1-useradd-usermod.diff
   18 
   19     ./configure --prefix=/usr \
   20                 --mandir=/usr/man \
   21                 --sysconfdir=/etc \
   22                 --disable-shared \
   23                 --disable-shadowgrp \
   24                 --disable-nls \
   25                 --without-selinux \
   26                 --without-libpam
   27 
   28     make
   29     make DESTDIR=$PKG install
   30     mkdir -p $PKG/etc/cron/daily $PKG/var/log
   31     install -m 644 ../login.defs $PKG/etc
   32     install -m 755 ../pwck $PKG/etc/cron/daily
   33     mv $PKG/bin/{su,groups} $PKG/usr/bin
   34     touch $PKG/var/log/lastlog
   35     rm -rf $PKG/usr/bin/gpasswd \
   36 	   $PKG/usr/man/man1/gpasswd.1 \
   37 	   $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
   38 	   $PKG/usr/sbin/{mkpasswd,newusers,pwconv,pwunconv} \
   39 	   $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
   40 	   $PKG/usr/man/man8/{mkpasswd.8,newusers.8,pwconv.8,pwunconv.8} \
   41 	   $PKG/usr/man/{man3,cs,de,es,fi,tr,fr,hu,id,it,ja,ko,pl,pt_BR,ru,zh_CN,zh_TW} \
   42 	   $PKG/lib \
   43            $PKG/etc/{login.access,limits,default}
   44 
   45 }

Generated by cgit