1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Add ddclient - a perl client used to update dynamic DNS entries for

accounts on many dynamic DNS services.

WWW: http://burry.ca:4141/ddclient/
This commit is contained in:
Dirk Froemberg 2001-08-26 16:07:09 +00:00
parent 072d3711d6
commit d588562aa0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46932
16 changed files with 226 additions and 0 deletions

33
dns/ddclient/Makefile Normal file
View File

@ -0,0 +1,33 @@
# New ports collection makefile for: ddclient
# Date created: Sun Aug 26 14:45:12 CEST 2001
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ddclient
PORTVERSION= 3.4.5
CATEGORIES= net
MASTER_SITES= http://burry.ca:4141/ddclient/
MAINTAINER= dirk@FreeBSD.org
USE_PERL5= yes
NO_BUILD= yes
do-install:
@/usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
@${MKDIR} ${PREFIX}/share/ddclient
.for i in COPYING COPYRIGHT README README.cisco sample-etc_cron.d_ddclient \
sample-etc_dhclient-enter-hooks sample-etc_dhcpc_dhcpcd-eth0.exe \
sample-etc_ppp_ip-up.local
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/ddclient
.endfor
@/usr/bin/perl -pe 's|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/ddclient.sh.sample > ${WRKDIR}/ddclient.sh.sample
@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh.sample ${PREFIX}/etc/rc.d
@/usr/bin/perl -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
.include <bsd.port.mk>

1
dns/ddclient/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (ddclient-3.4.5.tar.gz) = 7d2c89161e5aa87aa1e27b5741afc029

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/sbin/ddclient ]; then
%%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
fi
;;
stop)
/usr/bin/killall ddclient
echo -n ' ddclient'
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -0,0 +1,25 @@
--- ddclient.orig Sun Jul 22 23:23:11 2001
+++ ddclient Sun Aug 26 14:56:45 2001
@@ -1,5 +1,4 @@
-#!/usr/bin/perl -w
-#!/usr/local/bin/perl -w
+#!%%PERL%% -w
######################################################################
# $Header: /home/paul/src/ddclient/RCS/ddclient,v 1.91 2001/07/22 21:01:33 root Exp $
#
@@ -20,12 +19,12 @@
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
-my $etc = ($program =~ /test/i) ? './' : '/etc/';
-my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
+my $etc = '%%PREFIX%%/etc';
+my $savedir = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}" : "/var/tmp");
my $msgs = '';
my $last_msgs = '';
-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin";
sub T_ANY {'any'};
sub T_STRING {'string'};

1
dns/ddclient/pkg-comment Normal file
View File

@ -0,0 +1 @@
Update dynamic DNS entries

4
dns/ddclient/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
ddclient is a Perl client used to update dynamic DNS entries for
accounts on many dynamic DNS services.
WWW: http://burry.ca:4141/ddclient/

19
dns/ddclient/pkg-message Normal file
View File

@ -0,0 +1,19 @@
***********************************************************
Copy
/usr/local/etc/ddclient.conf.sample
to
/usr/local/etc/ddclient.conf
and edit it to fit your needs.
If you would like to run ddclient as a daemon consider
copying
/usr/local/etc/rc.d/ddclient.sh.sample
to
/usr/local/etc/rc.d/ddclient.sh
***********************************************************

12
dns/ddclient/pkg-plist Normal file
View File

@ -0,0 +1,12 @@
etc/ddclient.conf.sample
etc/rc.d/ddclient.sh.sample
sbin/ddclient
share/ddclient/COPYING
share/ddclient/COPYRIGHT
share/ddclient/README
share/ddclient/README.cisco
share/ddclient/sample-etc_cron.d_ddclient
share/ddclient/sample-etc_dhclient-enter-hooks
share/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe
share/ddclient/sample-etc_ppp_ip-up.local
@dirrm share/ddclient

33
net/ddclient/Makefile Normal file
View File

@ -0,0 +1,33 @@
# New ports collection makefile for: ddclient
# Date created: Sun Aug 26 14:45:12 CEST 2001
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ddclient
PORTVERSION= 3.4.5
CATEGORIES= net
MASTER_SITES= http://burry.ca:4141/ddclient/
MAINTAINER= dirk@FreeBSD.org
USE_PERL5= yes
NO_BUILD= yes
do-install:
@/usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
@${MKDIR} ${PREFIX}/share/ddclient
.for i in COPYING COPYRIGHT README README.cisco sample-etc_cron.d_ddclient \
sample-etc_dhclient-enter-hooks sample-etc_dhcpc_dhcpcd-eth0.exe \
sample-etc_ppp_ip-up.local
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/ddclient
.endfor
@/usr/bin/perl -pe 's|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/ddclient.sh.sample > ${WRKDIR}/ddclient.sh.sample
@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh.sample ${PREFIX}/etc/rc.d
@/usr/bin/perl -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
.include <bsd.port.mk>

1
net/ddclient/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (ddclient-3.4.5.tar.gz) = 7d2c89161e5aa87aa1e27b5741afc029

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/sbin/ddclient ]; then
%%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
fi
;;
stop)
/usr/bin/killall ddclient
echo -n ' ddclient'
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -0,0 +1,25 @@
--- ddclient.orig Sun Jul 22 23:23:11 2001
+++ ddclient Sun Aug 26 14:56:45 2001
@@ -1,5 +1,4 @@
-#!/usr/bin/perl -w
-#!/usr/local/bin/perl -w
+#!%%PERL%% -w
######################################################################
# $Header: /home/paul/src/ddclient/RCS/ddclient,v 1.91 2001/07/22 21:01:33 root Exp $
#
@@ -20,12 +19,12 @@
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
-my $etc = ($program =~ /test/i) ? './' : '/etc/';
-my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
+my $etc = '%%PREFIX%%/etc';
+my $savedir = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}" : "/var/tmp");
my $msgs = '';
my $last_msgs = '';
-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin";
sub T_ANY {'any'};
sub T_STRING {'string'};

1
net/ddclient/pkg-comment Normal file
View File

@ -0,0 +1 @@
Update dynamic DNS entries

4
net/ddclient/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
ddclient is a Perl client used to update dynamic DNS entries for
accounts on many dynamic DNS services.
WWW: http://burry.ca:4141/ddclient/

19
net/ddclient/pkg-message Normal file
View File

@ -0,0 +1,19 @@
***********************************************************
Copy
/usr/local/etc/ddclient.conf.sample
to
/usr/local/etc/ddclient.conf
and edit it to fit your needs.
If you would like to run ddclient as a daemon consider
copying
/usr/local/etc/rc.d/ddclient.sh.sample
to
/usr/local/etc/rc.d/ddclient.sh
***********************************************************

12
net/ddclient/pkg-plist Normal file
View File

@ -0,0 +1,12 @@
etc/ddclient.conf.sample
etc/rc.d/ddclient.sh.sample
sbin/ddclient
share/ddclient/COPYING
share/ddclient/COPYRIGHT
share/ddclient/README
share/ddclient/README.cisco
share/ddclient/sample-etc_cron.d_ddclient
share/ddclient/sample-etc_dhclient-enter-hooks
share/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe
share/ddclient/sample-etc_ppp_ip-up.local
@dirrm share/ddclient