diff Makefile @ 439:b5e45ecd4032

Rename the recently added example scripts and integrate into the package build. They will be installed into the EXAMPLESDIR /usr/local/share/examples/local-bsdtools.
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 01 May 2024 23:07:59 +0200
parents 4da3377f4139
children 9c8ba2097a35
line wrap: on
line diff
--- a/Makefile	Wed May 01 21:35:43 2024 +0200
+++ b/Makefile	Wed May 01 23:07:59 2024 +0200
@@ -57,6 +57,10 @@
 	${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef}
 	${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef}
 .endfor
+	${MKDIR} ${WRKSRC}/share/examples/${PORTNAME}
+.for _sf in share/examples/local-bsdtools/freebsd-update-ftjail-template.sh share/examples/local-bsdtools/freebsd-update-ftjail.sh
+	${CP} -v ${SRC}/${_sf} ${WRKSRC}/${_sf}
+.endfor
 
 post-extract-DOCS-on:
 	${MKDIR} ${WRKSRC}/docs
@@ -84,6 +88,10 @@
 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs 720.local-triggered-action
 	${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily
 .endfor
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for _exf in freebsd-update-ftjail-template.sh freebsd-update-ftjail.sh
+	${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/${_exf} ${STAGEDIR}${EXAMPLESDIR}
+.endfor
 
 post-install-DOCS-on:
 .for _mp in ${MANPAGES5:R}