2008-12-16 03:52:12 +01:00
|
|
|
# Template file for 'shadow'
|
|
|
|
pkgname=shadow
|
2011-03-03 09:50:51 +01:00
|
|
|
version=4.1.4.3
|
2012-01-22 21:02:45 +01:00
|
|
|
revision=4
|
2011-07-03 14:33:58 +02:00
|
|
|
distfiles="http://pkg-shadow.alioth.debian.org/releases/$pkgname-$version.tar.bz2"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-03-13 23:55:25 +01:00
|
|
|
configure_args="--libdir=/lib --enable-shared --disable-static
|
|
|
|
--with-libpam --without-selinux"
|
2008-12-16 03:52:12 +01:00
|
|
|
short_desc="Shadow password file utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-03-03 09:50:51 +01:00
|
|
|
checksum=633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778
|
2008-12-16 03:52:12 +01:00
|
|
|
long_desc="
|
|
|
|
Shadow password file utilities for GNU/Linux."
|
|
|
|
|
|
|
|
conf_files="/etc/pam.d/usermod /etc/pam.d/userdel /etc/pam.d/useradd
|
2012-01-22 21:02:45 +01:00
|
|
|
/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
|
|
|
|
/etc/pam.d/other /etc/login.defs"
|
|
|
|
|
|
|
|
# Build PIE binaries by default.
|
|
|
|
CFLAGS="-fPIE"
|
|
|
|
LDFLAGS="-pie"
|
2009-02-25 06:15:20 +01:00
|
|
|
|
2010-01-17 22:50:00 +01:00
|
|
|
Add_dependency build pam-devel
|
2009-10-30 22:14:09 +01:00
|
|
|
Add_dependency build gettext
|
2008-12-16 03:52:12 +01:00
|
|
|
|
2012-01-22 21:02:45 +01:00
|
|
|
pre_build() {
|
2008-12-16 03:52:12 +01:00
|
|
|
# Don't install the groups cmd, we use the one from coreutils.
|
2009-10-16 01:22:18 +02:00
|
|
|
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 03:52:12 +01:00
|
|
|
}
|
|
|
|
|
2012-01-22 21:02:45 +01:00
|
|
|
post_install() {
|
2009-04-21 17:55:02 +02: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 03:52:12 +01:00
|
|
|
for f in chpasswd chgpasswd groupadd groupdel groupmems \
|
2009-05-08 18:34:58 +02:00
|
|
|
groupmod newusers useradd userdel usermod chsh chfn; do
|
2009-03-11 06:31:56 +01:00
|
|
|
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
|
2008-12-16 03:52:12 +01:00
|
|
|
done
|
2009-04-21 17:55:02 +02:00
|
|
|
install -m644 ${FILESDIR}/login.defs ${DESTDIR}/etc
|
2009-03-28 18:50:38 +01:00
|
|
|
|
2009-04-08 03:22:28 +02:00
|
|
|
# Disable creating mailbox files by default.
|
|
|
|
sed -i -e 's/yes/no/' $DESTDIR/etc/default/useradd
|
|
|
|
|
2009-03-28 18:50:38 +01:00
|
|
|
# Install the cron daily job.
|
2009-03-29 07:23:39 +02:00
|
|
|
install -D -m744 ${FILESDIR}/shadow.cron-daily \
|
2009-03-28 18:50:38 +01:00
|
|
|
${DESTDIR}/etc/cron.daily/shadow
|
2009-04-21 17:55:02 +02: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 10:45:18 +02:00
|
|
|
# Remove groups.1 manpages that comes with coreutils.
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man1/groups.1
|
2008-12-16 03:52:12 +01:00
|
|
|
}
|