diff Makefile @ 387:9921352225a9

Weekly periodic script to execute an action when any of given files are readable. Intended to trigger host-level actions after certbot actions in jails.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 23 Feb 2023 09:08:20 +0100
parents 84d2735fe7f6
children 06fbd3c0f566
line wrap: on
line diff
--- a/Makefile	Thu Feb 23 01:08:31 2023 +0100
+++ b/Makefile	Thu Feb 23 09:08:20 2023 +0100
@@ -52,7 +52,8 @@
 	${SED} -i "" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp}
 .endfor
 	${MKDIR} ${WRKSRC}/etc/periodic/daily
-.for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh etc/periodic/daily/750.local-trim-zfs
+	${MKDIR} ${WRKSRC}/etc/periodic/weekly
+.for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh etc/periodic/daily/750.local-trim-zfs etc/periodic/weekly/800.local-certbot-post-deploy
 	${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef}
 	${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef}
 .endfor
@@ -83,6 +84,10 @@
 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs
 	${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily
 .endfor
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
+.for _ps in 800.local-certbot-post-deploy
+	${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/weekly/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
+.endfor
 
 post-install-DOCS-on:
 .for _mp in ${MANPAGES8:R}