Commit 9b4bd9d2 authored by Franco Fichtner's avatar Franco Fichtner

pkg: install all possible scripts correctly if there

parent 6c0c6b6b
...@@ -193,13 +193,20 @@ name: force ...@@ -193,13 +193,20 @@ name: force
depends: force depends: force
@echo ${CORE_DEPENDS} @echo ${CORE_DEPENDS}
PKG_SCRIPTS= +PRE_INSTALL +POST_INSTALL \
+PRE_UPGRADE +POST_UPGRADE \
+PRE_DEINSTALL +POST_DEINSTALL
scripts: want-git scripts: want-git
# XXX should extend to all possible scripts .for PKG_SCRIPT in ${PKG_SCRIPTS}
@cp -v -- +PRE_DEINSTALL +POST_INSTALL ${DESTDIR}/ @if [ -e ${.CURDIR}/${PKG_SCRIPT} ]; then \
@sed -i '' -e "s/%%CORE_COMMIT%%/${CORE_COMMIT}/g" \ 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_NAME%%/${CORE_NAME}/g" \
-e "s/%%CORE_ABI%%/${CORE_ABI}/g" \ -e "s/%%CORE_ABI%%/${CORE_ABI}/g" \
${DESTDIR}/+POST_INSTALL ${DESTDIR}/${PKG_SCRIPT}; \
fi
.endfor
install: force install: force
@${MAKE} -C ${.CURDIR}/contrib install DESTDIR=${DESTDIR} @${MAKE} -C ${.CURDIR}/contrib install DESTDIR=${DESTDIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment