mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 15:46:55 +02:00
Install fixes for Slackware
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9612044933
commit
e0570cc35e
@ -11,9 +11,9 @@ CONFDIR=/etc #Directory where subsystem configurat
|
|||||||
SBINDIR=/sbin #Directory where system administration programs are installed
|
SBINDIR=/sbin #Directory where system administration programs are installed
|
||||||
MANDIR=${PREFIX}/man #Directory where manpages are installed.
|
MANDIR=${PREFIX}/man #Directory where manpages are installed.
|
||||||
INITDIR=/etc/rc.d #Directory where SysV init scripts are installed.
|
INITDIR=/etc/rc.d #Directory where SysV init scripts are installed.
|
||||||
INITSOURCE=init.slackware.firewall #Name of the distributed file to be installed as the SysV init script
|
INITSOURCE=init.slackware.firewall.sh #Name of the distributed file to be installed as the SysV init script
|
||||||
INITFILE=rc.firewall #Name of the product's installed SysV init script
|
INITFILE=rc.firewall #Name of the product's installed SysV init script
|
||||||
AUXINITSOURCE=init.slackware.$PRODUCT #Name of the distributed file to be installed as a second SysV init script
|
AUXINITSOURCE=init.slackware.$PRODUCT.sh #Name of the distributed file to be installed as a second SysV init script
|
||||||
AUXINITFILE=rc.$PRODUCT #Name of the product's installed second init script
|
AUXINITFILE=rc.$PRODUCT #Name of the product's installed second init script
|
||||||
SYSTEMD= #Name of the directory where .service files are installed (systems running systemd only)
|
SYSTEMD= #Name of the directory where .service files are installed (systems running systemd only)
|
||||||
SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR
|
SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR
|
||||||
|
@ -333,14 +333,18 @@ echo "$PRODUCT control program installed in ${DESTDIR}${SBINDIR}/$PRODUCT"
|
|||||||
# Install the Firewall Script
|
# Install the Firewall Script
|
||||||
#
|
#
|
||||||
if [ -n "$INITFILE" ]; then
|
if [ -n "$INITFILE" ]; then
|
||||||
|
if [ -f "${INITSOURCE}" ]; then
|
||||||
install_file $INITSOURCE ${DESTDIR}${INITDIR}/$INITFILE 0544
|
install_file $INITSOURCE ${DESTDIR}${INITDIR}/$INITFILE 0544
|
||||||
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${INITDIR}/$INITFILE
|
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${INITDIR}/$INITFILE
|
||||||
|
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
||||||
if [ -n "${AUXINITSOURCE}" ]; then
|
fi
|
||||||
install_file $INITSOURCE ${DESTDIR}${INITDIR}/$INITFILE 0544
|
|
||||||
|
if [ -n "${AUXINITSOURCE}" ]; then
|
||||||
|
install_file $AUXINITSOURCE ${DESTDIR}${INITDIR}/$AUXINITFILE 0544
|
||||||
|
[ "${SHAREDIR}" = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${INITDIR}/$AUXINITFILE
|
||||||
|
echo "$Product script installed in ${DESTDIR}${INITDIR}/$AUXINITFILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user