diff options
author | jeh <jeh@FreeBSD.org> | 2001-01-09 15:19:17 +0000 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-01-09 15:19:17 +0000 |
commit | 3ec0860164e0625f7e4afe5591fc8baa99661055 (patch) | |
tree | af67755fa10e42e0b78943585f14fc780b3ffb33 /net | |
parent | 7a55fdddbcce3286803002d0cc04dab558443662 (diff) | |
download | FreeBSD-ports-3ec0860164e0625f7e4afe5591fc8baa99661055.zip FreeBSD-ports-3ec0860164e0625f7e4afe5591fc8baa99661055.tar.gz |
New Port: net/neoupdate
A Perl Script to automagically update DNS at centralinfo.net or yi.org
when your IP changes, both offer free DNS services.
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/neoupdate/Makefile | 42 | ||||
-rw-r--r-- | net/neoupdate/distinfo | 1 | ||||
-rw-r--r-- | net/neoupdate/files/patch-aa | 16 | ||||
-rw-r--r-- | net/neoupdate/pkg-comment | 1 | ||||
-rw-r--r-- | net/neoupdate/pkg-descr | 12 | ||||
-rw-r--r-- | net/neoupdate/pkg-message | 13 | ||||
-rw-r--r-- | net/neoupdate/pkg-plist | 7 |
8 files changed, 93 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index d957b51..094ad9d 100644 --- a/net/Makefile +++ b/net/Makefile @@ -154,6 +154,7 @@ SUBDIR += ncat SUBDIR += ncplib SUBDIR += nemesis + SUBDIR += neoupdate SUBDIR += netatalk SUBDIR += netatalk-asun SUBDIR += netcat diff --git a/net/neoupdate/Makefile b/net/neoupdate/Makefile new file mode 100644 index 0000000..8cfbbd8 --- /dev/null +++ b/net/neoupdate/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: neoupdate +# Date created: 9 January 2001 +# Whom: jim@thehousleys.net +# +# $FreeBSD$ +# + +PORTNAME= neoupdate +PORTVERSION= 1.10 +CATEGORIES= net +MASTER_SITES= http://www.iamnewbie.com/download/ +DISTNAME= ${PORTNAME}${PORTVERSION} + +MAINTAINER= jeh@FreeBSD.org + +RUN_DEPENDS= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_PERL= yes +NO_BUILD= yes + +SITE_PERL= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} + +.if !defined(NOPORTDOCS) +PLIST_SUB= NOPORTDOCS='' +.else +PLIST_SUB= NOPORTDOCS='@comment ' +.endif + +do-install: + @${INSTALL_SCRIPT} ${WRKSRC}/neoupdate.pl ${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/ip.pl ${PREFIX}/sbin + @${INSTALL_SCRIPT} ${WRKSRC}/neoupdate.conf ${PREFIX}/etc + @${INSTALL_SCRIPT} ${WRKSRC}/yi.conf ${PREFIX}/etc +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/neoupdate + @${INSTALL_DATA} ${WRKSRC}/neoupdate.cron ${PREFIX}/share/doc/neoupdate + @${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/neoupdate +.endif + @${CAT} ${PKGMESSAGE} +.include <bsd.port.mk> diff --git a/net/neoupdate/distinfo b/net/neoupdate/distinfo new file mode 100644 index 0000000..d773826 --- /dev/null +++ b/net/neoupdate/distinfo @@ -0,0 +1 @@ +MD5 (neoupdate1.10.tar.gz) = a57b384bbc0e0ae2288bc7cf870cd6b7 diff --git a/net/neoupdate/files/patch-aa b/net/neoupdate/files/patch-aa new file mode 100644 index 0000000..ababee2 --- /dev/null +++ b/net/neoupdate/files/patch-aa @@ -0,0 +1,16 @@ +diff -ruN neoupdate.orig/neoupdate.pl neoupdate/neoupdate.pl +--- neoupdate.pl.orig Fri Dec 8 04:23:16 2000 ++++ neoupdate.pl Tue Jan 9 08:16:20 2001 +@@ -246,9 +246,10 @@ + ($device) = @_; + my(@newip,$newip,$nic); + $nic = qx(/sbin/ifconfig $device); +-@newip = grep(/^addr/, split(/\s/, $nic)); ++@newip = grep(/inet /, split(/[\n\r]/, $nic)); + $newip = $newip[0]; +-$newip =~ s/addr://; ++$newip =~ s/\sinet //; ++$newip =~ s/ .*$//; + if ($newip =~ m/(\d+)\.(\d+)\.(\d+)\.(\d+)/){ + return $newip; + }else{ diff --git a/net/neoupdate/pkg-comment b/net/neoupdate/pkg-comment new file mode 100644 index 0000000..a3af04b --- /dev/null +++ b/net/neoupdate/pkg-comment @@ -0,0 +1 @@ +Automated Perl script to update DNS entries at centralinfo.net or yi.org. diff --git a/net/neoupdate/pkg-descr b/net/neoupdate/pkg-descr new file mode 100644 index 0000000..f62a176 --- /dev/null +++ b/net/neoupdate/pkg-descr @@ -0,0 +1,12 @@ +NeoUpdate is a Perl Script that monitors network connection and +update DNS records on free DNS service provider CentralInfo whenever +an IP address change is detected. Centralinfo provide free dns +hosting for your domain name (Example : www.mydomain.com). It is +extremely useful for Cable Modem or DSL users who runs various +service like ftp and http server on their computer and prevent +service downtime whenever an IP change occur. + +WWW: http://www.iamnewbie.com/ + +- Jim +jim@thehousleys.net diff --git a/net/neoupdate/pkg-message b/net/neoupdate/pkg-message new file mode 100644 index 0000000..1a8ebb6 --- /dev/null +++ b/net/neoupdate/pkg-message @@ -0,0 +1,13 @@ +You must edit $PREFIX/etc/neoupdate.conf before using. These items must +be changed or verified. + +1) (line 44) $ipmethod +2) (line 53) $device +3) (line 91) $enable_log +4) (line 98) $ipfile +5) (line 102) $username & $password +6) (line 107) $domain +7) (line 112) $email +8) (line 117) TTL information +9) (line 129) Domain Information + diff --git a/net/neoupdate/pkg-plist b/net/neoupdate/pkg-plist new file mode 100644 index 0000000..87436a6 --- /dev/null +++ b/net/neoupdate/pkg-plist @@ -0,0 +1,7 @@ +sbin/ip.pl +sbin/neoupdate.pl +etc/neoupdate.conf +etc/yi.conf +%%NOPORTDOCS%%share/doc/neoupdate/neoupdate.cron +%%NOPORTDOCS%%share/doc/neoupdate/readme.txt +%%NOPORTDOCS%%@dirrm share/doc/neoupdate |