Browse Source

dns/nextdns: Use a cleaner way to manage its configuration file sample.

2022Q3
Olivier Cochard 2 weeks ago
parent
commit
b1deda5bd6
  1. 10
      dns/nextdns/Makefile
  2. 4
      dns/nextdns/pkg-deinstall

10
dns/nextdns/Makefile

@ -1,7 +1,7 @@
PORTNAME= nextdns
PORTVERSION= 1.37.11
PORTREVISION= 2
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= dns security
MAINTAINER= rs@nextdns.io
@ -23,10 +23,14 @@ GH_TUPLE= \
vishvananda:netlink:v1.1.0:vishvananda_netlink/vendor/github.com/vishvananda/netlink \
vishvananda:netns:2eb08e3e575f:vishvananda_netns/vendor/github.com/vishvananda/netns
GO_TARGET= .:${PREFIX}/sbin/nextdns
GO_TARGET= .:${PREFIX}/sbin/${PORTNAME}
SUB_FILES= pkg-message
PLIST_FILES= sbin/nextdns
PLIST_FILES= sbin/${PORTNAME} \
"@sample etc/${PORTNAME}.conf.sample"
post-install:
@${STAGEDIR}${PREFIX}/sbin/${PORTNAME} config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>

4
dns/nextdns/pkg-deinstall

@ -6,8 +6,4 @@ fi
${PKG_PREFIX}/nextdns uninstall >/dev/null 2>/dev/null
echo "==> If you are uninstalling nextdns permanently,"
echo " and you do *NOT* want to retain the configuration file,"
echo " you should manually delete ${PKG_PREFIX}/etc/nextdns.conf"
exit 0

Loading…
Cancel
Save