From d38603208f9a5283d10c1cbc9fcd9714015e8bea Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 Feb 2013 12:46:45 +0100 Subject: [PATCH] shadow: rebuild for -dbg pkg; cross build support. --- srcpkgs/shadow/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template index 698b9b6c76..c81b1af278 100644 --- a/srcpkgs/shadow/template +++ b/srcpkgs/shadow/template @@ -1,20 +1,20 @@ # Template file for 'shadow' pkgname=shadow version=4.1.5.1 -revision=11 +revision=12 build_style=gnu-configure configure_args="--bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib --enable-shared --disable-static --with-libpam --without-selinux --with-acl --with-attr" +depends="pam" makedepends="acl-devel pam-devel" +crossmakedepends="${makedepends}" short_desc="Shadow password file utilities" maintainer="Juan RP " license="BSD" 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 @@ -37,6 +37,13 @@ conf_files=" CFLAGS="-fPIE" LDFLAGS="-pie" +if [ -n "$XBPS_CROSS_TRIPLET" ]; then + makedepends="automake gettext-devel" + pre_configure() { + autoreconf -fi + } +fi + pre_build() { # Don't install the groups cmd, we use the one from coreutils. sed -i 's/groups$(EXEEXT) //' src/Makefile