View | Details | Raw Unified | Return to bug 73059
Collapse All | Expand All

(-)ddclient/Makefile (-5 / +10 lines)
Lines 6-21 Link Here
6
#
6
#
7
7
8
PORTNAME=	ddclient
8
PORTNAME=	ddclient
9
PORTVERSION=	3.6.3
9
PORTVERSION=	3.6.4
10
CATEGORIES=	dns
10
CATEGORIES=	dns
11
MASTER_SITES=	http://members.rogers.com/ddclient/pub/
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	ddclient
13
DISTNAME=	${PORTNAME}
12
14
13
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	radek@raadradd.com
14
COMMENT=	Update dynamic DNS entries
16
COMMENT=	Update dynamic DNS entries
15
17
16
USE_PERL5=	yes
18
USE_PERL5=	yes
17
NO_BUILD=	yes
19
NO_BUILD=	yes
18
20
21
USE_RC_SUBR=    yes
22
19
do-install:
23
do-install:
20
	@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
24
	@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
21
	@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
25
	@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
Lines 27-34 Link Here
27
	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
31
	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
28
	@${INSTALL_DATA} ${WRKDIR}/$i ${PREFIX}/share/ddclient
32
	@${INSTALL_DATA} ${WRKDIR}/$i ${PREFIX}/share/ddclient
29
.endfor
33
.endfor
30
	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/ddclient.sh.sample > ${WRKDIR}/ddclient.sh.sample
34
	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g' \
31
	@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh.sample ${PREFIX}/etc/rc.d
35
		< ${FILESDIR}/ddclient.sh > ${WRKDIR}/ddclient.sh
36
	@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh ${PREFIX}/etc/rc.d/
32
37
33
	@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
38
	@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
34
39
(-)ddclient/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (ddclient-3.6.3.tar.gz) = dfa5ff6967cb854de804d4e7b9633fdc
1
MD5 (ddclient.tar.gz) = e4c9753dc61f3622b166cf914b12acd3
2
SIZE (ddclient-3.6.3.tar.gz) = 34497
2
SIZE (ddclient.tar.gz) = 35633
(-)ddclient/files/ddclient.sh (+27 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: ddclient
7
# REQUIRE: LOGIN
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable ddclient:
12
#
13
#ddclient_enable="YES"
14
#
15
ddclient_enable=${ddclient_enable-"NO"}
16
ddclient_flags=${ddclient_flags-"-daemon 300"}
17
18
. %%RC_SUBR%%
19
20
name="ddclient"
21
rcvar=`set_rcvar`
22
command="%%PREFIX%%/sbin/${name}"
23
required_files="%%PREFIX%%/etc/${name}.conf"
24
25
load_rc_config ${name}
26
27
run_rc_command "$1"
(-)ddclient/files/ddclient.sh.sample (-19 lines)
Lines 1-19 Link Here
1
#!/bin/sh
2
3
case "$1" in
4
	start)
5
		if [ -x %%PREFIX%%/sbin/ddclient ]; then
6
			%%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
7
		fi
8
		;;
9
	stop)
10
		/bin/kill `cat /var/run/ddclient.pid`
11
		echo -n ' ddclient'
12
		;;
13
	*)
14
		echo ""
15
		echo "Usage: `basename $0` { start | stop }"
16
		echo ""
17
		exit 64
18
		;;
19
esac
(-)ddclient/files/patch-aa (-7 / +7 lines)
Lines 1-29 Link Here
1
--- ddclient.orig	Sat Aug 25 17:17:28 2001
1
--- ddclient.orig	Sun Oct 24 03:45:24 2004
2
+++ ddclient	Sun Aug 26 19:52:01 2001
2
+++ ddclient	Sun Oct 24 03:47:57 2004
3
@@ -1,5 +1,4 @@
3
@@ -1,5 +1,4 @@
4
-#!/usr/bin/perl -w
4
-#!/usr/bin/perl -w
5
-#!/usr/local/bin/perl -w
5
-#!/usr/local/bin/perl -w
6
+#!%%PERL%% -w
6
+#!%%PERL%% -w
7
 ######################################################################
7
 ######################################################################
