diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index 8e4e97562..75040b31a 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -374,6 +374,8 @@ fi # Install the Makefile # run_install $OWNERSHIP -m 0600 Makefile ${DESTDIR}${CONFDIR}/$PRODUCT +[ $SHAREDIR = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}/${CONFDIR}/$PRODUCT/Makefile +[ $SBINDIR = /sbin ] || eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}/${CONFDIR}/$PRODUCT/Makefile echo "Makefile installed as ${DESTDIR}${CONFDIR}/$PRODUCT/Makefile" # diff --git a/Shorewall/install.sh b/Shorewall/install.sh index a73e57215..7a47f7ccd 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -957,9 +957,11 @@ echo "Standard actions file installed as ${DESTDIR}${SHAREDIR}d/$PRODUCT/actions # Install the Makefiles # run_install $OWNERSHIP -m 0644 Makefile-lite ${DESTDIR}${SHAREDIR}/$PRODUCT/configfiles/Makefile +[ $SHAREDIR = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}/${SHAREDIR}/$PRODUCT/configfiles/Makefile +[ $SBINDIR = /sbin ] || eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}/${SHAREDIR}/$PRODUCT/configfiles/Makefile if [ -z "$SPARSE" ]; then - run_install $OWNERSHIP -m 0600 Makefile ${DESTDIR}${CONFDIR}/$PRODUCT + run_install $OWNERSHIP -m 0600 ${DESTDIR}/${SHAREDIR}/$PRODUCT/configfiles/Makefile ${DESTDIR}${CONFDIR}/$PRODUCT echo "Makefile installed as ${DESTDIR}${CONFDIR}/$PRODUCT/Makefile" fi #