mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Final patch
- Add back cat pkg-message - Add knot.full.conf to ETCDIR and pkg-plist - Bump PORTREVISON PR: ports/165798 Submitted by: Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer) Approved by: Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer) Feature safe: yes
This commit is contained in:
parent
20354a2ec0
commit
518b7ede95
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293455
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= knot
|
||||
PORTVERSION= 1.0.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns ipv6
|
||||
MASTER_SITES= http://public.nic.cz/files/knot-dns/ \
|
||||
http://www.dns-lab.com/downloads/knot-dns/
|
||||
@ -38,6 +39,7 @@ PORTDOCS= AUTHORS ChangeLog CodingStyle COPYING \
|
||||
post-install:
|
||||
@${MKDIR} ${ETCDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/samples/knot.min.conf ${ETCDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/samples/knot.full.conf ${ETCDIR}
|
||||
@if [ ! -f ${ETCDIR}/knot.conf ]; then \
|
||||
${INSTALL_DATA} ${ETCDIR}/knot.min.conf ${ETCDIR}/knot.conf; \
|
||||
fi
|
||||
@ -45,5 +47,6 @@ post-install:
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
||||
.endif
|
||||
@${CAT} ${WRKDIR}/pkg-message
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -5,14 +5,10 @@
|
||||
#
|
||||
# ----- configure --------------------------------------------------
|
||||
#
|
||||
$EDITOR %%PREFIX%%/etc/knot/knot.conf
|
||||
$EDITOR %%ETCDIR%%/knot.conf
|
||||
#
|
||||
# For all option have a look at the contents of
|
||||
# %%PREFIX%%/etc/knot/knot.sample.conf
|
||||
#
|
||||
# For example, under "system" you might like to add
|
||||
# user "bind.bind";
|
||||
# to not have knotd run as root/wheel
|
||||
# %%PREFIX%%/etc/knot/knot.full.conf
|
||||
#
|
||||
# ----- prepare ----------------------------------------------------
|
||||
#
|
||||
@ -23,7 +19,7 @@
|
||||
#
|
||||
# ----- startup ----------------------------------------------------
|
||||
#
|
||||
%%PREFIX%%/etc/rc.d/knot start
|
||||
%%PREFIX%%/etc/rc.d/knotd start
|
||||
#
|
||||
####################################################################
|
||||
|
||||
|
@ -2,9 +2,11 @@
|
||||
@stopdaemon knotd
|
||||
%%ETCDIR%%/example.com.zone
|
||||
@unexec if cmp -s %B/knot.min.conf %B/knot.conf; then rm -f %B/knot.conf; fi
|
||||
%%ETCDIR%%/knot.full.conf
|
||||
%%ETCDIR%%/knot.min.conf
|
||||
@exec [ -f %B/knot.conf ] || cp %B/%f %B/knot.conf
|
||||
%%ETCDIR%%/knot.sample.conf
|
||||
@dirrmtry %%ETCDIR%%
|
||||
libexec/knot-zcompile
|
||||
libexec/unittests
|
||||
libexec/unittests-libknot
|
||||
@ -13,4 +15,3 @@ libexec/unittests-xfr
|
||||
libexec/unittests-zcompile
|
||||
sbin/knotc
|
||||
sbin/knotd
|
||||
@dirrmtry %%ETCDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user