2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Shadow password file utilities
|
|
|
|
|
# URL: http://shadow.pld.org.pl/
|
2006-04-08 14:39:04 +00:00
|
|
|
|
# Packager: Per Lid<69>n, per at fukt dot bth dot se
|
|
|
|
|
# Maintainer: Johannes Winkelmann, jw at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=shadow
|
2006-03-22 23:35:41 +00:00
|
|
|
|
version=4.0.15
|
2006-04-12 09:12:13 +00:00
|
|
|
|
release=4
|
2006-02-23 18:15:03 +00:00
|
|
|
|
source=(ftp://ftp.pld.org.pl/software/shadow/$name-$version.tar.bz2 \
|
2006-04-08 14:39:04 +00:00
|
|
|
|
pwck login.defs \
|
|
|
|
|
shadow-4.0.15-noshadowgrp.diff \
|
|
|
|
|
shadow-fix-useradd-usergroups.patch\
|
2006-04-12 09:12:13 +00:00
|
|
|
|
shadow-4.0.15-nflg-conflict.diff \
|
|
|
|
|
useradd-usergroup.diff)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-$version
|
2006-03-23 11:18:04 +00:00
|
|
|
|
patch -p1 < $SRC/shadow-4.0.15-noshadowgrp.diff
|
2006-04-08 14:39:04 +00:00
|
|
|
|
patch src/useradd.c $SRC/shadow-fix-useradd-usergroups.patch
|
|
|
|
|
patch src/useradd.c $SRC/shadow-4.0.15-nflg-conflict.diff
|
2006-04-12 09:12:13 +00:00
|
|
|
|
patch src/useradd.c $SRC/useradd-usergroup.diff
|
2006-03-23 11:18:04 +00:00
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--disable-shared \
|
2006-04-08 14:39:04 +00:00
|
|
|
|
--disable-shadowgrp \
|
2006-02-23 18:15:03 +00:00
|
|
|
|
--disable-nls \
|
2006-04-08 14:39:04 +00:00
|
|
|
|
--without-selinux
|
2006-02-23 15:26:10 +00:00
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
mkdir -p $PKG/etc/cron/daily $PKG/var/log
|
|
|
|
|
install -m 644 ../login.defs $PKG/etc
|
|
|
|
|
install -m 755 ../pwck $PKG/etc/cron/daily
|
|
|
|
|
mv $PKG/bin/{su,groups} $PKG/usr/bin
|
|
|
|
|
touch $PKG/var/log/lastlog
|
|
|
|
|
rm -rf $PKG/usr/bin/gpasswd \
|
|
|
|
|
$PKG/usr/man/man1/gpasswd.1 \
|
|
|
|
|
$PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \
|
|
|
|
|
$PKG/usr/sbin/{mkpasswd,newusers,pwconv,pwunconv} \
|
|
|
|
|
$PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \
|
|
|
|
|
$PKG/usr/man/man8/{mkpasswd.8,newusers.8,pwconv.8,pwunconv.8} \
|
2006-02-23 18:15:03 +00:00
|
|
|
|
$PKG/usr/man/{man3,cs,de,es,fi,tr,fr,hu,id,it,ja,ko,pl,pt_BR,ru,zh_CN,zh_TW} \
|
2006-02-23 15:26:10 +00:00
|
|
|
|
$PKG/lib
|
|
|
|
|
}
|