Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
annotate Makefile @ 510:5f8c4c4546b1
array.sh: Implement "array_set()" and "array_del()" to set and delete array entries at given indexes
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 31 Aug 2024 23:20:03 +0200 |
| parents | 5255651502bb |
| children | f86041364bc1 |
| rev | line source |
|---|---|
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
1 # Created by: Franz Glasner <freebsd-dev@dom66.de> |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
2 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
3 PORTNAME= local-bsdtools |
| 501 | 4 PORTVERSION= 0.26.1 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
5 CATEGORIES= sysutils |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
6 MASTER_SITES= # none |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
7 DISTFILES= # none |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
8 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
9 MAINTAINER= freebsd-dev@dom66.de |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
10 COMMENT= Collection of private system management tools |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
11 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
12 LICENSE= BSD3CLAUSE |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
13 |
|
275
5bb4c4044e48
FIX: Mercurial is a dependency for EXTRACT and not for build
Franz Glasner <fzglas.hg@dom66.de>
parents:
271
diff
changeset
|
14 EXTRACT_DEPENDS= hg:devel/mercurial |
|
5bb4c4044e48
FIX: Mercurial is a dependency for EXTRACT and not for build
Franz Glasner <fzglas.hg@dom66.de>
parents:
271
diff
changeset
|
15 RUN_DEPENDS= pkg:ports-mgmt/pkg |
| 28 | 16 |
|
478
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
17 # |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
18 # We want noarch **and** noabi because we do not have compiled |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
19 # binaries and are independent of the major OS version. |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
20 # |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
21 #NO_ARCH= yes |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
22 PKG_ENV+= ABI="freebsd:*:*" |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
23 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
24 WRKSRC= ${WRKDIR}/local-bsdtools |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
25 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
26 OPTIONS_DEFINE= DOCS |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
27 OPTIONS_SUB= yes |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
28 |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
29 DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
30 DOCS_VARS_OFF= NO_BUILD=yes |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
31 |
|
465
c8abd9d7aac7
MERGE: rc.d/bhyve from origin into fbhyve
Franz Glasner <fzglas.hg@dom66.de>
parents:
458
diff
changeset
|
32 USE_RC_SUBR= fbhyve fwireguard |
|
458
09c782570d89
Add a rc.d script "fwireguard" to help with automatic setup of Wireguard interfaces
Franz Glasner <fzglas.hg@dom66.de>
parents:
456
diff
changeset
|
33 |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
34 SUB_LIST= SIMPLEVERSIONTAG="${SIMPLEVERSIONTAG}" \ |
|
474
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
35 FWIREGUARD_ETCDIR="${FWIREGUARD_ETCDIR}" \ |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
36 FBHYVE_ETCDIR="${FBHYVE_ETCDIR}" \ |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
37 FBHYVE_RUNDIR="${FBHYVE_RUNDIR}" |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
38 |
|
474
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
39 PLIST_SUB= FWIREGUARD_ETCDIR="${FWIREGUARD_ETCDIR}" \ |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
40 FBHYVE_ETCDIR="${FBHYVE_ETCDIR}" \ |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
41 = FBHYVE_RUNDIR="${FBHYVE_RUNDIR}" |
|
458
09c782570d89
Add a rc.d script "fwireguard" to help with automatic setup of Wireguard interfaces
Franz Glasner <fzglas.hg@dom66.de>
parents:
456
diff
changeset
|
42 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
43 .include <bsd.port.options.mk> |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
44 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
45 SRC= ${.CURDIR} |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
46 |
|
404
6c0c9159744d
Move the manual pages for the periodic scripts into man secition 5
Franz Glasner <fzglas.hg@dom66.de>
parents:
396
diff
changeset
|
47 MANPAGES5= ${:!${LS} -1 "${.CURDIR}/docs/man/man5"!} |
|
294
c2e2fed957ed
- Compute a dynmic list of manual pages
Franz Glasner <fzglas.hg@dom66.de>
parents:
293
diff
changeset
|
48 MANPAGES8= ${:!${LS} -1 "${.CURDIR}/docs/man/man8"!} |
|
c2e2fed957ed
- Compute a dynmic list of manual pages
Franz Glasner <fzglas.hg@dom66.de>
parents:
293
diff
changeset
|
49 |
|
43
22b7c9e08b13
Make the name of the canonical Mercurial path configurable.
Franz Glasner <hg@dom66.de>
parents:
41
diff
changeset
|
50 HGCANONICALPATH?= default |
|
27
a105a7fc801f
Remove early evaluation of Mercurial data because clean should work w/o Mercurial
Franz Glasner <hg@dom66.de>
parents:
26
diff
changeset
|
51 HGREVISION= ${:!hg id -R "${SRC}" -q!} |
|
a105a7fc801f
Remove early evaluation of Mercurial data because clean should work w/o Mercurial
Franz Glasner <hg@dom66.de>
parents:
26
diff
changeset
|
52 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} |
|
40
bc2df2421435
Make the $Author$ keyword a single word by replacing space characters with '+' characters.
Franz Glasner <hg@dom66.de>
parents:
38
diff
changeset
|
53 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} |
|
44
094324510aa2
Got the shell $(<cmd>) syntax to work within make ${:!...!} variables.
Franz Glasner <hg@dom66.de>
parents:
43
diff
changeset
|
54 HGPATH= ${:!hg --config ui.paginate=never path -R "${SRC}" ${HGCANONICALPATH} || echo "file://\$$\(hg root)"!} |
|
67
259e2a4b4ca6
Enhance keyword expansion: HGid and Header are now provided.
Franz Glasner <hg@dom66.de>
parents:
66
diff
changeset
|
55 HGPHASE= ${:!hg phase!:[2]} |
|
386
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
56 SIMPLEVERSIONSTR= v${PKGVERSION} (rv:${HGREVISION}) |
|
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
57 SIMPLEVERSIONTAG= ${PKGORIGIN} v${PKGVERSION} (rv:${HGREVISION}) |
|
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
58 VERSIONTAG= ${PKGORIGIN} v${PKGVERSION} (rv:${HGREVISION} with repo at ${HGPATH}) |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
59 |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
60 FWIREGUARD_ETCDIR?= "${PREFIX}/etc/fwireguard" |
|
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
61 |
|
474
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
62 FBHYVE_ETCDIR?= "${PREFIX}/etc/fbhyve" |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
63 FBHYVE_RUNDIR?= /var/run/fbhyve |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
64 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
65 do-extract: |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
66 ${MKDIR} ${WRKSRC}/bin |
| 124 | 67 ${MKDIR} ${WRKSRC}/sbin |
|
291
f2b4edf5f6a3
Docs: read the version from the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
290
diff
changeset
|
68 ${CP} Makefile ${WRKSRC}/Makefile |
|
276
3c24b07240f2
Move the implementation of "mount" and "umount" into the new tool fzfs.
Franz Glasner <fzglas.hg@dom66.de>
parents:
275
diff
changeset
|
69 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma |
|
25
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
70 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
71 ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp} |
|
66
1f3a64254c9c
Replace @@ETCDIR@@ and @@INDEXFILE@@ dynamically at package build time
Franz Glasner <hg@dom66.de>
parents:
65
diff
changeset
|
72 ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} |
|
386
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
73 ${SED} -i "" -e "s|@@VERSIONTAG@@|${VERSIONTAG}|" ${WRKSRC}/${_rp} |
|
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
74 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_rp} |
|
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
75 ${SED} -i "" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp} |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
76 .endfor |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
77 ${MKDIR} ${WRKSRC}/etc/periodic/daily |
|
391
8b1740deedbb
Refactor: Renamed the weekly 800.local-certbot-post-deploy to a daily 720.local-triggered-action.
Franz Glasner <fzglas.hg@dom66.de>
parents:
388
diff
changeset
|
78 .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 |
|
65
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
79 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} |
|
386
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
80 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef} |
|
65
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
81 .endfor |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
82 ${MKDIR} ${WRKSRC}/share/${PORTNAME} |
|
483
1aa14a7d96dc
Provide a simple implementation of arrays for the FreeBSD POSIX/Bourne shell /bin/sh
Franz Glasner <fzglas.hg@dom66.de>
parents:
480
diff
changeset
|
83 .for _df in share/local-bsdtools/array.sh share/local-bsdtools/common.subr |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
84 ${CP} -v ${SRC}/${_df} ${WRKSRC}/${_df} |
|
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
85 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_df} |
|
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
86 .endfor |
|
439
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
87 ${MKDIR} ${WRKSRC}/share/examples/${PORTNAME} |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
88 .for _sf in share/examples/local-bsdtools/freebsd-update-ftjail-template.sh share/examples/local-bsdtools/freebsd-update-ftjail.sh |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
89 ${CP} -v ${SRC}/${_sf} ${WRKSRC}/${_sf} |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
90 .endfor |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
91 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
92 post-extract-DOCS-on: |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
93 ${MKDIR} ${WRKSRC}/docs |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
94 (${TAR} -C ${.CURDIR}/docs -c --exclude ./_build -f - . | ${TAR} -C ${WRKSRC}/docs -x -f - ) |
|
385
d058f55fffea
Expand some keyword in the mail manual page also
Franz Glasner <fzglas.hg@dom66.de>
parents:
382
diff
changeset
|
95 .for _mp in man/man8/local-bsdtools.rst |
|
386
84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
Franz Glasner <fzglas.hg@dom66.de>
parents:
385
diff
changeset
|
96 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/docs/${_mp} |
|
385
d058f55fffea
Expand some keyword in the mail manual page also
Franz Glasner <fzglas.hg@dom66.de>
parents:
382
diff
changeset
|
97 ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/docs/${_mp} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/docs/${_mp} |
|
d058f55fffea
Expand some keyword in the mail manual page also
Franz Glasner <fzglas.hg@dom66.de>
parents:
382
diff
changeset
|
98 .endfor |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
99 |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
100 .if ${PORT_OPTIONS:MDOCS} |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
101 do-build: |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
102 (cd ${WRKSRC}/docs && sphinx-build -M man . _build) |
|
289
e6ccee6a7144
Also build the HTML documentation.
Franz Glasner <fzglas.hg@dom66.de>
parents:
284
diff
changeset
|
103 (cd ${WRKSRC}/docs && sphinx-build -M html . _build) |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
104 .endif |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
105 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
106 do-install: |
|
276
3c24b07240f2
Move the implementation of "mount" and "umount" into the new tool fzfs.
Franz Glasner <fzglas.hg@dom66.de>
parents:
275
diff
changeset
|
107 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma |
|
25
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
108 ${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
109 .endfor |
|
65
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
110 ${MKDIR} ${STAGEDIR}${ETCDIR} |
|
131
993fecdf2a70
Rename etc/tools.conf to etc/pkgtools.conf.
Franz Glasner <fzglas.hg@dom66.de>
parents:
128
diff
changeset
|
111 .for _ef in package-mapping.conf.sample pkgtools.conf.sample bsmtp2dma.conf.sample |
|
65
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
112 ${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef} |
|
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
113 .endfor |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
114 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
|
391
8b1740deedbb
Refactor: Renamed the weekly 800.local-certbot-post-deploy to a daily 720.local-triggered-action.
Franz Glasner <fzglas.hg@dom66.de>
parents:
388
diff
changeset
|
115 .for _ps in 800.local-ipv6-refresh 750.local-trim-zfs 720.local-triggered-action |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
116 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
|
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
117 .endfor |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
118 ${MKDIR} ${STAGEDIR}${DATADIR} |
|
483
1aa14a7d96dc
Provide a simple implementation of arrays for the FreeBSD POSIX/Bourne shell /bin/sh
Franz Glasner <fzglas.hg@dom66.de>
parents:
480
diff
changeset
|
119 .for _df in array.sh common.subr |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
120 ${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}/${_df} ${STAGEDIR}${DATADIR} |
|
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
121 .endfor |
|
439
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
122 ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
123 .for _exf in freebsd-update-ftjail-template.sh freebsd-update-ftjail.sh |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
124 ${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/${_exf} ${STAGEDIR}${EXAMPLESDIR} |
|
b5e45ecd4032
Rename the recently added example scripts and integrate into the package build.
Franz Glasner <fzglas.hg@dom66.de>
parents:
434
diff
changeset
|
125 .endfor |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
126 ${MKDIR} ${STAGEDIR}${FWIREGUARD_ETCDIR} |
|
474
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
127 ${MKDIR} ${STAGEDIR}${FBHYVE_ETCDIR} |
|
57f253106ed6
Implement fbhyve, a management system that runs bhyve virtual machines within tmux sessions
Franz Glasner <fzglas.hg@dom66.de>
parents:
473
diff
changeset
|
128 ${MKDIR} ${STAGEDIR}${FBHYVE_RUNDIR} |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
129 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
130 post-install-DOCS-on: |
|
404
6c0c9159744d
Move the manual pages for the periodic scripts into man secition 5
Franz Glasner <fzglas.hg@dom66.de>
parents:
396
diff
changeset
|
131 .for _mp in ${MANPAGES5:R} |
|
456
1aa75c6d3ef6
FIX: man pages are now in $PREFIX/share/man instead of $PREFIX/man
Franz Glasner <fzglas.hg@dom66.de>
parents:
440
diff
changeset
|
132 ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${_mp}.5 ${STAGEDIR}${PREFIX}/share/man/man5 |
|
404
6c0c9159744d
Move the manual pages for the periodic scripts into man secition 5
Franz Glasner <fzglas.hg@dom66.de>
parents:
396
diff
changeset
|
133 .endfor |
|
294
c2e2fed957ed
- Compute a dynmic list of manual pages
Franz Glasner <fzglas.hg@dom66.de>
parents:
293
diff
changeset
|
134 .for _mp in ${MANPAGES8:R} |
|
456
1aa75c6d3ef6
FIX: man pages are now in $PREFIX/share/man instead of $PREFIX/man
Franz Glasner <fzglas.hg@dom66.de>
parents:
440
diff
changeset
|
135 ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${_mp}.8 ${STAGEDIR}${PREFIX}/share/man/man8 |
|
283
1fc3b04b39fa
Build and package manual pages for fzfs, fzfs-mount and fzfs-umount.
Franz Glasner <fzglas.hg@dom66.de>
parents:
281
diff
changeset
|
136 .endfor |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
137 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
138 .include <bsd.port.mk> |
