summaryrefslogtreecommitdiff
path: root/net/dhisd
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-06-05 23:39:27 +0000
committerhubertf <hubertf@pkgsrc.org>2001-06-05 23:39:27 +0000
commitc6305189ce027eabcfb783f243cafac6c07aa1cc (patch)
tree609e57e9a55bb40529e1047290c4a7804da8f34c /net/dhisd
parent2e9d642ee208665ac48df2f4d1531483c228651f (diff)
downloadpkgsrc-c6305189ce027eabcfb783f243cafac6c07aa1cc.tar.gz
Import dhisd-5.0: DynDNS server
By the means of a DHIS client a host which is assigned a dynamic IP address (either from its ISP or from DHCP) is able to communicate with a DHIS server in order to advertise its newly acquired IP address. The DHIS server (permanently online) listens to UDP messages from its clients and authenticates these against its knowledge of keys. When authentication is successful the DHIS server updates one or more databases with the newly received IP address for the given client. The server then keeps sending, every period of time, check requests to each of its connected clients. These need to be acknowledged. If not the server will consider, on an individual basis, that the client has disconnected and will again update the databases to an offline state. Alternativelly the server may receive an OFFLINE_REQ packet from the client, in which case the DNS record is updated at once and the online state droped.
Diffstat (limited to 'net/dhisd')
-rw-r--r--net/dhisd/Makefile40
-rw-r--r--net/dhisd/distinfo6
-rw-r--r--net/dhisd/patches/patch-aa19
-rw-r--r--net/dhisd/patches/patch-ab16
-rw-r--r--net/dhisd/pkg/DESCR20
-rw-r--r--net/dhisd/pkg/PLIST12
6 files changed, 113 insertions, 0 deletions
diff --git a/net/dhisd/Makefile b/net/dhisd/Makefile
new file mode 100644
index 00000000000..3a55c76471a
--- /dev/null
+++ b/net/dhisd/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/06/05 23:39:27 hubertf Exp $
+#
+
+DISTNAME= dhisd-5.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
+
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://www.dhis.org
+COMMENT= DynDNS server
+
+DEPENDS+= gmp-3.*:../../devel/gmp
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dhisd
+ ${INSTALL_DATA} \
+ ${WRKSRC}/*db.sample \
+ ${PREFIX}/share/examples/dhisd
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dhisd
+ ${INSTALL_DATA} \
+ ${WRKSRC}/CONTRIBUTORS \
+ ${WRKSRC}/COPYRIGHT \
+ ${WRKSRC}/INSTALL \
+ ${WRKSRC}/MODULES \
+ ${WRKSRC}/README \
+ ${PREFIX}/share/doc/dhisd
+ ${INSTALL_PROGRAM} \
+ ${WRKSRC}/dhisd \
+ ${PREFIX}/bin
+ ${INSTALL_PROGRAM} \
+ ${WRKSRC}/genkeys \
+ ${PREFIX}/bin/dhisd-genkeys
+ ${CHOWN} root \
+ ${PREFIX}/bin/dhisd-genkeys \
+ ${PREFIX}/bin/dhisd
+ ${CHMOD} 700 \
+ ${PREFIX}/bin/dhisd-genkeys \
+ ${PREFIX}/bin/dhisd
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/dhisd/distinfo b/net/dhisd/distinfo
new file mode 100644
index 00000000000..fb5f4492111
--- /dev/null
+++ b/net/dhisd/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/06/05 23:39:27 hubertf Exp $
+
+SHA1 (dhisd-5.0.tar.gz) = 05e0a40bf07a2274d40b90b663a2a853b3aa526b
+Size (dhisd-5.0.tar.gz) = 27737 bytes
+SHA1 (patch-aa) = c025fc3f6dbc59675e33ae476f000dc87a9355a1
+SHA1 (patch-ab) = d1078120ee1579335d431d943f82bbea606e0d37
diff --git a/net/dhisd/patches/patch-aa b/net/dhisd/patches/patch-aa
new file mode 100644
index 00000000000..99f9b132505
--- /dev/null
+++ b/net/dhisd/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/06/05 23:39:27 hubertf Exp $
+
+--- Makefile.orig Sun Apr 1 16:05:44 2001
++++ Makefile
+@@ -26,11 +26,11 @@
+ # DHIS(c) Dynamic Host Information System Release 5.0
+
+ CC=gcc
+-CFLAGS=-Wall -Wformat -I/usr/local/include # -DDONT_FORK
+-LFLAGS=-L/usr/local/lib
++CFLAGS=-Wall -Wformat -I${LOCALBASE}/include # -DDONT_FORK
++LFLAGS=-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib
+ CP=cp
+
+-INSTALLDIR=/etc/dhis/bin
++INSTALLDIR=${PREFIX}/bin
+ MODE=700
+ OWNER=root
+ MKDIR=mkdir -p
diff --git a/net/dhisd/patches/patch-ab b/net/dhisd/patches/patch-ab
new file mode 100644
index 00000000000..94beb77fcfa
--- /dev/null
+++ b/net/dhisd/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/06/05 23:39:27 hubertf Exp $
+
+--- dhisd.h.orig Sun Apr 1 01:24:33 2001
++++ dhisd.h
+@@ -64,9 +64,9 @@
+ #define CHECK_FAILS 3 /* maximum check fails */
+
+ #define DHISD_PORT 58800
+-#define DHISD_PID "/etc/dhis/pid/dhisd.pid"
++#define DHISD_PID "/var/run/dhisd.pid"
+ #define DHISD_DB "/etc/dhis/db/dhis.db"
+-#define DHISD_LOG "/etc/dhis/log/dhisd.log"
++#define DHISD_LOG "/var/log/dhisd.log"
+ #define DHISD_SERVICES "/etc/dhis/db/services.db"
+
+ #define MAX_HOSTNAME 64
diff --git a/net/dhisd/pkg/DESCR b/net/dhisd/pkg/DESCR
new file mode 100644
index 00000000000..0537287416d
--- /dev/null
+++ b/net/dhisd/pkg/DESCR
@@ -0,0 +1,20 @@
+By the means of a DHIS client a host which is assigned a dynamic
+IP address (either from its ISP or from DHCP) is able to communicate
+with a DHIS server in order to advertise its newly acquired IP
+address.
+
+The DHIS server (permanently online) listens to UDP messages from
+its clients and authenticates these against its knowledge of keys.
+When authentication is successful the DHIS server updates one or
+more databases with the newly received IP address for the given
+client.
+
+The server then keeps sending, every period of time, check requests
+to each of its connected clients. These need to be acknowledged.
+If not the server will consider, on an individual basis, that the
+client has disconnected and will
+again update the databases to an offline state.
+
+Alternativelly the server may receive an OFFLINE_REQ packet from
+the client, in which case the DNS record is updated at once and
+the online state droped.
diff --git a/net/dhisd/pkg/PLIST b/net/dhisd/pkg/PLIST
new file mode 100644
index 00000000000..4fc5a8876b4
--- /dev/null
+++ b/net/dhisd/pkg/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/05 23:39:27 hubertf Exp $
+bin/dhisd
+bin/dhisd-genkeys
+share/doc/dhisd/CONTRIBUTORS
+share/doc/dhisd/COPYRIGHT
+share/doc/dhisd/INSTALL
+share/doc/dhisd/MODULES
+share/doc/dhisd/README
+share/examples/dhisd/dhis.db.sample
+share/examples/dhisd/services.db.sample
+@dirrm share/doc/dhisd
+@dirrm share/examples/dhisd