mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
One more install.sh
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
97306cb10c
commit
878e58fcf6
@ -82,7 +82,7 @@ delete_file() # $1 = file to delete
|
|||||||
|
|
||||||
install_file() # $1 = source $2 = target $3 = mode
|
install_file() # $1 = source $2 = target $3 = mode
|
||||||
{
|
{
|
||||||
run_install $OWNERSHIP -m $3 $1 ${2}
|
run_install -T $OWNERSHIP -m $3 $1 ${2}
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -129,7 +129,6 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
|
|||||||
#
|
#
|
||||||
# Determine where to install the firewall script
|
# Determine where to install the firewall script
|
||||||
#
|
#
|
||||||
DEBIAN=
|
|
||||||
INSTALLD='-D'
|
INSTALLD='-D'
|
||||||
|
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
@ -202,7 +201,7 @@ fi
|
|||||||
|
|
||||||
delete_file ${PREFIX}/usr/share/shorewall6-lite/xmodules
|
delete_file ${PREFIX}/usr/share/shorewall6-lite/xmodules
|
||||||
|
|
||||||
install_file shorewall6-lite ${PREFIX}/sbin/shorewall6-lite 0544 ${PREFIX}/var/lib/shorewall6-lite-${VERSION}.bkout
|
install_file shorewall6-lite ${PREFIX}/sbin/shorewall6-lite 0544
|
||||||
|
|
||||||
echo "Shorewall6 Lite control program installed in ${PREFIX}/sbin/shorewall6-lite"
|
echo "Shorewall6 Lite control program installed in ${PREFIX}/sbin/shorewall6-lite"
|
||||||
|
|
||||||
@ -210,12 +209,12 @@ echo "Shorewall6 Lite control program installed in ${PREFIX}/sbin/shorewall6-lit
|
|||||||
# Install the Firewall Script
|
# Install the Firewall Script
|
||||||
#
|
#
|
||||||
if [ -n "$DEBIAN" ]; then
|
if [ -n "$DEBIAN" ]; then
|
||||||
install_file init.debian.sh /etc/init.d/shorewall6-lite 0544 ${PREFIX}/usr/share/shorewall6-lite-${VERSION}.bkout
|
install_file init.debian.sh ${PREFIX}/etc/init.d/shorewall6-lite 0544
|
||||||
elif [ -n "$ARCHLINUX" ]; then
|
elif [ -n "$ARCHLINUX" ]; then
|
||||||
install_file init.archlinux.sh ${PREFIX}${DEST}/$INIT 0544 ${PREFIX}/usr/share/shorewall6-lite-${VERSION}.bkout
|
install_file init.archlinux.sh ${PREFIX}${DEST}/$INIT 0544
|
||||||
|
|
||||||
else
|
else
|
||||||
install_file init.sh ${PREFIX}${DEST}/$INIT 0544 ${PREFIX}/usr/share/shorewall6-lite-${VERSION}.bkout
|
install_file init.sh ${PREFIX}${DEST}/$INIT 0544
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Shorewall6 Lite script installed in ${PREFIX}${DEST}/$INIT"
|
echo "Shorewall6 Lite script installed in ${PREFIX}${DEST}/$INIT"
|
||||||
@ -239,7 +238,7 @@ fi
|
|||||||
# Install the config file
|
# Install the config file
|
||||||
#
|
#
|
||||||
if [ ! -f ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf ]; then
|
if [ ! -f ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf ]; then
|
||||||
run_install $OWNERSHIP -m 0744 shorewall6-lite.conf ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf
|
install_file shorewall6-lite.conf ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf 0744
|
||||||
echo "Config file installed as ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf"
|
echo "Config file installed as ${PREFIX}/etc/shorewall6-lite/shorewall6-lite.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -250,7 +249,7 @@ fi
|
|||||||
#
|
#
|
||||||
# Install the Makefile
|
# Install the Makefile
|
||||||
#
|
#
|
||||||
run_install $OWNERSHIP -m 0600 Makefile ${PREFIX}/etc/shorewall6-lite/Makefile
|
run_install $OWNERSHIP -m 0600 Makefile ${PREFIX}/etc/shorewall6-lite
|
||||||
echo "Makefile installed as ${PREFIX}/etc/shorewall6-lite/Makefile"
|
echo "Makefile installed as ${PREFIX}/etc/shorewall6-lite/Makefile"
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -286,17 +285,22 @@ echo "Capability file builder installed in ${PREFIX}/usr/share/shorewall6-lite/s
|
|||||||
# Install wait4ifup
|
# Install wait4ifup
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -f wait4fup ]; then
|
||||||
install_file wait4ifup ${PREFIX}/usr/share/shorewall6-lite/wait4ifup 0755
|
install_file wait4ifup ${PREFIX}/usr/share/shorewall6-lite/wait4ifup 0755
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall6-lite/wait4ifup"
|
echo "wait4ifup installed in ${PREFIX}/usr/share/shorewall6-lite/wait4ifup"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f modules ]; then
|
||||||
#
|
#
|
||||||
# Install the Modules file
|
# Install the Modules file
|
||||||
#
|
#
|
||||||
run_install $OWNERSHIP -m 0600 modules ${PREFIX}/usr/share/shorewall6-lite/modules
|
run_install $OWNERSHIP -m 0600 modules ${PREFIX}/usr/share/shorewall6-lite
|
||||||
echo "Modules file installed as ${PREFIX}/usr/share/shorewall6-lite/modules"
|
echo "Modules file installed as ${PREFIX}/usr/share/shorewall6-lite/modules"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d manpages ]; then
|
||||||
#
|
#
|
||||||
# Install the Man Pages
|
# Install the Man Pages
|
||||||
#
|
#
|
||||||
@ -320,6 +324,7 @@ done
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
||||||
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall6-lite
|
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall6-lite
|
||||||
|
Loading…
Reference in New Issue
Block a user