diff --git a/dns/dnsreflector/Makefile b/dns/dnsreflector/Makefile index da7685748aa9..5a11fa187df9 100644 --- a/dns/dnsreflector/Makefile +++ b/dns/dnsreflector/Makefile @@ -1,23 +1,24 @@ PORTNAME= dnsreflector PORTVERSION= 1.02 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://www.wolfermann.org/ MAINTAINER= ismail.yenigul@endersys.com.tr COMMENT= Listens for DNS queries on a UDP port and change the answer WWW= https://www.wolfermann.org/dnsreflector.html USE_RC_SUBR= dnsreflector PORTDOCS= README PLIST_FILES= sbin/dnsreflector share/man/man1/dnsreflector.1.gz OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dnsreflector ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/dnsreflector.1 ${STAGEDIR}${PREFIX}/share/man/man1/ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include diff --git a/dns/dnsreflector/files/dnsreflector.in b/dns/dnsreflector/files/dnsreflector.in index ae8c3fd5cd51..66d0dc2aa6a4 100644 --- a/dns/dnsreflector/files/dnsreflector.in +++ b/dns/dnsreflector/files/dnsreflector.in @@ -1,29 +1,30 @@ #!/bin/sh # PROVIDE: dnsreflector # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # # Define these dnsreflector_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # # dnsreflector_enable="YES" # Run the dnsreflector(1) daemon (YES/NO). # dnsreflector_flags="" # Extra flags for dnsreflector(1) (if enabled). # # DO NOT CHANGE THESE DEFAULT VALUES HERE # dnsreflector_enable=${dnsreflector_enable:-"NO"} +: ${dnsreflector_svcj_options:="net_basic"} command_args=${dnsreflector_flags:-"-d -a 127.0.0.1 -p 53000"} . /etc/rc.subr name="dnsreflector" rcvar=dnsreflector_enable command="%%PREFIX%%/sbin/dnsreflector" load_rc_config $name run_rc_command "$1"