svn commit: r531533 - head/dns/dsc
Craig Leres
leres at FreeBSD.org
Sun Apr 12 16:35:39 UTC 2020
Author: leres
Date: Sun Apr 12 16:35:38 2020
New Revision: 531533
URL: https://svnweb.freebsd.org/changeset/ports/531533
Log:
dns/dsc: Improve out-of-box behavior
(From the PR) The sample configuration refers to an invalid PID
file location, and a non-existent data directory.
- Set PID file location to match RC script default
- Create default data directory
- While here, drop dependency on dns/dsp, which is not required
to collect stats
PR: 245141
Submitted by: John W. O'Brien
Approved by: Leo Vandewoestijne (maintainer timeout, 2 weeks)
Modified:
head/dns/dsc/Makefile
head/dns/dsc/pkg-plist
Modified: head/dns/dsc/Makefile
==============================================================================
--- head/dns/dsc/Makefile Sun Apr 12 16:32:17 2020 (r531532)
+++ head/dns/dsc/Makefile Sun Apr 12 16:35:38 2020 (r531533)
@@ -3,6 +3,7 @@
PORTNAME= dsc
PORTVERSION= 2.8.1
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= https://www.dns-oarc.net/files/dsc/ \
https://dns.company/files/dsc/
@@ -16,14 +17,14 @@ BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb
RUN_DEPENDS= libpcap>=1.8.1:net/libpcap \
p5-Proc-PID-File>=1.28:devel/p5-Proc-PID-File \
- p5-XML-Simple>=2.24:textproc/p5-XML-Simple \
- dsp>=2.0.0:dns/dsp
+ p5-XML-Simple>=2.24:textproc/p5-XML-Simple
USES= gmake perl5 shebangfix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-extra-cflags=-I${LOCALBASE}/include \
- --with-extra-ldflags=-L${LOCALBASE}/lib
+ --with-extra-ldflags=-L${LOCALBASE}/lib \
+ --with-pid-file=/var/run/${PORTNAME}.pid
SUB_FILES= pkg-message
SHEBANG_FILES= cron/upload-prep.pl
@@ -41,5 +42,8 @@ post-extract:
${WRKSRC}/cron/upload-x509.sh \
${WRKSRC}/src/dsc.conf.5.in \
${WRKSRC}/src/dsc.sh
+
+post-install:
+ ${MKDIR} ${STAGEDIR}/var/lib/${PORTNAME}
.include <bsd.port.mk>
Modified: head/dns/dsc/pkg-plist
==============================================================================
--- head/dns/dsc/pkg-plist Sun Apr 12 16:32:17 2020 (r531532)
+++ head/dns/dsc/pkg-plist Sun Apr 12 16:35:38 2020 (r531533)
@@ -10,3 +10,5 @@ man/man5/dsc.conf.5.gz
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/UPGRADE.md
+ at dir /var/lib/dsc
+ at dir /var/lib
More information about the svn-ports-head
mailing list