8
 # $Header: /home/paul/src/ddclient/RCS/ddclient,v 3.5 2001/08/25 14:22:00 root Exp $
8
 # $Header: /cvsroot/ddclient/ddclient/ddclient,v 1.5 2004/10/17 21:31:31 wimpunk Exp $
9
 #
9
 #
10
@@ -20,8 +19,8 @@
10
@@ -21,8 +20,8 @@
11
 $program  =~ s/d$//;
11
 $program  =~ s/d$//;
12
 my $now       = time;
12
 my $now       = time;
13
 my $hostname  = hostname();
13
 my $hostname  = hostname();
14
-my $etc       = ($program =~ /test/i) ? './'   : '/etc/';
14
-my $etc       = ($program =~ /test/i) ? './'   : '/etc/ddclient/';
15
-my $savedir   = ($program =~ /test/i) ? 'URL/' : '/tmp/';
15
-my $savedir   = ($program =~ /test/i) ? 'URL/' : '/tmp/';
16
+my $etc       = '%%PREFIX%%/etc/';
16
+my $etc       = '%%PREFIX%%/etc/';
17
+my $savedir   = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}/" : "/var/tmp/");
17
+my $savedir   = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}/" : "/var/tmp/");
18
 my $msgs      = '';
18
 my $msgs      = '';
19
 my $last_msgs = '';
19
 my $last_msgs = '';
20
 
20
 
21
@@ -29,7 +28,7 @@
21
@@ -30,7 +29,7 @@
22
 local $file   = '';
22
 local $file   = '';
23
 local $lineno = '';
23
 local $lineno = '';
24
 
24
 
25
-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
25
-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
26
+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin";
26
+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:";
27
 
27
 
28
 sub T_ANY	{'any'};
28
 sub T_ANY	{'any'};
29
 sub T_STRING	{'string'};
29
 sub T_STRING	{'string'};
(-)ddclient/files/patch-ab (-10 / +10 lines)
Lines 1-5 Link Here
1
--- sample-etc_cron.d_ddclient.orig	Sun Jun 15 03:39:16 2003
1
--- sample-etc_cron.d_ddclient.orig	Sun Oct 24 03:48:56 2004
2
+++ sample-etc_cron.d_ddclient	Thu Aug  7 14:31:15 2003
2
+++ sample-etc_cron.d_ddclient	Sun Oct 24 03:49:48 2004
3
@@ -10,8 +10,8 @@
3
@@ -10,8 +10,8 @@
4
 ######################################################################
4
 ######################################################################
5
 ## force an update twice a month (only if you are not using daemon-mode)
5
 ## force an update twice a month (only if you are not using daemon-mode)
Lines 11-21 Link Here
11
 ##
11
 ##
12
-##0 * * * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
12
-##0 * * * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
13
+##0 * * * *	root    %%PREFIX%%/sbin/ddclient -daemon=0 -syslog -quiet retry
13
+##0 * * * *	root    %%PREFIX%%/sbin/ddclient -daemon=0 -syslog -quiet retry
14
--- sample-etc_dhclient-exit-hooks.orig	Sun Jun 15 03:39:16 2003
14
--- sample-etc_dhclient-exit-hooks.orig	Sun Oct 24 03:51:37 2004
15
+++ sample-etc_dhclient-exit-hooks	Thu Aug  7 14:38:38 2003
15
+++ sample-etc_dhclient-exit-hooks	Sun Oct 24 03:52:20 2004
16
@@ -2,10 +2,10 @@
16
@@ -2,10 +2,10 @@
17
 ######################################################################
17
 ######################################################################
18
 ## $Header: /home/paul/src/ddclient/RCS/sample-etc_dhclient-exit-hooks,v 1.1 2002/11/03 20:20:16 root Exp $
18
 ## $Header: /cvsroot/ddclient/ddclient/sample-etc_dhclient-exit-hooks,v 1.1.1.1 2004/08/13 22:29:17 wimpunk Exp $
19
 ######################################################################
19
 ######################################################################
