2008-12-16 02:52:12 +00:00
|
|
|
# Template file for 'shadow'
|
|
|
|
pkgname=shadow
|
|
|
|
version=4.1.2.2
|
2009-04-02 02:00:47 +00:00
|
|
|
revision=2
|
2008-12-16 02:52:12 +00:00
|
|
|
patch_files="$pkgname-enable-pam.diff"
|
|
|
|
distfiles="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$pkgname-$version.tar.bz2"
|
|
|
|
build_style=gnu_configure
|
2009-03-13 22:55:25 +00:00
|
|
|
configure_args="--libdir=/lib --enable-shared --disable-static
|
|
|
|
--with-libpam --without-selinux"
|
2008-12-16 02:52:12 +00:00
|
|
|
short_desc="Shadow password file utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=378fbfb0e8bb8c87be239fccd692818871f763206bb7d881744f4fa72dc6b491
|
|
|
|
long_desc="
|
|
|
|
Shadow password file utilities for GNU/Linux."
|
|
|
|
|
|
|
|
conf_files="/etc/pam.d/usermod /etc/pam.d/userdel /etc/pam.d/useradd
|
|
|
|
/etc/pam.d/su /etc/pam.d/passwd /etc/pam.d/newusers /etc/pam.d/login
|
|
|
|
/etc/pam.d/groupmod /etc/pam.d/groupmems /etc/pam.d/groupdel
|
|
|
|
/etc/pam.d/groupadd /etc/pam.d/chsh /etc/pam.d/chpasswd
|
|
|
|
/etc/pam.d/chgpasswd /etc/pam.d/chfn /etc/pam.d/chage /etc/defaults/useradd
|
2009-03-08 23:48:07 +00:00
|
|
|
/etc/pam.d/other /etc/login.defs"
|
2009-02-25 05:15:20 +00:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full pam
|
2008-12-16 02:52:12 +00:00
|
|
|
|
|
|
|
pre_build()
|
|
|
|
{
|
|
|
|
# Don't install the groups cmd, we use the one from coreutils.
|
|
|
|
cd $wrksrc && \
|
|
|
|
sed -i 's/groups$(EXEEXT) //' src/Makefile && \
|
|
|
|
find man -name Makefile -exec sed -i 's/groups\.1 / /' {}
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Use the same auth file for all these cmds.
|
|
|
|
for f in chpasswd chgpasswd groupadd groupdel groupmems \
|
2009-03-08 23:48:07 +00:00
|
|
|
groupmod newusers useradd userdel usermod other; do
|
2009-03-11 05:31:56 +00:00
|
|
|
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
|
2008-12-16 02:52:12 +00:00
|
|
|
done
|
2009-03-28 17:50:38 +00:00
|
|
|
|
|
|
|
# Install the cron daily job.
|
2009-03-29 05:23:39 +00:00
|
|
|
install -D -m744 ${FILESDIR}/shadow.cron-daily \
|
2009-03-28 17:50:38 +00:00
|
|
|
${DESTDIR}/etc/cron.daily/shadow
|
2008-12-16 02:52:12 +00:00
|
|
|
}
|