Fix install on SuSE

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-02-21 14:24:50 -08:00
parent 7de961ebfe
commit 20f990f2eb
2 changed files with 12 additions and 7 deletions

View File

@ -265,7 +265,7 @@ else
rm -rf ${DESTDIR}/etc/$PRODUCT
rm -rf ${DESTDIR}/usr/share/$PRODUCT
rm -rf ${DESTDIR}/var/lib/$PRODUCT
[ "$LIBEXEC" = /usr/share ] || rm -rf /usr/share/$PRODUCT/wait4ifup /usr/share/$PRODUCT/shorecap
[ "$LIBEXEC" = /usr/share ] || rm -rf ${DESTDIR}/usr/share/$PRODUCT/wait4ifup ${DESTDIR}/usr/share/$PRODUCT/shorecap
fi
#
@ -283,12 +283,6 @@ install_file $PRODUCT ${DESTDIR}/sbin/$PRODUCT 0544
echo "$Product control program installed in ${DESTDIR}/sbin/$PRODUCT"
#
# Install the Firewall Script
#
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
#
# Create /etc/$PRODUCT, /usr/share/$PRODUCT and /var/lib/$PRODUCT if needed
#
@ -303,8 +297,16 @@ chmod 755 ${DESTDIR}/usr/share/$PRODUCT
if [ -n "$DESTDIR" ]; then
mkdir -p ${DESTDIR}/etc/logrotate.d
chmod 755 ${DESTDIR}/etc/logrotate.d
mkdir -p ${DESTDIR}${INITDIR}
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"
#
# Install the .service file
#

View File

@ -261,6 +261,9 @@ case "$TARGET" in
echo "Installing Redhat/Fedora-specific configuration..."
INITDIR="/etc/rc.d/init.d"
;;
SUSE)
echo "Installing SuSE-specific configuration...";
;;
SLACKWARE)
echo "Installing Slackware-specific configuration..."
INITDIR="/etc/rc.d"