pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/inadyn Initial import of inadyn-1.96.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a3126d40336
branches:  trunk
changeset: 543711:7a3126d40336
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sun Jun 22 04:52:39 2008 +0000

description:
Initial import of inadyn-1.96.2.

INADYN is a dynamic DNS client. That is, it maintains the IP address of a
host name. It periodically checks whether the IP address stored by the DNS
server is the real current address of the machine that is running INADYN.

   Features:

     * supports the following dynamic DNS services:
     * dyndns.org (in all three flavors: dynamic, static, custom)
     * freedns.afraid.org
     * zoneedit.com
     * no-ip.com
     * maintains up multiple aliases of the same IP address
     * runs as a service (Windows 2000/XP, Linux)
     * or runs as a console application
     * updates the correct IP address even behind a NAT router.
     * supports access via http proxy
     * does not perform unnecessary updates.
     * has 'install and forget it feature'. That is, after install one can
       completely forget about it. No maintenance required. (as long as no
       bugs are found;-)

diffstat:

 net/inadyn/DESCR            |  20 +++++++++++++++++++
 net/inadyn/Makefile         |  46 +++++++++++++++++++++++++++++++++++++++++++++
 net/inadyn/PLIST            |   4 +++
 net/inadyn/distinfo         |   7 ++++++
 net/inadyn/patches/patch-aa |  13 ++++++++++++
 net/inadyn/patches/patch-ab |  15 ++++++++++++++
 6 files changed, 105 insertions(+), 0 deletions(-)

diffs (129 lines):

diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/DESCR  Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,20 @@
+INADYN is a dynamic DNS client. That is, it maintains the IP address of a
+host name. It periodically checks whether the IP address stored by the DNS
+server is the real current address of the machine that is running INADYN.
+
+   Features:
+
+     * supports the following dynamic DNS services:
+     * dyndns.org (in all three flavors: dynamic, static, custom)
+     * freedns.afraid.org
+     * zoneedit.com
+     * no-ip.com
+     * maintains up multiple aliases of the same IP address
+     * runs as a service (Windows 2000/XP, Linux)
+     * or runs as a console application
+     * updates the correct IP address even behind a NAT router.
+     * supports access via http proxy
+     * does not perform unnecessary updates.
+     * has 'install and forget it feature'. That is, after install one can
+       completely forget about it. No maintenance required. (as long as no
+       bugs are found;-)
diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/Makefile       Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/06/22 04:52:39 dmcmahill Exp $
+#
+
+DISTNAME=      inadyn.v1.96.2
+PKGNAME=       inadyn-1.96.2
+CATEGORIES=    net
+MASTER_SITES=  http://www.inatech.eu/inadyn/
+EXTRACT_SUFX=  .zip
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.inatech.eu/inadyn/
+COMMENT=       Dynamic DNS client
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_TOOLS+=    gmake
+
+LIBS.SunOS=    -lsocket -lnsl
+MAKE_ENV+=     TARGET_ARCH=pkgsrc
+
+WRKSRC=                ${WRKDIR}/inadyn
+MAKE_FILE?=    makefile
+
+INSTALLATION_DIRS=      bin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
+
+# do the dos to unix thing before patching to make it easier to
+# try changes (don't need the dos2unix and unix2dos in the mix)
+pre-patch:
+       cd ${WRKSRC}; for file in man/inadyn.conf.5 man/inadyn.8 src/dyndns.h ; do \
+               ${SED}  -e "s|/etc|${PKG_SYSCONFDIR}|g"                            \
+                       $${file} > $${file}.orig;                                  \
+               ${CP} -f $${file}.orig $${file};                                   \
+       done
+       cd ${WRKSRC}/src && for f in * ; do                                        \
+               if ${TEST} -f $$f ; then                                              \
+                       mv $$f $$f.bak ; cat $$f.bak | ${TR} -d '\r' > $$f ;       \
+                       rm $$f.bak ;                                               \
+               fi                                                                 \
+       done
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/bin/pkgsrc/inadyn ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/man/inadyn.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+       ${INSTALL_MAN} ${WRKSRC}/man/inadyn.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+
+.include "../../mk/bsd.pkg.mk"
diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/PLIST  Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/06/22 04:52:39 dmcmahill Exp $
+bin/inadyn
+${PKGMANDIR}/man5/inadyn.conf.5
+${PKGMANDIR}/man8/inadyn.8
diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/distinfo       Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/06/22 04:52:39 dmcmahill Exp $
+
+SHA1 (inadyn.v1.96.2.zip) = d5fe03ee4cfbc8e702d38d80527264a29297b6cf
+RMD160 (inadyn.v1.96.2.zip) = f3c4d1009a2743032f28e6527aa58d6ecd0baf29
+Size (inadyn.v1.96.2.zip) = 110170 bytes
+SHA1 (patch-aa) = 399adaaaa990277b9b84175850ccdc6970c349cc
+SHA1 (patch-ab) = aed758e916a494d80da15a7d24c6244e364cfa5d
diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/patches/patch-aa       Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/06/22 04:52:39 dmcmahill Exp $
+
+--- makefile.orig      2005-09-09 23:16:50.000000000 +0000
++++ makefile   2008-06-19 23:47:05.000000000 +0000
+@@ -34,6 +34,6 @@
+ OBJ=$(COMMON_OBJ) $(CFG_OBJ)
+ 
+-COMPILE=gcc  -Wall  -pedantic -c  $(ARCH_SPECIFIC_CFLAGS) $(CFLAGS) -o "$(OUTDIR)/$(*F).o" $(CFG_INC) "$<"
+-LINK=gcc $(CFLAGS) -o "$(OUTFILE)" $(OBJ) $(CFG_LIB) $(ARCH_SPECIFIC_LIBS)
++COMPILE=$(CC)  -c  $(ARCH_SPECIFIC_CFLAGS) $(CFLAGS) -o "$(OUTDIR)/$(*F).o" $(CFG_INC) "$<"
++LINK=$(CC) $(CFLAGS) -o "$(OUTFILE)" $(OBJ) $(CFG_LIB) $(ARCH_SPECIFIC_LIBS) $(LIBS)
+ 
+ # Pattern rules
diff -r c1c3e6b71a1a -r 7a3126d40336 net/inadyn/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/inadyn/patches/patch-ab       Sun Jun 22 04:52:39 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/06/22 04:52:39 dmcmahill Exp $
+
+--- src/os_unix.c.orig 2008-06-20 03:11:39.000000000 +0000
++++ src/os_unix.c      2008-06-20 03:13:09.000000000 +0000
+@@ -31,5 +31,9 @@
+ void os_sleep_ms(int ms)
+ {
+-    usleep(ms*1000);
++    /* usleep is not guaranteed to work for arguments >= 1,000,000 */
++    if( ms >= 1000 )
++        sleep( ms/1000 );
++    else
++        usleep(ms*1000);
+ }
+ 



Home | Main Index | Thread Index | Old Index