mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Mk: auto generate rc.syshook.d scripts; closes #35
This obsoletes the need to manually set package scripts, which is still possible but fewer mistakes can be made now as the scripts automatically adapt to the package's changing content.
This commit is contained in:
+9
-1
@@ -103,7 +103,15 @@ scripts-manual:
|
||||
done
|
||||
|
||||
scripts-auto:
|
||||
# XXX ticket #35
|
||||
@if [ -d ${.CURDIR}/src/etc/rc.syshook.d ]; then \
|
||||
for SYSHOOK in early start; do \
|
||||
for FILE in $$(cd ${.CURDIR}/src/etc/rc.syshook.d && \
|
||||
find -s . -type f -name "*.$${SYSHOOK}"); do \
|
||||
echo ${LOCALBASE}/etc/rc.syshook.d/$${FILE#./} >> \
|
||||
${DESTDIR}/+POST_INSTALL; \
|
||||
done; \
|
||||
done; \
|
||||
fi
|
||||
@if [ -d ${.CURDIR}/src/opnsense/service/conf/actions.d ]; then \
|
||||
for SCRIPT in +POST_INSTALL +POST_DEINSTALL; do \
|
||||
cat ${TEMPLATESDIR}/actions.d >> \
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/usr/local/etc/rc.syshook.d/50-vmware.early
|
||||
/usr/local/etc/rc.syshook.d/50-vmware.start
|
||||
@@ -1 +0,0 @@
|
||||
/usr/local/etc/rc.syshook.d/50-xen.start
|
||||
Reference in New Issue
Block a user