# hdw - linux shadow package # # author: hackbard@hackdaworld.dyndns.org # # [V] 4.0.11.1 # [S] 2-15 # [D] shadow-4.0.11.1.tar.bz2 ftp://ftp.pld.org.pl/software/shadow/ confopt="$confopt --libdir=$root/lib --enable-shared --enable-shadowgrp" build_main() { ./configure $confopt sed 's/groups$(EXEEXT) //' src/Makefile > tmp~ mv tmp~ src/Makefile sed '/groups/d' man/Makefile > tmp~ mv tmp~ man/Makefile make $make_conf make $install_conf install } post_install() { cp etc/{limits,login.access} $root/etc sed -e 's%/var/spool/mail%/var/mail%' \ -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \ etc/login.defs.linux > $root/etc/login.defs for i in login passwd; do [ -f $prefix/bin/$i ] && mv $prefix/bin/$i $root/bin done mv $root/lib/libshadow.*a $prefix/lib ln -sf ../../lib/libshadow.so.0 $prefix/lib/libshadow.so mkdir -p $root/etc/default }