2008-12-16 02:52:12 +00:00
|
|
|
# Template file for 'shadow'
|
|
|
|
pkgname=shadow
|
2009-07-29 10:39:48 +00:00
|
|
|
version=4.1.4.2
|
2010-02-17 04:40:55 +00:00
|
|
|
revision=3
|
2008-12-16 02:52:12 +00:00
|
|
|
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>"
|
2009-07-29 10:39:48 +00:00
|
|
|
checksum=97987f6a7967a85e6aa0dba2a1d52db8bd69af5a717391de5693db768fb78990
|
2008-12-16 02:52:12 +00:00
|
|
|
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
|
|
|
|
2010-01-17 21:50:00 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
# Require this version for pam_namespace(8) setup.
|
|
|
|
Add_dependency run pam ">=1.1.1_3"
|
|
|
|
Add_dependency build pam-devel
|
2009-10-30 21:14:09 +00:00
|
|
|
Add_dependency build gettext
|
2008-12-16 02:52:12 +00:00
|
|
|
|
|
|
|
pre_build()
|
|
|
|
{
|
|
|
|
# Don't install the groups cmd, we use the one from coreutils.
|
2009-10-15 23:22:18 +00:00
|
|
|
cd $wrksrc || return 1
|
|
|
|
sed -i 's/groups$(EXEEXT) //' src/Makefile
|
|
|
|
for f in $(find man -name Makefile); do
|
|
|
|
sed -i 's/groups\.1 / /' $f
|
|
|
|
done
|
2008-12-16 02:52:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-04-21 15:55:02 +00:00
|
|
|
# Install our pam files not the ones supplied with shadow.
|
|
|
|
rm -f ${DESTDIR}/etc/pam.d/*
|
|
|
|
for f in chage login passwd su other; do
|
|
|
|
install -m644 ${FILESDIR}/${f}.pam ${DESTDIR}/etc/pam.d/${f}
|
|
|
|
done
|
2008-12-16 02:52:12 +00:00
|
|
|
for f in chpasswd chgpasswd groupadd groupdel groupmems \
|
2009-05-08 16:34:58 +00:00
|
|
|
groupmod newusers useradd userdel usermod chsh chfn; 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-04-21 15:55:02 +00:00
|
|
|
install -m644 ${FILESDIR}/login.defs ${DESTDIR}/etc
|
2009-03-28 17:50:38 +00:00
|
|
|
|
2009-04-08 01:22:28 +00:00
|
|
|
# Disable creating mailbox files by default.
|
|
|
|
sed -i -e 's/yes/no/' $DESTDIR/etc/default/useradd
|
|
|
|
|
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
|
2009-04-21 15:55:02 +00:00
|
|
|
|
|
|
|
# Remove unused files due to PAM.
|
|
|
|
for f in login.access limits; do
|
|
|
|
[ -f ${DESTDIR}/etc/${f} ] && rm -f ${DESTDIR}/etc/${f}
|
|
|
|
done
|
2009-08-01 08:45:18 +00:00
|
|
|
# Remove groups.1 manpages that comes with coreutils.
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man1/groups.1
|
2008-12-16 02:52:12 +00:00
|
|
|
}
|