svn commit: r395703 - in head/dns: bind910 bind99
Mathieu Arnold
mat at FreeBSD.org
Mon Aug 31 16:43:15 UTC 2015
Author: mat
Date: Mon Aug 31 16:43:14 2015
New Revision: 395703
URL: https://svnweb.freebsd.org/changeset/ports/395703
Log:
Add an option for embedding PORTREVISION in the server's version string.
Sponsored by: Absolight
Modified:
head/dns/bind910/Makefile
head/dns/bind99/Makefile
Modified: head/dns/bind910/Makefile
==============================================================================
--- head/dns/bind910/Makefile Mon Aug 31 15:38:22 2015 (r395702)
+++ head/dns/bind910/Makefile Mon Aug 31 16:43:14 2015 (r395703)
@@ -8,7 +8,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/}
PORTREVISION= 0
.else
# dns/bind910 here
-PORTREVISION= 2
+PORTREVISION= 3
.endif
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
@@ -59,7 +59,7 @@ OPTIONS_RADIO_GOSTDEF= GOST GOST_ASN1
.if !defined(BIND_TOOLS_SLAVE)
OPTIONS_DEFAULT+= RRL
OPTIONS_DEFINE+= LINKS RPZ_NSIP RPZ_NSDNAME RRL DOCS NEWSTATS GEOIP \
- MINCACHE
+ MINCACHE PORTREVISION
OPTIONS_GROUP= DLZ
OPTIONS_GROUP_DLZ= DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB \
DLZ_LDAP DLZ_FILESYSTEM DLZ_STUB
@@ -83,6 +83,7 @@ GOST_ASN1_DESC= GOST using ASN.1
PYTHON_DESC= Build with Python utilities
START_LATE_DESC= Start BIND late in the boot process
MINCACHE_DESC= Use the mincachettl patch
+PORTREVISION_DESC= Show PORTREVISION in the version string
LINKS_DESC= Create conf file symlinks in ${PREFIX}
NEWSTATS_DESC= Enable alternate xml statistics channel format
@@ -226,6 +227,10 @@ post-patch:
${WRKSRC}/bin/${FILE}
.endfor
+post-patch-PORTREVISION-on:
+ @${REINPLACE_CMD} -e '/EXTENSIONS/s#=$$#=_${PORTREVISION}#' \
+ ${WRKSRC}/version
+
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}/arm
Modified: head/dns/bind99/Makefile
==============================================================================
--- head/dns/bind99/Makefile Mon Aug 31 15:38:22 2015 (r395702)
+++ head/dns/bind99/Makefile Mon Aug 31 16:43:14 2015 (r395703)
@@ -3,7 +3,7 @@
PORTNAME= bind
PORTVERSION= ${ISCVERSION:S/-P/P/}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
PKGNAMESUFFIX= 99
@@ -44,7 +44,8 @@ SUB_FILES= pkg-message
OPTIONS_DEFAULT= IPV6 SSL THREADS SIGCHASE IDN GSSAPI_NONE RRL
OPTIONS_DEFINE= SSL IDN REPLACE_BASE LARGE_FILE FIXED_RRSET SIGCHASE \
IPV6 THREADS FILTER_AAAA GOST PYTHON START_LATE MINCACHE \
- LINKS RPZ_NSIP RPZ_NSDNAME RRL DOCS RPZ_PATCH NEWSTATS
+ LINKS RPZ_NSIP RPZ_NSDNAME RRL DOCS RPZ_PATCH NEWSTATS \
+ PORTREVISION
OPTIONS_GROUP= DLZ
OPTIONS_GROUP_DLZ= DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB \
DLZ_LDAP DLZ_FILESYSTEM DLZ_STUB
@@ -63,6 +64,7 @@ GOST_DESC= Enable GOST ciphers, needs S
PYTHON_DESC= Build with Python utilities
START_LATE_DESC= Start BIND late in the boot process
MINCACHE_DESC= Use the mincachettl patch
+PORTREVISION_DESC= Show PORTREVISION in the version string
LINKS_DESC= Create conf file symlinks in ${PREFIX}
NEWSTATS_DESC= Enable alternate xml statistics channel format
@@ -196,6 +198,10 @@ post-patch:
${WRKSRC}/bin/${FILE}
.endfor
+post-patch-PORTREVISION-on:
+ @${REINPLACE_CMD} -e '/EXTENSIONS/s#=$$#=_${PORTREVISION}#' \
+ ${WRKSRC}/version
+
post-configure:
@${REINPLACE_CMD} -e '/^SO_LDFLAGS/s/-Wl,-rpath,/-rpath /' ${WRKSRC}/bin/tests/system/dlzexternal/Makefile
More information about the svn-ports-head
mailing list