summaryrefslogtreecommitdiffstats
path: root/shadow
diff options
context:
space:
mode:
Diffstat (limited to 'shadow')
-rw-r--r--shadow/Pkgfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/shadow/Pkgfile b/shadow/Pkgfile
index 28b671a..6d4e55a 100644
--- a/shadow/Pkgfile
+++ b/shadow/Pkgfile
@@ -11,7 +11,13 @@ source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2
build ()
{
cd $name-$version;
+ # FIXME: Problème de portabilité ?
+ if [[ "$CBUILD" != "$CHOST" ]]; then
+ echo "ac_cv_func_setpgrp_void=yes" > config.cache
+ fi
./configure \
+ ${CBUILD:+--build=${CBUILD}} \
+ ${CHOST:+--host=${CHOST}} \
--prefix=$prefix \
--mandir=$mandir \
--sysconfdir=$sysconfdir \
@@ -20,7 +26,8 @@ build ()
$(use_enable nls) \
--without-selinux \
--without-libpam \
- --without-audit;
+ --without-audit \
+ --cache-file=config.cache;
make;
make DESTDIR=$PKG install;
install -d $PKG/etc/cron/daily $PKG/var/log;