From 69eb8ad4eb786253ca99932b41c6ec6b3217689c Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 11 Aug 2006 14:07:06 +0000 Subject: [PATCH] Keep the Gentoo crowd from mutiny git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4342 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- tools/build/makeshorewall | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/build/makeshorewall b/tools/build/makeshorewall index cbb3b7766..763133758 100755 --- a/tools/build/makeshorewall +++ b/tools/build/makeshorewall @@ -227,7 +227,7 @@ case $VERSION in DOCTAG="trunk/docs" XMLPROJ="docs-3.2" SAMPLESTAG="trunk/Samples" - HASLITE=Yes + HASLITE=Yes ;; 3.3.*) SVNBRANCH="trunk/Shorewall" @@ -235,7 +235,7 @@ case $VERSION in DOCTAG="trunk/docs" XMLPROJ="docs-3.3" SAMPLESTAG="trunk/Samples" - HASLITE=Yes + HASLITE=Yes ;; *) echo "Unsupported Version: $VERSION" @@ -320,6 +320,14 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then do_or_die "rm -rf $SHOREWALLDIR/debian" if [ -n "$BUILDTARBALL" ]; then + if [ -n "$HASLITE" ]; then + # + # Do this at build time so that the Gentoo people don't wet their pants + # + do_or_die cp $SHOREWALLDIR/shorewall.conf $SHOREWALLDIR/shorewall.configfiles + do_or_die perl -p -w -i -e 's|^CONFIG_PATH=.*|CONFIG_PATH=/usr/share/shorewall/configfiles:/usr/share/shorewall|;' $SHOREWALLDIR/shorewall.conffiles + fi + progress_message "Creating $DIR/$TARBALL..." do_or_die "tar -zcvf $TARBALL $SHOREWALLDIR >> $LOGFILE 2>&1" do_or_die "tar -jcvf shorewall-${VERSION%-*}.tar.bz2 $SHOREWALLDIR >> $LOGFILE 2>&1"