ports/183264: [PATCH] sysutils/bsdstats: use drill instead of dig on 10.0-BETA1 and after.
Yasuhiro KIMURA
yasu at utahime.org
Thu Oct 24 06:30:05 UTC 2013
>Number: 183264
>Category: ports
>Synopsis: [PATCH] sysutils/bsdstats: use drill instead of dig on 10.0-BETA1 and after.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 24 06:30:03 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Yasuhiro KIMURA
>Release: FreeBSD 10.0-BETA1 amd64
>Organization:
>Environment:
System: FreeBSD xxxx 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256770: Sun Oct 20 14:04:52 JST 2013 xxxx amd64
>Description:
- Use drill instead of dig on 10.0-BETA1 and after where BIND is
removed from base system.
- Bump PORTREVISION.
>How-To-Repeat:
>Fix:
--- patch-bsdstats begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 331453)
+++ Makefile (working copy)
@@ -3,7 +3,7 @@
PORTNAME= bsdstats
PORTVERSION= 5.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= sysutils
DISTFILES=
@@ -13,7 +13,16 @@
NO_BUILD= yes
USE_RC_SUBR= bsdstats
SUB_FILES= 300.statistics pkg-message
+SUB_LIST+= DIG=${DIG}
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 1000500
+DIG= drill
+.else
+DIG= dig
+.endif
+
NO_STAGE= yes
do-install:
${MKDIR} ${PREFIX}/etc/periodic/monthly
@@ -25,4 +34,4 @@
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: files/300.statistics.in
===================================================================
--- files/300.statistics.in (revision 331453)
+++ files/300.statistics.in (working copy)
@@ -71,7 +71,7 @@
}
check_dns () {
- if [ `dig bsdstats.org txt | grep TXT | grep UP | wc -l` = 0 ]
+ if [ `%%DIG%% bsdstats.org txt | grep TXT | grep UP | wc -l` = 0 ]
then
echo "DNS not reachable, Network Down?"
exit
--- patch-bsdstats ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list