Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7852
Added Files:
Tag: rel-1-2-patches
ipset
Log Message:
- added ipset
--- NEW FILE: ipset ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/Attic/ipset,v $
# $Revision: 1.1.2.1 $
# $Date: 2006/02/17 07:47:52 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: ipset
# Required-Start: $basebuildtools $libs patch-o-matic linux iptables
# 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 )
FLAGS="-O2"
if [ "$CONFIG_GCC_STACK_PROTECTOR" = "y" ]; then
FLAGS="-O2 -fno-stack-protector"
fi
replace_str Makefile "/usr/local" "/usr"
# parallel build failes, do not use $PMAKE
make all COPT_FLAGS="$FLAGS" KERNEL_DIR=$KERNELDIR || exit 1
strip_debug
# install it, so other programs can use it
make install || exit 1
;;
install )
rm -rf $TMPDIR || exit 1
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
copy_docs $TMPDIR
copy_files $TMPDIR/usr $CDDIR || exit 1
rm -rf $TMPDIR || exit 1
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|