diff options
Diffstat (limited to 'dns/dhisd')
| -rw-r--r-- | dns/dhisd/Makefile | 74 | ||||
| -rw-r--r-- | dns/dhisd/distinfo | 1 | ||||
| -rw-r--r-- | dns/dhisd/files/dhis.db | 13 | ||||
| -rw-r--r-- | dns/dhisd/files/dhisd.sh | 15 | ||||
| -rw-r--r-- | dns/dhisd/files/patch-INSTALL | 91 | ||||
| -rw-r--r-- | dns/dhisd/files/patch-Makefile | 24 | ||||
| -rw-r--r-- | dns/dhisd/files/patch-README | 30 | ||||
| -rw-r--r-- | dns/dhisd/files/patch-dhisd.h | 15 | ||||
| -rw-r--r-- | dns/dhisd/files/patch-nsupdate.c | 31 | ||||
| -rw-r--r-- | dns/dhisd/pkg-comment | 1 | ||||
| -rw-r--r-- | dns/dhisd/pkg-descr | 22 | ||||
| -rw-r--r-- | dns/dhisd/pkg-plist | 1 |
12 files changed, 0 insertions, 318 deletions
diff --git a/dns/dhisd/Makefile b/dns/dhisd/Makefile deleted file mode 100644 index 694b8b4427db..000000000000 --- a/dns/dhisd/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -# New ports collection makefile for: dhisd -# Date created: Sun Feb 25 21:13:59 CET 2001 -# Whom: Bas Kruit <baskruit@bsltwr.dhis.org> -# -# $FreeBSD$ -# - -PORTNAME= dhisd -PORTVERSION= 4.0.3 -CATEGORIES= net -MASTER_SITES= http://bsltwr.dhis.org/ftp/pub/dhis/ \ - ftp://ftp.dhis.org/pub/dhis/ - -MAINTAINER= baskruit@bsltwr.dhis.org - -DHISBASE= ${PREFIX}/dhis -DIRS= dhis dhis/bin dhis/pid dhis/db dhis/log dhis/script -RDIRS= dhis/bin dhis/pid dhis/db dhis/log dhis/script dhis - -post-patch: - @${ECHO} "===> Patching Makefile" - ${PERL} -i -p -e "s^__PREFIX__^${DHISBASE}^g" ${WRKSRC}/Makefile - @${ECHO} "===> Patching documentation..." - ${PERL} -i -p -e "s^__PREFIX__^${DHISBASE}^g" ${WRKSRC}/INSTALL - ${PERL} -i -p -e "s^__PREFIX__^${DHISBASE}^g" ${WRKSRC}/README - @${ECHO} "===> Patching dhisd.h" - ${PERL} -i -p -e "s^__PREFIX__^${DHISBASE}^g" ${WRKSRC}/dhisd.h - @${ECHO} "===> Patching dhisd.sh" - @${CP} ${FILESDIR}/dhisd.sh ${WRKSRC} - ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhisd.sh - -do-install: - -post-install: -.for dir in ${DIRS} - @${MKDIR} ${PREFIX}/${dir} - @${CHMOD} 700 ${PREFIX}/${dir} -.endfor - ${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${DHISBASE}/bin - @${INSTALL_DATA} ${FILESDIR}/dhis.db ${DHISBASE}/db/dhis.db.sample - @${ECHO} "dhis/bin/dhisd" >> ${TMPPLIST} - @${ECHO} "dhis/db/dhis.db.sample" >> ${TMPPLIST} - @${CHMOD} 600 ${PREFIX}/dhis/db/* -.if !exists(${PREFIX}/etc/rc.d/dhisd.sh) - ${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file." - ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh - @${ECHO} "etc/rc.d/dhisd.sh" >> ${TMPPLIST} -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DHISBASE}/doc - @${INSTALL_DATA} ${WRKSRC}/README ${DHISBASE}/doc - @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DHISBASE}/doc - @${CHMOD} 755 ${DHISBASE}/doc - @${ECHO} "dhis/doc/README" >> ${TMPPLIST} - @${ECHO} "dhis/doc/INSTALL" >> ${TMPPLIST} - @${ECHO} "@dirrm dhis/doc" >> ${TMPPLIST} -.endif -.for dir in ${RDIRS} - @${ECHO} "@dirrm ${dir}" >> ${TMPPLIST} -.endfor - @${ECHO} "--------------------------------------------------------------------------" - @${ECHO} "Before dhisd can run, you will need configure BIND." - @${ECHO} "" - @${ECHO} "For more information, see the following site:" - @${ECHO} "http://www.dhis.org/dhis/r4/server.html" -.if !defined(NOPORTDOCS) - @${ECHO} "or ${DHISBASE}/doc/" -.endif - @${ECHO} "" - @${ECHO} "For information on this port, check the following site:" - @${ECHO} "http://bsltwr.dhis.org/dhis/" - @${ECHO} "--------------------------------------------------------------------------" - -.include <bsd.port.mk> diff --git a/dns/dhisd/distinfo b/dns/dhisd/distinfo deleted file mode 100644 index 336a33f639b2..000000000000 --- a/dns/dhisd/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (dhisd-4.0.3.tar.gz) = 1882f5296856c439dd5115f1b9170bbc diff --git a/dns/dhisd/files/dhis.db b/dns/dhisd/files/dhis.db deleted file mode 100644 index c0e821458337..000000000000 --- a/dns/dhisd/files/dhis.db +++ /dev/null @@ -1,13 +0,0 @@ -1001 { - hostname dyn1.example.com - hostpass password - } - -1002 { - hostname dyn2.example.com - authn 32934593845689467748967498674789585769453 - authn 56456894768497649867849769487659847684977 - authn 22389472897348957348957389457894375849573 - authn 23459435734957398753489573495743985743985 - } - diff --git a/dns/dhisd/files/dhisd.sh b/dns/dhisd/files/dhisd.sh deleted file mode 100644 index 7847c5c6e9e0..000000000000 --- a/dns/dhisd/files/dhisd.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -case "$1" in -start) - [ -x "__PREFIX__/dhis/bin/dhisd" ] && __PREFIX__/dhis/bin/dhisd > /dev/null && echo -n ' dhisd' - ;; -stop) - killall dhisd && echo -n ' dhisd' - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac - -exit 0 diff --git a/dns/dhisd/files/patch-INSTALL b/dns/dhisd/files/patch-INSTALL deleted file mode 100644 index 495cbe513b52..000000000000 --- a/dns/dhisd/files/patch-INSTALL +++ /dev/null @@ -1,91 +0,0 @@ ---- INSTALL.orig Sun May 7 19:35:19 2000 -+++ INSTALL Mon Feb 26 01:00:37 2001 -@@ -87,17 +87,17 @@ - - Create the directories: - -- /etc/dhis -- /etc/dhis/bin -- /etc/dhis/pid -- /etc/dhis/db -- /etc/dhis/log -- /etc/dhis/script -+ __PREFIX__ -+ __PREFIX__/bin -+ __PREFIX__/pid -+ __PREFIX__/db -+ __PREFIX__/log -+ __PREFIX__/script - -- You may wish to create /etc/dhis/src and put dhisd-4.0 under -+ You may wish to create __PREFIX__/src and put dhisd-4.0 under - this directory. - -- Copy dhisd to /etc/dhis/bin . This is the server binary. -+ Copy dhisd to __PREFIX__/bin . This is the server binary. - - Create the database file which will hold information for - current dynamic hosts. For this installation let us assume -@@ -105,7 +105,7 @@ - example.com, and that we wish to create 3 dynamic hosts - named dyn1.example.com, dyn2.example.com and dyn3.example.com - -- Change directory to /etc/dhis/db -+ Change directory to __PREFIX__/db - - Create a text file named dhis.db with a text editor. - The file should have three lines, one for each dynamic host. -@@ -179,20 +179,20 @@ - Change the permissions as you wish. In particular dhis.db - should not be readable by anyone. Suggested example: - -- chmod 700 /etc/dhis /etc/dhis/* -- chmod 600 /etc/dhis/db/dhis.db -+ chmod 700 __PREFIX__ __PREFIX__/* -+ chmod 600 __PREFIX__/db/dhis.db - - Add dhisd to your system's startup script - (rc.local for BSD systems, SXXdhis under /etc/rc2.d - for System V). A simple line such as - -- /etc/dhis/bin/dhisd -+ __PREFIX__/bin/dhisd - - will do. However, if your service will provide mail - relaying as well you must specify the relay's IP address, - in which case the line should look like: - -- /etc/dhis/bin/dhisd -m y.y.y.y -+ __PREFIX__/bin/dhisd -m y.y.y.y - - where y.y.y.y is the IP address of the mail relay (may be - the same host). Check the relay-4.0.tar.gz distribution -@@ -209,7 +209,7 @@ - present, the relay machine is identified by relay.example.com. - Again, these may point to the same machine. - -- Edit /etc/named.conf and add a section such as: -+ Edit /etc/named/named.conf and add a section such as: - - zone "example.com" in { - -@@ -277,8 +277,8 @@ - - DNS is now running and accepting dynamic updates. - -- You may also run /etc/dhis/bin/dhisd or -- /etc/dhis/bin/dhisd -m y.y.y.y manually by now if -+ You may also run __PREFIX__/bin/dhisd or -+ __PREFIX__/bin/dhisd -m y.y.y.y manually by now if - you wish to run DHIS at once. - - 4. Adding Records -@@ -301,7 +301,7 @@ - - run - -- kill -HUP `cat /etc/dhis/pid/dhisd.pid` -+ kill -HUP `cat __PREFIX__/pid/dhisd.pid` - - to reload the DHIS database. - diff --git a/dns/dhisd/files/patch-Makefile b/dns/dhisd/files/patch-Makefile deleted file mode 100644 index 5c6758a9c8f5..000000000000 --- a/dns/dhisd/files/patch-Makefile +++ /dev/null @@ -1,24 +0,0 @@ ---- Makefile.orig Wed Mar 7 11:53:58 2001 -+++ Makefile Mon Mar 19 17:43:57 2001 -@@ -26,16 +26,16 @@ - # DHIS(c) Dynamic Host Information System Release 4.0 - - CC=gcc --CFLAGS=-I/usr/local/include -I/usr/bind/include \ -- -I/usr/local/bind/include # -DBIND821 --LFLAGS=-L/usr/local/lib -L/usr/bind/lib -L/usr/local/bind/lib --LIBS=-lnsl -lsocket -lbind -lgmp -+CFLAGS=-I/usr/local/include -DHAVE_SYS_PARAM_H -+LFLAGS=-L/usr/local/lib -+LIBS=-lgmp - OBJS=log.o network.o misc.o db.o online.o nsupdate.o main.o - RM=rm -f - -+all: dhisd -+ - dhisd: $(OBJS) - $(CC) $(LFLAGS) -o dhisd $(OBJS) $(LIBS) -- strip dhisd - - clean: - $(RM) *.core core dhisd *.o diff --git a/dns/dhisd/files/patch-README b/dns/dhisd/files/patch-README deleted file mode 100644 index 2a7fed26476c..000000000000 --- a/dns/dhisd/files/patch-README +++ /dev/null @@ -1,30 +0,0 @@ ---- README.orig Sun Apr 30 18:51:47 2000 -+++ README Mon Feb 26 00:55:38 2001 -@@ -29,7 +29,8 @@ - would result in non-existent host. Thus, the presence of - an IP address, even while offline, is essencial. - -- The DHIS server dhisd runs a database file (/etc/dhis/db/dhis.db) -+ The DHIS server dhisd runs a database file -+ (__PREFIX__/db/dhis.db) - and loads the current list of dynamic hosts into memory. - Furthermore it expects datagram packets to be received on - port 58800 from the connecting clients running dhid. -@@ -91,7 +92,7 @@ - dhisd accepts HUP and TERM signals. A kill -HUP will - make it reload the hosts database and kill -TERM - will terminate it. Its pid number is recorded on the -- text file /etc/dhis/pid/dhisd.pid. -+ text file __PREFIX__/pid/dhisd.pid. - - The current DHIS server is expected to perform well - on a 100Mhz machine with up to 5000 dynamic hosts. -@@ -99,7 +100,7 @@ - users. - - dhisd logs online and offline transitions at -- /etc/dhis/log/dhisd.log -+ __PREFIX__/log/dhisd.log - - - Firewall considerations: diff --git a/dns/dhisd/files/patch-dhisd.h b/dns/dhisd/files/patch-dhisd.h deleted file mode 100644 index 6280c561a479..000000000000 --- a/dns/dhisd/files/patch-dhisd.h +++ /dev/null @@ -1,15 +0,0 @@ ---- dhisd.h.orig Mon Mar 13 18:08:04 2000 -+++ dhisd.h Mon Feb 26 01:03:00 2001 -@@ -62,9 +62,9 @@ - - #define MX_PORT 58801 - #define DHISD_PORT 58800 --#define DHISD_PID "/etc/dhis/pid/dhisd.pid" --#define DHISD_DB "/etc/dhis/db/dhis.db" --#define DHISD_LOG "/etc/dhis/log/dhisd.log" -+#define DHISD_PID "__PREFIX__/pid/dhisd.pid" -+#define DHISD_DB "__PREFIX__/db/dhis.db" -+#define DHISD_LOG "__PREFIX__/log/dhisd.log" - - #define MAX_HOSTNAME 64 - #define MAX_PASS 16 diff --git a/dns/dhisd/files/patch-nsupdate.c b/dns/dhisd/files/patch-nsupdate.c deleted file mode 100644 index 53e73f5ca19a..000000000000 --- a/dns/dhisd/files/patch-nsupdate.c +++ /dev/null @@ -1,31 +0,0 @@ ---- nsupdate.c.orig Mon Mar 19 22:23:40 2001 -+++ nsupdate.c Mon Mar 19 22:55:46 2001 -@@ -28,8 +28,17 @@ - - - #include"dhisd.h" --#ifndef BIND821 --#include <res_update.h> -+ -+#ifdef HAVE_SYS_PARAM_H -+#include <sys/param.h> -+#endif -+ -+#if (defined(BSD) && (BSD >= 199306)) -+# include <arpa/nameser.h> -+#else -+# if !defined BIND821 -+# include <res_update.h> -+# endif - #endif - - int dns_update(unsigned char *r_dname,int r_opcode,short int r_type, -@@ -53,7 +62,7 @@ - rrecp->r_size=r_size; - if(r_size>0) strcpy(rrecp->r_data,r_data); - --#ifndef BIND821 -+#if !defined(BIND821) && !defined(BSD) - rrecp->r_link.prev=NULL; - rrecp->r_link.next=NULL; - #else diff --git a/dns/dhisd/pkg-comment b/dns/dhisd/pkg-comment deleted file mode 100644 index 803dc7a57152..000000000000 --- a/dns/dhisd/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -DHIS server for updating dynamic DNS entries in DNS tables diff --git a/dns/dhisd/pkg-descr b/dns/dhisd/pkg-descr deleted file mode 100644 index 53d20cd87ba6..000000000000 --- a/dns/dhisd/pkg-descr +++ /dev/null @@ -1,22 +0,0 @@ -DHIS Daemon release 4.0 -============================== - -dhisd is the DHIS daemon. The deamon is used to update DNS tables on a -running unix based DNS server, running BIND 8.1.2 or higher. It's clients -should run the dhis-client 3 or 4 software to send updates. - -You need a full DNS domain to run this server. You should at least have a -domain hosted for you with a primary and backup dns server and 1 -backup mail-exchanger. - -If you don't know what the previous lines where about, -you probably shouldn't try and run this software. - -For more information on the services of DHIS, you should look at the -official DHIS site: - http://www.dhis.org/dhis/services/ - -For more info on the FreeBSD port, see - http://bsltwr.dhis.org/dhis - -WWW: http://bsltwr.dhis.org/dhis/ diff --git a/dns/dhisd/pkg-plist b/dns/dhisd/pkg-plist deleted file mode 100644 index 8b137891791f..000000000000 --- a/dns/dhisd/pkg-plist +++ /dev/null @@ -1 +0,0 @@ - |
