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
depends: force
@echo ${CORE_DEPENDS}
PKG_SCRIPTS= +PRE_INSTALL +POST_INSTALL \
+PRE_UPGRADE +POST_UPGRADE \
+PRE_DEINSTALL +POST_DEINSTALL
scripts: want-git
# XXX should extend to all possible scripts
@cp -v -- +PRE_DEINSTALL +POST_INSTALL ${DESTDIR}/
@sed -i '' -e "s/%%CORE_COMMIT%%/${CORE_COMMIT}/g" \
.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}/+POST_INSTALL
${DESTDIR}/${PKG_SCRIPT}; \
fi
.endfor
install: force
@${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