annotate Makefile @ 649:4ee9a8042f4a

common.subr: _get_jail_from_path() now just returns when the jail is dying. But it prints the name of the jail if it is yet dying. Real error reporting must not consistently be done in the caller.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 27 Sep 2024 21:21:34 +0200
parents 330ebeb57515
children 83e6237350e4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
617
330ebeb57515 +++++ v0.27
Franz Glasner <fzglas.hg@dom66.de>
parents: 559
diff changeset
4 PORTVERSION= 0.27
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
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
16 alldeps_RUN_DEPENDS= jq>=1.5:textproc/jq
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
17
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 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
19 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
20
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 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
22 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
23
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 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
25 .if ${FLAVOR} == alldeps
549
48b31d24d71d Changed description: remove the wording "private"
Franz Glasner <fzglas.hg@dom66.de>
parents: 548
diff changeset
26 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
27 .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
28 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
29 alldeps_CONFLICTS_INSTALL= local-bsdtools
28
735044a0a8c0 Build depends on Mercurial now
Franz Glasner <hg@dom66.de>
parents: 27
diff changeset
30
478
ce46191f24d6 fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents: 474
diff changeset
31 #
ce46191f24d6 fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents: 474
diff changeset
32 # 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
33 # 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
34 #
ce46191f24d6 fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents: 474
diff changeset
35 #NO_ARCH= yes
ce46191f24d6 fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents: 474
diff changeset
36 PKG_ENV+= ABI="freebsd:*:*"
ce46191f24d6 fbhyve: try to create an ABI-independent binary package
Franz Glasner <fzglas.hg@dom66.de>
parents: 474
diff changeset
37
13
f5f04faa9acf Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents: 2
diff changeset
38 WRKSRC= ${WRKDIR}/local-bsdtools
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
39
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
40 OPTIONS_DEFINE= DOCS
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
41 OPTIONS_SUB= yes
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
42
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
43 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
44 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
45
465
c8abd9d7aac7 MERGE: rc.d/bhyve from origin into fbhyve
Franz Glasner <fzglas.hg@dom66.de>
parents: 458
diff changeset
46 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
47
473
c3125616d0ec Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents: 465
diff changeset
48 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
49 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
50 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
51 FBHYVE_RUNDIR="${FBHYVE_RUNDIR}"
473
c3125616d0ec Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents: 465
diff changeset
52
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
53 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
54 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
55 = 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
56
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
57 .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
58
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
59 SRC= ${.CURDIR}
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
60
404
6c0c9159744d Move the manual pages for the periodic scripts into man secition 5
Franz Glasner <fzglas.hg@dom66.de>
parents: 396
diff changeset
61 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
62 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
63
43
22b7c9e08b13 Make the name of the canonical Mercurial path configurable.
Franz Glasner <hg@dom66.de>
parents: 41
diff changeset
64 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
65 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
66 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
67 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
68 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
69 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
70 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
71 SIMPLEVERSIONTAG= ${PKGORIGIN} v${PKGVERSION} (rv:${HGREVISION})
16
08fc189baf67 Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents: 13
diff changeset
72
473
c3125616d0ec Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents: 465
diff changeset
73 FWIREGUARD_ETCDIR?= "${PREFIX}/etc/fwireguard"
c3125616d0ec Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents: 465
diff changeset
74
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
75 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
76 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
77
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
78 do-extract:
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
79 ${MKDIR} ${WRKSRC}/bin
124
47c7223bea76 Move bsmtp2dma to sbin.
Franz Glasner <fzglas.hg@dom66.de>
parents: 115
diff changeset
80 ${MKDIR} ${WRKSRC}/sbin
291
f2b4edf5f6a3 Docs: read the version from the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 290
diff changeset
81 ${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
82 .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
83 ${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
84 ${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
85 .endfor
186
39e5b947a28e Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents: 170
diff changeset
86 ${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
87 .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
88 ${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
89 ${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
90 .endfor
440
9c8ba2097a35 Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents: 439
diff changeset
91 ${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
92 .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
93 ${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
94 ${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
95 .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
96 ${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
97 .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
98 ${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
99 .endfor
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
100
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
101 post-extract-DOCS-on:
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
102 ${MKDIR} ${WRKSRC}/docs
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
103 (${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
104 .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
105 ${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
106 ${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
107 .endfor
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
108
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
109 .if ${PORT_OPTIONS:MDOCS}
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
110 do-build:
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
111 (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
112 (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
113 .endif
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
114
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
115 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
116 .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
117 ${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
118 .endfor
65
29ede570c816 Adjusted the package's Makefile for new configuration file
Franz Glasner <hg@dom66.de>
parents: 57
diff changeset
119 ${MKDIR} ${STAGEDIR}${ETCDIR}
131
993fecdf2a70 Rename etc/tools.conf to etc/pkgtools.conf.
Franz Glasner <fzglas.hg@dom66.de>
parents: 128
diff changeset
120 .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
121 ${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
122 .endfor
186
39e5b947a28e Create a periodic script to keep the IPv6 routing working.
Franz Glasner <fzglas.hg@dom66.de>
parents: 170
diff changeset
123 ${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
124 .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
125 ${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
126 .endfor
440
9c8ba2097a35 Prepare a script that shall contain common subroutines for all scripts.
Franz Glasner <fzglas.hg@dom66.de>
parents: 439
diff changeset
127 ${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
128 .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
129 ${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
130 .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
131 ${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
132 .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
133 ${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
134 .endfor
473
c3125616d0ec Make the configuration directory of fwireguard configurable
Franz Glasner <fzglas.hg@dom66.de>
parents: 465
diff changeset
135 ${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
136 ${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
137 ${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
138
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
139 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
140 .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
141 ${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
142 .endfor
294
c2e2fed957ed - Compute a dynmic list of manual pages
Franz Glasner <fzglas.hg@dom66.de>
parents: 293
diff changeset
143 .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
144 ${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
145 .endfor
281
490aed463971 Implement a DOCS make option to build manual pages.
Franz Glasner <fzglas.hg@dom66.de>
parents: 276
diff changeset
146
2
8781814174df Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff changeset
147 .include <bsd.port.mk>