|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
@ -20,35 +21,35 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
libdir="$root/$multilib" |
|
|
|
|
|
|
|
pc_shadow() { |
|
|
|
# Need to rebuild libtool files, resolve possible version conflicts |
|
|
|
libtoolize --copy --force |
|
|
|
} |
|
|
|
|
|
|
|
pm_shadow() { |
|
|
|
cp etc/limits etc/login.access $root/etc/ |
|
|
|
cp etc/login.defs $root/etc/login.defs |
|
|
|
if [ -d $root/etc/pam.d ]; then |
|
|
|
for x in etc/pam.d/[a-z]*; do |
|
|
|
[[ "$x" == *.orig ]] && continue |
|
|
|
if [ -f $root/$x ]; then |
|
|
|
touch $root/$x |
|
|
|
cp etc/{limits,login.access,login.defs} $sysconfdir/ |
|
|
|
if [ -d $sysconfdir/pam.d ]; then |
|
|
|
for x in $(cd etc/ ; ls pam.d/[a-z]* ) ; do |
|
|
|
[[ "etc/$x" == *.orig ]] && continue |
|
|
|
if [ -f $sysconfdir/$x ]; then |
|
|
|
touch $sysconfdir/$x |
|
|
|
else |
|
|
|
cp $x $root/$x |
|
|
|
cp etc/$x $sysconfdir/$x |
|
|
|
fi |
|
|
|
done |
|
|
|
sed -e 's,^\(.*loginuid\),#\1,' -i ${root}/etc/pam.d/login |
|
|
|
sed -e 's,^\(.*loginuid\),#\1,' -i $sysconfdir/pam.d/login |
|
|
|
fi |
|
|
|
touch $root/var/log/lastlog $root/var/log/faillog |
|
|
|
mkdir -p $localstatedir/log |
|
|
|
touch $localstatedir/log/{lastlog,faillog} |
|
|
|
[ -f $root/usr/bin/login ] && mv $root/usr/bin/login $root/bin/ |
|
|
|
[ -f $root/usr/bin/su ] && mv $root/usr/bin/su $root/bin/ |
|
|
|
mkdir -p $root/etc/default |
|
|
|
echo 'SHELL=/bin/bash' > $root/etc/default/useradd |
|
|
|
mkdir -p $sysconfdir/default |
|
|
|
echo 'SHELL=/bin/bash' > $sysconfdir/default/useradd |
|
|
|
} |
|
|
|
|
|
|
|
preconf="pc_shadow" |
|
|
|
postmake="pm_shadow" |
|
|
|
|
|
|
|
confopt="$confopt --enable-shared --disable-desrpc --without-selinux" |
|
|
|
libdir="$root/lib" |
|
|
|
|
|
|
|
var_append extraconfopt " " "--enable-shared --disable-desrpc --without-selinux" |