From: Serge L. <sma...@us...> - 2006-02-27 08:03:05
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20361 Modified Files: ipset Log Message: - added condition for the base repository of p-o-m Index: ipset =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/ipset,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ipset 17 Feb 2006 07:49:28 -0000 1.2 +++ ipset 27 Feb 2006 08:03:01 -0000 1.3 @@ -26,26 +26,34 @@ case $1 in build ) - FLAGS="-O2" - if [ "$CONFIG_GCC_STACK_PROTECTOR" = "y" ]; then - FLAGS="-O2 -fno-stack-protector" - fi + if [ "$CONFIG_NF_PATCHES" = "y" ]; then + [ "$CONFIG_NF_BASE" = "y" ]; then + 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 + 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 + fi + fi ;; 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 + if [ "$CONFIG_NF_PATCHES" = "y" ]; then + [ "$CONFIG_NF_BASE" = "y" ]; then + 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 + fi + fi ;; * ) |