shadow: rebuild for -dbg pkg; cross build support.

This commit is contained in:
Juan RP 2013-02-11 12:46:45 +01:00
parent 77807589d8
commit d38603208f

View file

@ -1,20 +1,20 @@
# Template file for 'shadow' # Template file for 'shadow'
pkgname=shadow pkgname=shadow
version=4.1.5.1 version=4.1.5.1
revision=11 revision=12
build_style=gnu-configure build_style=gnu-configure
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --enable-shared --disable-static --libdir=/usr/lib --enable-shared --disable-static
--with-libpam --without-selinux --with-acl --with-attr" --with-libpam --without-selinux --with-acl --with-attr"
depends="pam"
makedepends="acl-devel pam-devel" makedepends="acl-devel pam-devel"
crossmakedepends="${makedepends}"
short_desc="Shadow password file utilities" short_desc="Shadow password file utilities"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD" license="BSD"
homepage="http://pkg-shadow.alioth.debian.org" homepage="http://pkg-shadow.alioth.debian.org"
distfiles="$homepage/releases/$pkgname-$version.tar.bz2" distfiles="$homepage/releases/$pkgname-$version.tar.bz2"
checksum=aa32333748d68b58ed3a83625f0165e0f6b9dc4639e6377c9300c6bf4fe978fb checksum=aa32333748d68b58ed3a83625f0165e0f6b9dc4639e6377c9300c6bf4fe978fb
long_desc="
Shadow password file utilities for GNU/Linux."
conf_files=" conf_files="
/etc/pam.d/usermod /etc/pam.d/usermod
@ -37,6 +37,13 @@ conf_files="
CFLAGS="-fPIE" CFLAGS="-fPIE"
LDFLAGS="-pie" LDFLAGS="-pie"
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
makedepends="automake gettext-devel"
pre_configure() {
autoreconf -fi
}
fi
pre_build() { pre_build() {
# Don't install the groups cmd, we use the one from coreutils. # Don't install the groups cmd, we use the one from coreutils.
sed -i 's/groups$(EXEEXT) //' src/Makefile sed -i 's/groups$(EXEEXT) //' src/Makefile