mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Change SYSTEMDDIR to SERVICEDIR
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
286bc50bb3
commit
e3b10343a5
6
Shorewall-core/configure
vendored
6
Shorewall-core/configure
vendored
@ -195,8 +195,8 @@ elif [ -n "${options[VARDIR]}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${options[SYSTEMDDIR]}" ]; then
|
if [ -z "${options[SERVICEDIR]}" ]; then
|
||||||
$options[SYSTEMDDIR]="${options[SYSTEMD]}"
|
$options[SERVICEDIR]="${options[SYSTEMD]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for on in \
|
for on in \
|
||||||
@ -213,7 +213,7 @@ for on in \
|
|||||||
INITFILE \
|
INITFILE \
|
||||||
AUXINITSOURCE \
|
AUXINITSOURCE \
|
||||||
AUXINITFILE \
|
AUXINITFILE \
|
||||||
SYSTEMDDIR \
|
SERVICEDIR \
|
||||||
SERVICEFILE \
|
SERVICEFILE \
|
||||||
SYSCONFFILE \
|
SYSCONFFILE \
|
||||||
SYSCONFDIR \
|
SYSCONFDIR \
|
||||||
|
@ -154,7 +154,7 @@ if ( $options{VARLIB} ) {
|
|||||||
$options{VARDIR} = '${VARLIB}/${PRODUCT}';
|
$options{VARDIR} = '${VARLIB}/${PRODUCT}';
|
||||||
}
|
}
|
||||||
|
|
||||||
$options{SYSTEMDDIR}=$options{SYSTEMD} unless $options{SYSTEMDDIR};
|
$options{SERVICEDIR}=$options{SYSTEMD} unless $options{SERVICEDIR};
|
||||||
|
|
||||||
for ( qw/ HOST
|
for ( qw/ HOST
|
||||||
PREFIX
|
PREFIX
|
||||||
@ -169,7 +169,7 @@ for ( qw/ HOST
|
|||||||
INITFILE
|
INITFILE
|
||||||
AUXINITSOURCE
|
AUXINITSOURCE
|
||||||
AUXINITFILE
|
AUXINITFILE
|
||||||
SYSTEMDDIR
|
SERVICEDIR
|
||||||
SERVICEFILE
|
SERVICEFILE
|
||||||
SYSCONFFILE
|
SYSCONFFILE
|
||||||
SYSCONFDIR
|
SYSCONFDIR
|
||||||
|
@ -329,13 +329,13 @@ if [ -n "${SYSCONFDIR}" ]; then
|
|||||||
chmod 755 ${DESTDIR}${SYSCONFDIR}
|
chmod 755 ${DESTDIR}${SYSCONFDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${SYSTEMDDIR}" ]; then
|
if [ -z "${SERVICEDIR}" ]; then
|
||||||
SYSTEMDDIR="$SYSTEMD"
|
SERVICEDIR="$SYSTEMD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${SYSTEMDDIR}" ]; then
|
if [ -n "${SERVICEDIR}" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMDDIR}
|
mkdir -p ${DESTDIR}${SERVICEDIR}
|
||||||
chmod 755 ${DESTDIR}${SYSTEMDDIR}
|
chmod 755 ${DESTDIR}${SERVICEDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ${DESTDIR}${SBINDIR}
|
mkdir -p ${DESTDIR}${SBINDIR}
|
||||||
|
@ -330,16 +330,16 @@ fi
|
|||||||
#
|
#
|
||||||
# Install the .service file
|
# Install the .service file
|
||||||
#
|
#
|
||||||
if [ -z "${SYSTEMDDIR}" ]; then
|
if [ -z "${SERVICEDIR}" ]; then
|
||||||
SYSTEMDDIR="$SYSTEMD"
|
SERVICEDIR="$SYSTEMD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMDDIR}
|
mkdir -p ${DESTDIR}${SERVICEDIR}
|
||||||
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
||||||
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service"
|
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SERVICEDIR}/$PRODUCT.service"
|
||||||
if [ -n "$DESTDIR" -o $configure -eq 0 ]; then
|
if [ -n "$DESTDIR" -o $configure -eq 0 ]; then
|
||||||
mkdir -p ${DESTDIR}${SBINDIR}
|
mkdir -p ${DESTDIR}${SBINDIR}
|
||||||
chmod 755 ${DESTDIR}${SBINDIR}
|
chmod 755 ${DESTDIR}${SBINDIR}
|
||||||
@ -519,7 +519,7 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
# not by the installer
|
# not by the installer
|
||||||
/bin/true
|
/bin/true
|
||||||
else
|
else
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
if systemctl enable shorewall-init.service; then
|
if systemctl enable shorewall-init.service; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
echo "Shorewall Init will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
|
@ -392,16 +392,16 @@ fi
|
|||||||
#
|
#
|
||||||
# Install the .service file
|
# Install the .service file
|
||||||
#
|
#
|
||||||
if [ -z "${SYSTEMDDIR}" ]; then
|
if [ -z "${SERVICEDIR}" ]; then
|
||||||
SYSTEMDDIR="$SYSTEMD"
|
SERVICEDIR="$SYSTEMD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMDDIR}
|
mkdir -p ${DESTDIR}${SERVICEDIR}
|
||||||
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
||||||
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service"
|
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SERVICEDIR}/$PRODUCT.service"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# Install the config file
|
# Install the config file
|
||||||
@ -543,7 +543,7 @@ if [ ${SHAREDIR} != /usr/share ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $configure -eq 1 -a -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then
|
if [ $configure -eq 1 -a -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
if systemctl enable ${PRODUCT}.service; then
|
if systemctl enable ${PRODUCT}.service; then
|
||||||
echo "$Product will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
|
@ -425,16 +425,16 @@ fi
|
|||||||
#
|
#
|
||||||
# Install the .service file
|
# Install the .service file
|
||||||
#
|
#
|
||||||
if [ -z "${SYSTEMDDIR}" ]; then
|
if [ -z "${SERVICEDIR}" ]; then
|
||||||
SYSTEMDDIR="$SYSTEMD"
|
SERVICEDIR="$SYSTEMD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMDDIR}
|
mkdir -p ${DESTDIR}${SERVICEDIR}
|
||||||
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
||||||
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service
|
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SERVICEDIR}/$PRODUCT.service
|
||||||
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service"
|
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SERVICEDIR}/$PRODUCT.service"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -1180,7 +1180,7 @@ if [ -n "$SYSCONFFILE" -a -f "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PR
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $configure -eq 1 -a -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then
|
if [ $configure -eq 1 -a -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then
|
||||||
if [ -n "$SYSTEMDDIR" ]; then
|
if [ -n "$SERVICEDIR" ]; then
|
||||||
if systemctl enable ${PRODUCT}.service; then
|
if systemctl enable ${PRODUCT}.service; then
|
||||||
echo "$Product will start automatically at boot"
|
echo "$Product will start automatically at boot"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user