diff --git a/dns/noip/Makefile b/dns/noip/Makefile index 87185a52471a..354b8757d5f8 100644 --- a/dns/noip/Makefile +++ b/dns/noip/Makefile @@ -1,39 +1,39 @@ PORTNAME= noip PORTVERSION= 2.1.9 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= dns MASTER_SITES= http://www.no-ip.com/client/linux/ \ LOCAL/ehaupt MAINTAINER= sthalik@tehran.lain.pl COMMENT= No-IP.com's dynamic DNS update client WWW= https://www.No-IP.com/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING ALL_TARGET= noip2 SUB_FILES= pkg-message USE_RC_SUBR= noip USERS= noip GROUPS= noip PLIST_SUB= USER="${USERS}" OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.FIRST ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR} conf: (cd ${PREFIX}/etc && ${PREFIX}/bin/noip2 -C) ${CHOWN} noip:noip ${PREFIX}/etc/no-ip2.conf ${CHMOD} 0600 ${PREFIX}/etc/no-ip2.conf .include diff --git a/dns/noip/files/noip.in b/dns/noip/files/noip.in index 67509068fedc..f34e7fef0ae7 100644 --- a/dns/noip/files/noip.in +++ b/dns/noip/files/noip.in @@ -1,32 +1,33 @@ #!/bin/sh # PROVIDE: noip # REQUIRE: NETWORKING SYSLOG DAEMON # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # noip_enable (bool): Set to NO by default. # Set it to YES to enable noip. # noip_config (path): Set to %%PREFIX%%/etc/no-ip2.conf by default. # noip_flags: Set to -c %%PREFIX%%/etc/no-ip2.conf by default. # . /etc/rc.subr name="noip" rcvar=noip_enable command="%%PREFIX%%/bin/noip2" load_rc_config $name : ${noip_enable="NO"} +: ${noip_svcj_options:="net_basic"} : ${noip_config="%%PREFIX%%/etc/no-ip2.conf"} : ${noip_flags="-c $noip_config"} : ${noip_user="noip"} : ${noip_group="noip"} required_files=${noip_config} run_rc_command "$1"