Correct init script installation

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-02-22 14:51:41 -08:00
parent a6afac0f3c
commit c975cddfda
3 changed files with 35 additions and 10 deletions

View File

@ -233,11 +233,19 @@ fi
#
# Install the Init Script
#
if [ -n "$INITFILE" ]; then
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
echo "Shorewall Init script installed in ${DESTDIR}${INITDIR}/$INITFILE"
fi
case $TARGET in
debian)
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
redhat)
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
*)
install_file init.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
esac
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
#
# Install the .service file
#

View File

@ -300,11 +300,22 @@ if [ -n "$DESTDIR" ]; then
chmod 755 ${DESTDIR}${INITDIR}
fi
#
# Install the Firewall Script
#
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
case $TARGET in
debian)
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
redhat)
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
archlinux)
install_file init.archlinux.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
*)
install_file init.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
esac
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
#
# Install the .service file

View File

@ -259,7 +259,7 @@ case "$HOST" in
;;
redhat)
echo "Installing Redhat/Fedora-specific configuration..."
[ -n "$INITDIR" ] || INITDIR="/etc/rc.d/init.d"
[ -n "$INITDIR" ] || INITDIR="/etc/rc.d/init.d"
;;
suse)
echo "Installing SuSE-specific configuration...";
@ -338,6 +338,12 @@ fi
# Install the Firewall Script
#
case $HOST in
debian)
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
redhat)
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
;;
slackware)
if [ $PRODUCT = shorewall ]; then
install_file init.slackware.firewall.sh ${DESTDIR}${DEST}/rc.firewall 0644