20
-# The /etc/dhclient-enter-hooks script is run by the ISC DHCP client's standard
20
-# The /etc/dhclient-enter-hooks script is run by the ISC DHCP client's standard
21
+# The /etc/dhclient-exit-hooks script is run by the ISC DHCP client's standard
21
+# The /etc/dhclient-exit-hooks script is run by the ISC DHCP client's standard
Lines 26-44 Link Here
26
 case "$new_ip_address" in
26
 case "$new_ip_address" in
27
 10.*)   	;;
27
 10.*)   	;;
28
 172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)	;;
28
 172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)	;;
29
--- sample-etc_dhcpc_dhcpcd-eth0.exe.orig	Sun Jun 15 03:39:16 2003
29
--- sample-etc_dhcpc_dhcpcd-eth0.exe.orig	Sun Oct 24 03:52:38 2004
30
+++ sample-etc_dhcpc_dhcpcd-eth0.exe	Thu Aug  7 14:33:00 2003
30
+++ sample-etc_dhcpc_dhcpcd-eth0.exe	Sun Oct 24 03:52:58 2004
31
@@ -2,7 +2,7 @@
31
@@ -2,7 +2,7 @@
32
 ######################################################################
32
 ######################################################################
33
 ## $Header: /home/paul/src/ddclient/RCS/sample-etc_dhcpc_dhcpcd-eth0.exe,v 3.6 2002/11/03 20:20:16 root Exp $
33
 ## $Header: /cvsroot/ddclient/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe,v 1.1 2004/10/07 19:19:37 wimpunk Exp $
34
 ######################################################################
34
 ######################################################################
35
-PATH=/usr/sbin:${PATH}
35
-PATH=/usr/sbin:${PATH}
36
+PATH=%%PREFIX%%/sbin:${PATH}
36
+PATH=%%PREFIX%%/sbin:${PATH}
37
 
37
 
38
 ## update the DNS server unless the IP address is a private address
38
 ## update the DNS server unless the IP address is a private address
39
 ## that may be used as a internal LAN address. This may be true if
39
 ## that may be used as a internal LAN address. This may be true if
40
--- sample-etc_ppp_ip-up.local.orig	Sun Jun 15 03:39:16 2003
40
--- sample-etc_ppp_ip-up.local.orig	Sun Oct 24 03:53:15 2004
41
+++ sample-etc_ppp_ip-up.local	Thu Aug  7 14:33:32 2003
41
+++ sample-etc_ppp_ip-up.local	Sun Oct 24 03:54:06 2004
42
@@ -16,7 +16,7 @@
42
@@ -16,7 +16,7 @@
43
 ## in the environment as either PPP_LOCAL or IPLOCAL.
43
 ## in the environment as either PPP_LOCAL or IPLOCAL.
44
 ##
44
 ##
(-)ddclient/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
ddclient is a Perl client used to update dynamic DNS entries for
1
ddclient is a Perl client used to update dynamic DNS entries for
2
accounts on many dynamic DNS services.
2
accounts on many dynamic DNS services.
3
3
4
WWW: http://members.rogers.com/ddclient/pub/
4
WWW: http://ddclient.sourceforge.net/
(-)ddclient/pkg-message (-5 / +3 lines)
Lines 8-19 Link Here
8
8
9
and edit it to fit your needs.
9
and edit it to fit your needs.
10
10
11
If you would like to run ddclient as a daemon consider
11
If you would like to run ddclient as a daemon add the
12
copying
12
following line to /etc/rc.conf
13
13
14
	/usr/local/etc/rc.d/ddclient.sh.sample
14
	ddclient_enable="YES"
15
to
16
	/usr/local/etc/rc.d/ddclient.sh
17
15
18
***********************************************************
16
***********************************************************
19
17
(-)ddclient/pkg-plist (-1 / +1 lines)
Lines 1-5 Link Here
1
etc/ddclient.conf.sample
1
etc/ddclient.conf.sample
2
etc/rc.d/ddclient.sh.sample
2
etc/rc.d/ddclient.sh
3
sbin/ddclient
3
sbin/ddclient
4
share/ddclient/COPYING
4
share/ddclient/COPYING
5
share/ddclient/COPYRIGHT
5
share/ddclient/COPYRIGHT

Return to bug 73059