pkg: proper replacements in pkg scripts for now

This commit is contained in:
Franco Fichtner 2018-09-17 18:58:03 +02:00
parent ea675a0ce8
commit 6c7699efd0
2 changed files with 2 additions and 5 deletions

View file

@ -31,7 +31,7 @@ EOF
cat /etc/rc.shutdown.bak >> /etc/rc.shutdown
rm -f /etc/rc.shutdown.bak
# XXX 18.7 compat for now
# XXX 18.7 compat for now (remove scripts SED_REPLACE from Makefile, too)
echo "%%CORE_NAME%%" > /usr/local/opnsense/version/opnsense.name
echo "%%CORE_ABI%%" > /usr/local/opnsense/version/opnsense.abi

View file

@ -209,10 +209,7 @@ scripts:
.for PKG_SCRIPT in ${PKG_SCRIPTS}
@if [ -e ${.CURDIR}/${PKG_SCRIPT} ]; then \
cp -v -- ${.CURDIR}/${PKG_SCRIPT} ${DESTDIR}/; \
sed -i '' -e "s/%%CORE_COMMIT%%/${CORE_COMMIT}/g" \
-e "s/%%CORE_NAME%%/${CORE_NAME}/g" \
-e "s/%%CORE_ABI%%/${CORE_ABI}/g" \
${DESTDIR}/${PKG_SCRIPT}; \
sed -i '' ${SED_REPLACE} ${DESTDIR}/${PKG_SCRIPT}; \
fi
.endfor