comparison Makefile @ 440:9c8ba2097a35

Prepare a script that shall contain common subroutines for all scripts. Currently this script has no code. It lives in DATADIR (/usr/local/share/local-bsdtools).
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 02 May 2024 09:33:51 +0200
parents b5e45ecd4032
children 1aa75c6d3ef6
comparison
equal deleted inserted replaced
439:b5e45ecd4032 440:9c8ba2097a35
55 ${MKDIR} ${WRKSRC}/etc/periodic/daily 55 ${MKDIR} ${WRKSRC}/etc/periodic/daily
56 .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/daily/720.local-triggered-action 56 .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/daily/720.local-triggered-action
57 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} 57 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef}
58 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef} 58 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef}
59 .endfor 59 .endfor
60 ${MKDIR} ${WRKSRC}/share/${PORTNAME}
61 .for _df in share/local-bsdtools/common.subr
62 ${CP} -v ${SRC}/${_df} ${WRKSRC}/${_df}
63 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_df}
64 .endfor
60 ${MKDIR} ${WRKSRC}/share/examples/${PORTNAME} 65 ${MKDIR} ${WRKSRC}/share/examples/${PORTNAME}
61 .for _sf in share/examples/local-bsdtools/freebsd-update-ftjail-template.sh share/examples/local-bsdtools/freebsd-update-ftjail.sh 66 .for _sf in share/examples/local-bsdtools/freebsd-update-ftjail-template.sh share/examples/local-bsdtools/freebsd-update-ftjail.sh
62 ${CP} -v ${SRC}/${_sf} ${WRKSRC}/${_sf} 67 ${CP} -v ${SRC}/${_sf} ${WRKSRC}/${_sf}
63 .endfor 68 .endfor
64 69
86 .endfor 91 .endfor
87 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily 92 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
88 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs 720.local-triggered-action 93 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs 720.local-triggered-action
89 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily 94 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily
90 .endfor 95 .endfor
96 ${MKDIR} ${STAGEDIR}${DATADIR}
97 .for _df in common.subr
98 ${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}/${_df} ${STAGEDIR}${DATADIR}
99 .endfor
91 ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} 100 ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
92 .for _exf in freebsd-update-ftjail-template.sh freebsd-update-ftjail.sh 101 .for _exf in freebsd-update-ftjail-template.sh freebsd-update-ftjail.sh
93 ${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/${_exf} ${STAGEDIR}${EXAMPLESDIR} 102 ${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/${_exf} ${STAGEDIR}${EXAMPLESDIR}
94 .endfor 103 .endfor
95 104