# Depends on:
name=shadow
-version=4.1.5.1
-release=3
-source=(http://ftp.cross-lfs.org/pub/clfs/conglomeration/shadow/$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