aboutsummaryrefslogtreecommitdiff
path: root/dns/dhisd/files
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-03-12 22:52:33 +0000
committerWill Andrews <will@FreeBSD.org>2001-03-12 22:52:33 +0000
commit83121084aa1a83911f16a25a0bf89545b9b36227 (patch)
tree86380c62aa4827ddb37387b9524ecdef4d429e8d /dns/dhisd/files
parent879e57e564e9f6d4d652e7494a8e0b79562842a2 (diff)
Notes
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-Makefile15
-rw-r--r--dns/dhisd/files/patch-README30
-rw-r--r--dns/dhisd/files/patch-dhisd.h15
6 files changed, 179 insertions, 0 deletions
diff --git a/dns/dhisd/files/dhis.db b/dns/dhisd/files/dhis.db
new file mode 100644
index 000000000000..c0e821458337
--- /dev/null
+++ b/dns/dhisd/files/dhis.db
@@ -0,0 +1,13 @@
+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
new file mode 100644
index 000000000000..7847c5c6e9e0
--- /dev/null
+++ b/dns/dhisd/files/dhisd.sh
@@ -0,0 +1,15 @@
+#!/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
new file mode 100644
index 000000000000..495cbe513b52
--- /dev/null
+++ b/dns/dhisd/files/patch-INSTALL
@@ -0,0 +1,91 @@
+--- 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
new file mode 100644
index 000000000000..a1c5f7ac0bd2
--- /dev/null
+++ b/dns/dhisd/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig Sat Feb 24 02:59:57 2001
++++ Makefile Sat Feb 24 03:01:42 2001
+@@ -28,9 +28,11 @@
+ CC=gcc
+ CFLAGS=-I/usr/local/include
+ LFLAGS=-L/usr/local/lib
+-LIBS=-lbind -lgmp
++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)
diff --git a/dns/dhisd/files/patch-README b/dns/dhisd/files/patch-README
new file mode 100644
index 000000000000..2a7fed26476c
--- /dev/null
+++ b/dns/dhisd/files/patch-README
@@ -0,0 +1,30 @@
+--- 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
new file mode 100644
index 000000000000..6280c561a479
--- /dev/null
+++ b/dns/dhisd/files/patch-dhisd.h
@@ -0,0 +1,15 @@
+--- 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