shadow: build PIE binaries by default.
This commit is contained in:
parent
51f62353b7
commit
f991c6923a
1 changed files with 12 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'shadow'
|
||||
pkgname=shadow
|
||||
version=4.1.4.3
|
||||
revision=3
|
||||
revision=4
|
||||
distfiles="http://pkg-shadow.alioth.debian.org/releases/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/lib --enable-shared --disable-static
|
||||
|
@ -13,27 +13,28 @@ 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"
|
||||
/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"
|
||||
|
||||
Add_dependency build pam-devel
|
||||
Add_dependency build gettext
|
||||
|
||||
pre_build()
|
||||
{
|
||||
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()
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue