- Add SSL to OPTIONS

- Do not force the user to run ddclient as a daemon

PR:		ports/163271
Submitted by:	Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
This commit is contained in:
Ryan Steinmetz 2012-01-04 01:47:21 +00:00
parent 26078a1ecd
commit a7e522e2ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288491
2 changed files with 13 additions and 5 deletions

View file

@ -7,16 +7,13 @@
PORTNAME= ddclient
PORTVERSION= 3.8.1
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= rfarmer@predatorlabs.net
COMMENT= Update dynamic DNS entries
.ifndef WITHOUT_SSL
RUN_DEPENDS= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
.endif
LICENSE= GPLv2
USE_BZIP2= yes
@ -24,6 +21,14 @@ USE_PERL5_RUN= yes
NO_BUILD= yes
USE_RC_SUBR= ${PORTNAME}
OPTIONS= SSL "Enable SSL support" ON
.include <bsd.port.options.mk>
.ifndef WITHOUT_SSL
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
.endif
SUB_FILES= pkg-message ddclient_force
PKGMESSAGE= ${WRKDIR}/pkg-message

View file

@ -10,6 +10,9 @@
#
# ddclient_enable="YES"
#
# By default, ddclient does not daemonize. To launch ddclient
# as a daemon, add the -daemon 300 argument to ddclient_flags
#
. /etc/rc.subr
@ -22,6 +25,6 @@ required_files="%%PREFIX%%/etc/${name}.conf"
load_rc_config ${name}
: ${ddclient_enable="NO"}
: ${ddclient_flags="-daemon 300"}
: ${ddclient_flags=""}
run_rc_command "$1"