85cc462e1d
* Moved helpers, common and triggers dirs into xbps-src, where they belong. * Renamed the templates dir to srcpkgs, it was so redundant before. * Make it possible to add subpkgs with no restriction in names, for example udev now has a subpkgs called "libgudev". Previously subpkgs were named "${sourcepkg}-${pkgname}". * xbps-src: changed to look for template files in current directory. That means that most arguments from the targets have been removed. * xbps-src: added a reinstall target, to remove + install. * xbps-src: do not overwrite binpkgs by default, skip them. And more that I forgot because it's a mega-commit that I've been working for some days already... --HG-- extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
# Template file for 'shadow'
|
|
pkgname=shadow
|
|
version=4.1.4.2
|
|
revision=1
|
|
distfiles="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$pkgname-$version.tar.bz2"
|
|
build_style=gnu_configure
|
|
configure_args="--libdir=/lib --enable-shared --disable-static
|
|
--with-libpam --without-selinux"
|
|
short_desc="Shadow password file utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
checksum=97987f6a7967a85e6aa0dba2a1d52db8bd69af5a717391de5693db768fb78990
|
|
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
|
|
/etc/pam.d/other /etc/login.defs"
|
|
|
|
Add_dependency full glibc
|
|
Add_dependency full pam
|
|
Add_dependency build gettext
|
|
|
|
pre_build()
|
|
{
|
|
# Don't install the groups cmd, we use the one from coreutils.
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|