|
From: Serge L. <sma...@us...> - 2007-10-23 06:47:12
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv25266 Modified Files: nfs-utils Added Files: rng-tools cryptsetup Log Message: - added rng-tools, cryptsetup --- NEW FILE: rng-tools --- #!/bin/bash # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: rng-tools # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=RNGTOOLS case $1 in build ) if [ "$CONFIG_RNGTOOLS" = "y" ]; then ./configure CFLAGS="-Wall -pipe -02" --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_RNGTOOLS" = "y" ]; then rm -rf $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 copy_docs $TMPDIR/usr || exit 1 copy_files $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 cp $MYDIR/scripts/rngd $ETCDIR/etc/init.d || exit 1 echo "# Start rngd?" >> $CONFIGFILE echo "START_RNGD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HRNGDEVICE=/dev/hw_random" >> $CONFIGFILE echo "HELP_$MYNAME=\"$MYNAME contains the rngd daemon. It acts as a bridge between a Hardware TRNG (true random number generator) such as the ones in some Intel/AMD/VIA chipsets, and the kernel's PRNG (pseudo-random number generator). \"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: cryptsetup --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/cryptsetup,v $ # $Revision: 1.1 $ # $Date: 2007/10/23 06:47:03 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: cryptsetup # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) ./configure --prefix=/usr --disable-nls || exit 1 make || exit 1 ;; install ) rm -rf $TMPDIR mkdir $TMPDIR make install DESTDIR=$TMPDIR || exit 1 rm -rf $TMPDIR/usr/include || exit 1 rm -rf $TMPDIR/usr/lib/*la || exit 1 cp -ar $TMPDIR/usr $CDDIR/ || exit 1 rm -rf $TMPDIR ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: nfs-utils =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/nfs-utils,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- nfs-utils 31 Aug 2007 14:05:20 -0000 1.5 +++ nfs-utils 23 Oct 2007 06:47:03 -0000 1.6 @@ -26,17 +26,18 @@ case $1 in build ) if [ "$CONFIG_NFSD" = "y" ]; then - ./configure --prefix=/usr --disable-gss || exit 1 - make || exit 1 - strip_debug - fi + ./configure --prefix=/usr --disable-gss || exit 1 + make || exit 1 + strip_debug + fi ;; install ) if [ "$CONFIG_NFSD" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 - make install DESTDIR=$CDDIR || exit 1 + make install DESTDIR=$TMPDIR || exit 1 + cp -ar $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 cp -p /etc/rpc $ETCDIR/etc/ || exit 1 cat > $ETCDIR/etc/sysconfig/nfs-server <<-EOF |