Index: head/dns/gdnsd2/Makefile =================================================================== --- head/dns/gdnsd2/Makefile (revision 420940) +++ head/dns/gdnsd2/Makefile (revision 420941) @@ -1,57 +1,58 @@ # Created by: Allan Jude # $FreeBSD$ PORTNAME= gdnsd PORTVERSION= 2.2.2 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= https://github.com/gdnsd/gdnsd/releases/download/v${PORTVERSION}/ \ http://mirrors.rit.edu/zi/ \ http://gdnsd.scaleengine.net/gdnsd/ PKGNAMESUFFIX= 2 MAINTAINER= zi@FreeBSD.org COMMENT= Authoritative-only GeoIP-aware DNS server LICENSE= GPLv3 LIB_DEPENDS= libev.so:devel/libev BUILD_DEPENDS= ragel>0:devel/ragel FETCH_ARGS= -Fpr GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var USE_LDCONFIG= yes USES= pkgconfig libtool tar:xz perl5 gmake USE_PERL5= build CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFLICTS_INSTALL= gdnsd-1.[0-9]* USE_RC_SUBR= gdnsd USERS?= gdnsd GROUPS?= gdnsd OPTIONS_DEFINE= DOCS GEOIP URCU OPTIONS_DEFAULT=GEOIP GEOIP_DESC= Enable GeoIP Support GEOIP_RUN_DEPENDS= GeoIP>=0:net/GeoIP URCU_DESC= Read-Copy-Update Support (Faster Zone Parsing) URCU_CONFIGURE_WITH= urcu URCU_LIB_DEPENDS= liburcu.so:sysutils/liburcu post-patch: @${REINPLACE_CMD} -e 's|$${localstatedir}/lib/$${PACKAGE_NAME}|/var/db/${PORTNAME}|g' \ ${WRKSRC}/configure post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libgdnsd.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_*.so @${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/geoip \ ${STAGEDIR}${PREFIX}/etc/gdnsd/zones \ ${STAGEDIR}/var/run/gdnsd .include Index: head/dns/gdnsd2/files/gdnsd.in =================================================================== --- head/dns/gdnsd2/files/gdnsd.in (revision 420940) +++ head/dns/gdnsd2/files/gdnsd.in (revision 420941) @@ -1,45 +1,47 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: gdnsd # REQUIRE: DAEMON # REQUIRE: LOGIN # KEYWORD: FreeBSD shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # gdnsd_enable (bool): Set to NO by default. # Set it to YES to enable gdnsd. # gdnsd_flags (str): Set to "" by default # Extra command line argument flags . /etc/rc.subr name="gdnsd" rcvar=gdnsd_enable # set defaults load_rc_config $name : ${gdnsd_enable:="NO"} : ${gdnsd_flags:=""} command="%%PREFIX%%/sbin/gdnsd" command_args="start" procname=${command} +restart_precmd="gdnsd_checkconf" reload_cmd="gdnsd_reload" +reload_precmd="gdnsd_checkconf" configtest_cmd="gdnsd_checkconf" extra_commands="reload configtest" gdnsd_reload() { ${command} ${gdnsd_flags} reload-zones } gdnsd_checkconf() { ${command} ${gdnsd_flags} checkconf } run_rc_command "$1"