void-packages/srcpkgs/shadow/template

64 lines
2.1 KiB
Plaintext
Raw Normal View History

# Template file for 'shadow'
pkgname=shadow
2012-07-02 09:17:03 +02:00
version=4.1.5.1
2012-07-09 15:50:23 +02:00
revision=2
build_style=gnu-configure
2012-07-09 15:50:23 +02:00
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --enable-shared --disable-static
2012-02-14 08:49:16 +01:00
--with-libpam --without-selinux --with-acl --with-attr"
makedepends="acl-devel pam-devel"
short_desc="Shadow password file utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-02-06 10:10:43 +01:00
license="BSD"
2012-07-02 09:17:03 +02:00
homepage="http://pkg-shadow.alioth.debian.org"
distfiles="$homepage/releases/$pkgname-$version.tar.bz2"
checksum=aa32333748d68b58ed3a83625f0165e0f6b9dc4639e6377c9300c6bf4fe978fb
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"
2012-01-22 21:02:45 +01:00
pre_build() {
# Don't install the groups cmd, we use the one from coreutils.
sed -i 's/groups$(EXEEXT) //' src/Makefile
for f in $(find man -name Makefile); do
sed -i 's/groups\.1 / /' $f
done
}
2012-01-22 21:02:45 +01:00
post_install() {
# 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
for f in chpasswd chgpasswd groupadd groupdel groupmems \
groupmod newusers useradd userdel usermod chsh chfn; do
install -m644 $DESTDIR/etc/pam.d/chage $DESTDIR/etc/pam.d/${f}
done
install -m644 ${FILESDIR}/login.defs ${DESTDIR}/etc
# Disable creating mailbox files by default.
sed -i -e 's/yes/no/' $DESTDIR/etc/default/useradd
# Install the cron daily job.
install -D -m744 ${FILESDIR}/shadow.cron-daily \
${DESTDIR}/etc/cron.daily/shadow
# Remove unused files due to PAM.
for f in login.access limits; do
[ -f ${DESTDIR}/etc/${f} ] && rm -f ${DESTDIR}/etc/${f}
done
# Remove groups.1 manpages that comes with coreutils.
rm -f ${DESTDIR}/usr/share/man/man1/groups.1
}