Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison Makefile @ 356:2ba1072103f1
Implement a new periodic script (daily) to control the automatic TRIM of SSD that contain ZFS pools/datasets
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 08 Dec 2022 09:55:12 +0100 |
| parents | dc47c5a49a5c |
| children | da77f8d84d71 |
comparison
equal
deleted
inserted
replaced
| 355:f1c8fc3af3e1 | 356:2ba1072103f1 |
|---|---|
| 53 ${SED} -i "" -e "s|@@HGREVISION@@|${HGREVISION}|" ${WRKSRC}/${_rp} | 53 ${SED} -i "" -e "s|@@HGREVISION@@|${HGREVISION}|" ${WRKSRC}/${_rp} |
| 54 ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} | 54 ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} |
| 55 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_rp} | 55 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_rp} |
| 56 .endfor | 56 .endfor |
| 57 ${MKDIR} ${WRKSRC}/etc/periodic/daily | 57 ${MKDIR} ${WRKSRC}/etc/periodic/daily |
| 58 .for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh | 58 .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 |
| 59 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} | 59 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} |
| 60 ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef} | 60 ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef} |
| 61 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef} | 61 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef} |
| 62 .endfor | 62 .endfor |
| 63 | 63 |
| 78 ${MKDIR} ${STAGEDIR}${ETCDIR} | 78 ${MKDIR} ${STAGEDIR}${ETCDIR} |
| 79 .for _ef in package-mapping.conf.sample pkgtools.conf.sample bsmtp2dma.conf.sample | 79 .for _ef in package-mapping.conf.sample pkgtools.conf.sample bsmtp2dma.conf.sample |
| 80 ${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef} | 80 ${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef} |
| 81 .endfor | 81 .endfor |
| 82 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily | 82 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
| 83 .for _ps in 800.local-ipv6-refresh | 83 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs |
| 84 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily | 84 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
| 85 .endfor | 85 .endfor |
| 86 | 86 |
| 87 post-install-DOCS-on: | 87 post-install-DOCS-on: |
| 88 .for _mp in ${MANPAGES8:R} | 88 .for _mp in ${MANPAGES8:R} |
