diff --git a/Shorewall/install.sh b/Shorewall/install.sh index e5bbcaafe..295cc3de7 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -156,10 +156,12 @@ if [ -n "$PREFIX" ]; then echo "Not setting file owner/group permissions, not running as root." OWNERSHIP="" fi - - install -d $OWNERSHIP -m 755 ${PREFIX}/sbin - install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} fi + + install -d $OWNERSHIP -m 755 ${PREFIX}/sbin + install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} + + CYGWIN= else if [ -z "$CYGWIN" ]; then if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then @@ -732,6 +734,7 @@ for f in prog.* ; do echo "Program skeleton file ${f#*.} installed as ${PREFIX}/usr/share/shorewall/$f" done +pwd cd .. # # Create the version file @@ -751,6 +754,7 @@ fi # Install the Man Pages # +pwd cd manpages for f in *.5; do diff --git a/Shorewall6-lite/install.sh b/Shorewall6-lite/install.sh index 787056ea8..5beba742a 100755 --- a/Shorewall6-lite/install.sh +++ b/Shorewall6-lite/install.sh @@ -107,14 +107,6 @@ if [ -z "$RUNLEVELS" ] ; then RUNLEVELS="" fi -if [ -z "$OWNER" ] ; then - OWNER=root -fi - -if [ -z "$GROUP" ] ; then - GROUP=root -fi - while [ $# -gt 0 ] ; do case "$1" in -h|help|?) @@ -139,16 +131,29 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin # DEBIAN= +case $(uname) in + CYGWIN*) + DEST= + INIT= + OWNER=$(id -un) + GROUP=$(id -gn) + ;; + *) + [ -z "$OWNER" ] && OWNER=root + [ -z "$GROUP" ] && GROUP=root + ;; +esac + OWNERSHIP="-o $OWNER -g $GROUP" if [ -n "$PREFIX" ]; then - if [ `id -u` != 0 ] ; then - echo "Not setting file owner/group permissions, not running as root." - OWNERSHIP="" - fi - - install -d $OWNERSHIP -m 755 ${PREFIX}/sbin - install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} + if [ `id -u` != 0 ] ; then + echo "Not setting file owner/group permissions, not running as root." + OWNERSHIP="" + fi + + install -d $OWNERSHIP -m 755 ${PREFIX}/sbin + install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} elif [ -d /etc/apt -a -e /usr/bin/dpkg ]; then DEBIAN=yes elif [ -f /etc/slackware-version ] ; then diff --git a/Shorewall6/install.sh b/Shorewall6/install.sh index f1affb147..db1374889 100755 --- a/Shorewall6/install.sh +++ b/Shorewall6/install.sh @@ -156,10 +156,12 @@ if [ -n "$PREFIX" ]; then echo "Not setting file owner/group permissions, not running as root." OWNERSHIP="" fi - - install -d $OWNERSHIP -m 755 ${PREFIX}/sbin - install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} fi + + install -d $OWNERSHIP -m 755 ${PREFIX}/sbin + install -d $OWNERSHIP -m 755 ${PREFIX}${DEST} + + CYGWIN= else [ -x /usr/share/shorewall/compiler.pl ] || \ { echo " ERROR: Shorewall >= 4.3.5 is not installed" >&2; exit 1; } diff --git a/tools/build/build44 b/tools/build/build44 index 3cf0a29ad..22d6db6c8 100755 --- a/tools/build/build44 +++ b/tools/build/build44 @@ -244,7 +244,9 @@ do_manpages() ;; esac done - rm *.xml + + rm -f *.xml + rm -f *.bak } ################################################################################