Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
annotate Makefile @ 765:cb68580976f7
farray.sh: Optimize: Remove some intermediate variables where not really needed
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 21 Oct 2024 15:48:39 +0200 |
| parents | 019e69bf6f21 |
| children | 56ab5c012d5f |
| 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 |
| 709 | 4 PORTVERSION= 0.28.2 |
|
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 |
|
549
48b31d24d71d
Changed description: remove the wording "private"
Franz Glasner <fzglas.hg@dom66.de>
parents:
548
diff
changeset
|
10 COMMENT= Collection of system management tools for FreeBSD |
|
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 |
|
664
83e6237350e4
Flavor "alldeps" now also depends on "tmux".
Franz Glasner <fzglas.hg@dom66.de>
parents:
617
diff
changeset
|
16 alldeps_RUN_DEPENDS= jq>=1.5:textproc/jq \ |
|
83e6237350e4
Flavor "alldeps" now also depends on "tmux".
Franz Glasner <fzglas.hg@dom66.de>
parents:
617
diff
changeset
|
17 tmux>=3:sysutils/tmux |
|
548
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
18 |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
19 FLAVORS= default alldeps |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
20 FLAVOR?= ${FLAVORS:[1]} |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
21 |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
22 default_PKGNAMESUFFIX= |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
23 default_CONFLICTS_INSTALL= local-bsdtools-alldeps |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
24 |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
25 alldeps_PKGNAMESUFFIX= -alldeps |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
26 .if ${FLAVOR} == alldeps |
|
549
48b31d24d71d
Changed description: remove the wording "private"
Franz Glasner <fzglas.hg@dom66.de>
parents:
548
diff
changeset
|
27 COMMENT= Collection of system management tools for FreeBSD (all runtime dependencies) |
|
548
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
28 .endif |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
29 alldeps_DESCR= pkg-descr.alldeps |
|
6b85a603765a
Create package flavors: the default one, and local-bsdtools-alldeps with all runtime dependencies explicitely declared
Franz Glasner <fzglas.hg@dom66.de>
parents:
547
diff
changeset
|
30 alldeps_CONFLICTS_INSTALL= local-bsdtools |
| 28 | 31 |
|
478
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
32 # |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
33 # 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
|
34 # 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
|
35 # |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
36 #NO_ARCH= yes |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
37 PKG_ENV+= ABI="freebsd:*:*" |
|
ce46191f24d6
fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents:
474
diff
changeset
|
38 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
39 WRKSRC= ${WRKDIR}/local-bsdtools |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
40 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
41 OPTIONS_DEFINE= DOCS |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
42 OPTIONS_SUB= yes |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
43 |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
44 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
|
45 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
|
46 |
|
465
c8abd9d7aac7
MERGE: rc.d/bhyve from origin into fbhyve
Franz Glasner <fzglas.hg@dom66.de>
parents:
458
diff
changeset
|
47 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
|
48 |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
49 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
|
50 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
|
51 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
|
52 FBHYVE_RUNDIR="${FBHYVE_RUNDIR}" |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
53 |
|
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
|
54 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
|
55 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
|
56 = 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
|
57 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
58 .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
|
59 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
60 SRC= ${.CURDIR} |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
61 |
|
404
6c0c9159744d
Move the manual pages for the periodic scripts into man secition 5
Franz Glasner <fzglas.hg@dom66.de>
parents:
396
diff
changeset
|
62 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
|
63 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
|
64 |
|
43
22b7c9e08b13
Make the name of the canonical Mercurial path configurable.
Franz Glasner <hg@dom66.de>
parents:
41
diff
changeset
|
65 HGCANONICALPATH?= default |
|
558
3ae0d41945a7
Use "hg -i" instead of "hg -q" to retrieve the global revision
Franz Glasner <fzglas.hg@dom66.de>
parents:
551
diff
changeset
|
66 HGREVISION= ${:!hg id -R "${SRC}" -i!} |
|
27
a105a7fc801f
Remove early evaluation of Mercurial data because clean should work w/o Mercurial
Franz Glasner <hg@dom66.de>
parents:
26
diff
changeset
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 SIMPLEVERSIONTAG= ${PKGORIGIN} v${PKGVERSION} (rv:${HGREVISION}) |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
73 |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
74 FWIREGUARD_ETCDIR?= "${PREFIX}/etc/fwireguard" |
|
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
75 |
|
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
|
76 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
|
77 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
|
78 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
79 do-extract: |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
80 ${MKDIR} ${WRKSRC}/bin |
| 124 | 81 ${MKDIR} ${WRKSRC}/sbin |
|
291
f2b4edf5f6a3
Docs: read the version from the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
290
diff
changeset
|
82 ${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
|
83 .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
|
84 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} |
|
559
cfc1a2151de4
Instead of applying multiple invocations of "sed" call it one with multiple commands (many "-e <command>" params)
Franz Glasner <fzglas.hg@dom66.de>
parents:
558
diff
changeset
|
85 ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" -e "s|@@ETCDIR@@|${ETCDIR}|" -e "s|@@DATADIR@@|${DATADIR}|" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp} |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
86 .endfor |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
87 ${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
|
88 .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
|
89 ${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
|
90 ${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
|
91 .endfor |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
92 ${MKDIR} ${WRKSRC}/share/${PORTNAME} |
|
547
f86041364bc1
FIX: array.sh is gone, farray.sh is there: adjust Makefile and plist
Franz Glasner <fzglas.hg@dom66.de>
parents:
501
diff
changeset
|
93 .for _df in share/local-bsdtools/farray.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
|
94 ${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
|
95 ${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
|
96 .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
|
97 ${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
|
98 .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
|
99 ${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
|
100 .endfor |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
101 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
102 post-extract-DOCS-on: |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
103 ${MKDIR} ${WRKSRC}/docs |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
104 (${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
|
105 .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
|
106 ${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
|
107 ${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
|
108 .endfor |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
109 |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
110 .if ${PORT_OPTIONS:MDOCS} |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
111 do-build: |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
112 (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
|
113 (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
|
114 .endif |
|
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
115 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
116 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
|
117 .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
|
118 ${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
|
119 .endfor |
|
65
29ede570c816
Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents:
57
diff
changeset
|
120 ${MKDIR} ${STAGEDIR}${ETCDIR} |
|
131
993fecdf2a70
Rename etc/tools.conf to etc/pkgtools.conf.
Franz Glasner <fzglas.hg@dom66.de>
parents:
128
diff
changeset
|
121 .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
|
122 ${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
|
123 .endfor |
|
186
39e5b947a28e
Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents:
170
diff
changeset
|
124 ${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
|
125 .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
|
126 ${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
|
127 .endfor |
|
440
9c8ba2097a35
Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
439
diff
changeset
|
128 ${MKDIR} ${STAGEDIR}${DATADIR} |
|
547
f86041364bc1
FIX: array.sh is gone, farray.sh is there: adjust Makefile and plist
Franz Glasner <fzglas.hg@dom66.de>
parents:
501
diff
changeset
|
129 .for _df in farray.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
|
130 ${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
|
131 .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
|
132 ${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
|
133 .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
|
134 ${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
|
135 .endfor |
|
473
c3125616d0ec
Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents:
465
diff
changeset
|
136 ${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
|
137 ${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
|
138 ${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
|
139 |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
140 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
|
141 .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
|
142 ${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
|
143 .endfor |
|
294
c2e2fed957ed
- Compute a dynmic list of manual pages
Franz Glasner <fzglas.hg@dom66.de>
parents:
293
diff
changeset
|
144 .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
|
145 ${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
|
146 .endfor |
|
281
490aed463971
Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents:
276
diff
changeset
|
147 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
148 .include <bsd.port.mk> |
