mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
pkg: proper replacements in pkg scripts for now
This commit is contained in:
parent
ea675a0ce8
commit
6c7699efd0
2 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue