#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-shadow VERSION=4.0.6 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux mkdir -p $PKG ( cd $TMP tar xjf $CWD/shadow-$VERSION.tar.bz2 cd shadow-$VERSION chown -R root.root . zcat $CWD/shadow.login.defs.diff.gz | patch -p0 --verbose zcat $CWD/shadow.newgrp.getlogin.gz | patch -p1 --verbose zcat $CWD/shadow.audiovideocdrom.diff.gz | patch -p1 --verbose #zcat $CWD/xmalloc.c.diff.gz | patch -p1 --verbose ./configure --prefix=/usr \ --disable-shared \ --disable-desrpc \ $TARGET make make install DESTDIR=$PKG mkdir -p $PKG/etc cat etc/login.defs.linux > $PKG/etc/login.defs.new cat etc/login.access > $PKG/etc/login.access.new cat $CWD/adduser > $PKG/usr/sbin/adduser ; chmod 755 $PKG/usr/sbin/adduser cd src mkdir -p $PKG/sbin cp sulogin $PKG/sbin cd .. mkdir -p $PKG/var/log ; touch $PKG/var/log/faillog.new #rm -rf $PKG/bin/groups ( cd $PKG ( find . -type f | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) ( cd bin ; ln -sf /sbin/sulogin sulogin ) ) gzip -9 $PKG/usr/man/*/man?/* $PKG/usr/man/man?/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/shadow-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/shadow.build.log