summaryrefslogtreecommitdiff
path: root/dns/dhisd/files
diff options
context:
space:
mode:
Diffstat (limited to 'dns/dhisd/files')
-rw-r--r--dns/dhisd/files/dhis.db13
-rw-r--r--dns/dhisd/files/dhisd.sh15
-rw-r--r--dns/dhisd/files/patch-INSTALL91
-rw-r--r--dns/dhisd/files/patch-Makefile24
-rw-r--r--dns/dhisd/files/patch-README30
-rw-r--r--dns/dhisd/files/patch-dhisd.h15
-rw-r--r--dns/dhisd/files/patch-nsupdate.c31
7 files changed, 0 insertions, 219 deletions
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