CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
autoconf: updated source
[crossrootfs.git] / shadow / Pkgfile
index d570a5e502a023bb4fcf6ba066e0a1d0bc14dfb2..5ec96b7e422520b3668cf5fa461551f10f6890d1 100644 (file)
@@ -5,16 +5,23 @@
 # Depends on:
 
 name=shadow
-version=4.1.5.1
-release=3
-source=(http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.bz2 \
+version=4.5
+release=2
+source=(https://github.com/shadow-maint/shadow/releases/download/$version/shadow-$version.tar.xz
+        CVE-2018-7169.patch
         pwck login.defs)
 
 build() {
   cd $name-$version
 
+  # https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1729357
+  patch -p1 -i $SRC/CVE-2018-7169.patch
+
   echo "ac_cv_func_setpgrp_void=yes" >> config.cache
 
+  # Fix first configure to point to the right place
+  sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i aclocal.m4
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
@@ -28,6 +35,9 @@ build() {
               --without-audit \
               --cache-file=config.cache
 
+  # Forcing libtool to prioritize our sysroot
+  sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i libtool
+
   make
   make DESTDIR=$PKG install