summaryrefslogtreecommitdiff
path: root/shadow/Pkgfile
blob: e166f65326176bdc90aa88e05ffe86fc3fa93f50 (plain)
    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 # Depends on:  acl
    5 
    6 name=shadow
    7 version=4.1.5
    8 release=2
    9 source=(http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.bz2
   10         pwck login.defs
   11         $name-$version-{copydir,nscd}.patch)
   12 
   13 build() {
   14     cd $name-$version
   15    
   16     patch -p2 -i $SRC/$name-$version-copydir.patch
   17     patch -p2 -i $SRC/$name-$version-nscd.patch
   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                 --without-audit
   28 
   29     make
   30     make DESTDIR=$PKG install
   31 
   32     install -d $PKG/etc/cron/daily $PKG/var/log
   33     install -m 644 $SRC/login.defs $PKG/etc
   34     install -m 755 $SRC/pwck $PKG/etc/cron/daily
   35     mv $PKG/bin/{su,groups} $PKG/usr/bin
   36     touch $PKG/var/log/{lastlog,faillog}
   37 
   38     rm -r $PKG/usr/bin/gpasswd \
   39           $PKG/usr/man/man1/gpasswd.1 \
   40           $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
   41           $PKG/usr/sbin/{newusers,pwconv,pwunconv} \
   42           $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
   43           $PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} \
   44           $PKG/usr/man/man5/gshadow.5 \
   45           $PKG/usr/man/man3 \
   46           $PKG/etc/{login.access,limits,default}
   47 }

Generated by cgit