diff options
Diffstat (limited to 'dns/dhisd/files')
-rw-r--r-- | dns/dhisd/files/INSTALL.bsd | 59 | ||||
-rw-r--r-- | dns/dhisd/files/dhisd.sh | 18 | ||||
-rw-r--r-- | dns/dhisd/files/patch-INSTALL | 74 | ||||
-rw-r--r-- | dns/dhisd/files/patch-MODULES | 63 | ||||
-rw-r--r-- | dns/dhisd/files/patch-Makefile | 11 | ||||
-rw-r--r-- | dns/dhisd/files/patch-README | 49 | ||||
-rw-r--r-- | dns/dhisd/files/patch-dhisd.h | 17 |
7 files changed, 0 insertions, 291 deletions
diff --git a/dns/dhisd/files/INSTALL.bsd b/dns/dhisd/files/INSTALL.bsd deleted file mode 100644 index 71cc9bf75320..000000000000 --- a/dns/dhisd/files/INSTALL.bsd +++ /dev/null @@ -1,59 +0,0 @@ - -Install instructions for DHIS server rel5.1 for FreeBSD -======================================================= - -dhisd is the DHIS server, meant to permit updating external -databases with dynamically assiged IP addresses to clients. - -In order to build the dhisd server the following requirements must -be met: - - The machine must be permanently connected to the internet - with a static IP address. - - The machine which will act as a server should be running - a distribution of UNIX or similar system. - - -For full information, read the INSTALL file in /usr/local/share/doc/dhisd - -Setting up the server - - Create the database file which will hold information for - current dynamic hosts: - - Change directory to /usr/local/etc/dhis - - Create a text file named dhis.db with a text editor. - You can copy the dhis.db.sample to dhis.db as a starting point. - - Change the permissions as you wish. In particular dhis.db - should not be readable by anyone. Suggested example: - - chmod 700 /usr/local/etc/dhis /usr/local/etc/dhis/* - chmod 600 /usr/local/etc/dhis/dhis.db - - Now create /usr/local/etc/dhis/services.db - - As before, you can copy the included services.db.sample as a - starting point. - - Insert one line per module implemented. See MODULES for a - detailed description of the modular architecture and - services.db format. - - See the README file for more information on the server - and MODULES for information on the new modular structure - of the server. - - For starting the server, you can use the following script: - - /usr/local/etc/rc.d/dhis.sh - - It has the following options: - start start the server - restart restart the server (after changing the db) - stop stop the server - - And that's it. The DHIS server is installed. - diff --git a/dns/dhisd/files/dhisd.sh b/dns/dhisd/files/dhisd.sh deleted file mode 100644 index d0439e2bdd6d..000000000000 --- a/dns/dhisd/files/dhisd.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -case "$1" in -start) - [ -x "__PREFIX__/sbin/dhisd" ] && __PREFIX__/sbin/dhisd > /dev/null && echo -n ' dhisd' - ;; -restart) - killall -HUP dhisd && echo -n 'dhisd restarted' - ;; -stop) - killall dhisd && echo -n ' dhisd' - ;; -*) - echo "Usage: `basename $0` {start|restart|stop}" >&2 - ;; -esac - -exit 0 diff --git a/dns/dhisd/files/patch-INSTALL b/dns/dhisd/files/patch-INSTALL deleted file mode 100644 index e4ad1c84c15b..000000000000 --- a/dns/dhisd/files/patch-INSTALL +++ /dev/null @@ -1,74 +0,0 @@ ---- INSTALL.orig Sun Nov 4 21:47:45 2001 -+++ INSTALL Sun Nov 4 22:09:55 2001 -@@ -50,28 +50,25 @@ - 2. Install stage - ---------------- - -- In this installation we will use /etc/dhis as the default -- base directory for the server. Another directory may be -- used in which case file location command line options must -- be given to dhisd when executing. -+ In this installation we will use __PREFIX__/etc/dhis -+ as the default base directory for the server. Another -+ directory may be used in which case file location command -+ line options must be given to dhisd when executing. - - Create the directories: - -- /etc/dhis -- /etc/dhis/bin -- /etc/dhis/pid -- /etc/dhis/db -- /etc/dhis/log -+ __PREFIX__/etc/dhis - -- You may wish to create /etc/dhis/src and put dhisd-5.1 under -- this directory. -+ You may wish to create __PREFIX__/etc/dhis/src and put -+ dhisd-5.1 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: - -- Change directory to /etc/dhis/db -+ Change directory to __PREFIX__/etc/dhis - - Create a text file named dhis.db with a text editor. - -@@ -162,19 +159,19 @@ - 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__/etc/dhis __PREFIX__/etc/dhis/* -+ chmod 600 __PREFIX__/etc/dhis/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 -+ /usr/local/bin/dhisd - - will do. - - -- Now create /etc/dhis/db/services.db -+ Now create __PREFIX__/etc/dhis/services.db - - Insert one line per module implemented. See MODULES - for a detailed description of the modular architecture -@@ -187,7 +184,7 @@ - and MODULES for information on the new modular structure - of the server. - -- You may also run /etc/dhis/bin/dhisd now if you wish to -+ You may also run __PREFIX__/bin/dhisd now if you wish to - run DHIS at once. - - diff --git a/dns/dhisd/files/patch-MODULES b/dns/dhisd/files/patch-MODULES deleted file mode 100644 index ea15d2d08a75..000000000000 --- a/dns/dhisd/files/patch-MODULES +++ /dev/null @@ -1,63 +0,0 @@ ---- MODULES.orig Sun Nov 4 21:51:27 2001 -+++ MODULES Sun Nov 4 21:51:19 2001 -@@ -14,8 +14,9 @@ - to update DNS, to update a tunneling service, to update a firewall, etc ... - based on a dynamically changing IP address from its clients. - --The new server has an additional database (by default /etc/dhis/db/services.db) --containing the list of support services (modules). -+The new server has an additional database (by default -+__PREFIX__/etc/dhis/services.db) containing the list of -+support services (modules). - - In order to run dhisd >= 5 you will need to create and configure this - file first. -@@ -24,13 +25,14 @@ - --------------------------------------- - - When executed the DHIS server reads its client's database (by default from --/etc/dhis/db/dhis.db) into memory and proceeds to listening mode on a UDP --port (by default 58800). When messages arrive the server responds accordingly, --authenticates the clients (based on the keys and information loaded from the --database) and marks them online. Furthermore the server keeps sending periodic --checks to each and every client in order to verify that these are still --connected. If a particular client fails to reply the server will consider it --offline and mark it accordingly. -+__PREFIX__/etc/dhis/db/dhis.db) into memory and proceeds to listening -+mode on a UDP port (by default 58800). When messages arrive the server -+responds accordingly, authenticates the clients (based on the keys and -+information loaded from the database) and marks them online. Furthermore -+the server keeps sending periodic checks to each and every client in -+order to verify that these are still connected. If a particular client -+fails to reply the server will consider it offline and mark it -+accordingly. - - Each client is identified to a server by a single ID number called the HostID. - The new modular structure implements a means to mark these hosts online and -@@ -61,11 +63,10 @@ - command - the module engine process command to be executed - - --Example of /etc/dhis/db/services.db ------------------------------------- -- --Before executing dhisd ensure to have created a valid /etc/dhis/db/services.db --file. -+Example of __PREFIX__/etc/dhis/db/services.db -+------------------------------------------------------------------------------- -+Before executing dhisd ensure to have created a valid -+__PREFIX__/etc/dhis/services.db file. - - The syntax for the file is as follows: - -@@ -76,8 +77,8 @@ - - ;------------------------------------------------------------------------------ - ; This is a comment line --dns 4 /etc/dhis/bin/dhis-dns-engine --fw 2 /etc/dhis/bin/dhis-fw-engine -+dns 4 __PREFIX__/etc/dhis/dhis-dns-engine -+fw 2 __PREFIX__/etc/dhis/dhis-fw-engine - ;------------------------------------------------------------------------------ - - Inter-process communication for modules: diff --git a/dns/dhisd/files/patch-Makefile b/dns/dhisd/files/patch-Makefile deleted file mode 100644 index 0ed1c068d789..000000000000 --- a/dns/dhisd/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig Sun Nov 4 20:48:12 2001 -+++ Makefile Sun Nov 4 20:49:08 2001 -@@ -30,7 +30,7 @@ - LFLAGS=-L/usr/local/lib - CP=cp - --INSTALLDIR=/etc/dhis/bin -+INSTALLDIR=__PREFIX__/sbin - MODE=700 - OWNER=root - MKDIR=mkdir -p diff --git a/dns/dhisd/files/patch-README b/dns/dhisd/files/patch-README deleted file mode 100644 index 2910e3e04ab2..000000000000 --- a/dns/dhisd/files/patch-README +++ /dev/null @@ -1,49 +0,0 @@ ---- README.orig Sun Nov 4 21:47:55 2001 -+++ README Sun Nov 4 22:15:04 2001 -@@ -146,7 +146,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 a the -- text file (default: /etc/dhis/pid/dhisd.pid) -+ text file (default: /var/pid/dhisd.pid) - - Before terminating with SIGTERM dhisd will attempt to bring all - online clients offline. -@@ -155,7 +155,7 @@ - ======== - - dhisd logs online and offline transitions on a text file -- (default: /etc/dhis/log/dhisd.log) -+ (default: /var/log/dhisd.log) - - Command Line Options: - ===================== -@@ -175,12 +175,12 @@ - - -d <dbase_file> allows specifying a path for the database file - -- e.g. dhisd -d /usr/local/etc/dhis.db -+ e.g. dhisd -d /usr/local/etc/dhis/dhis.db - - -s <service_file> allows specifying a path for the services - file. - -- e.g. dhisd -s /usr/local/etc/services.db -+ e.g. dhisd -s /usr/local/etc/dhis/services.db - - All options may be used in conjunction. - -@@ -327,11 +327,11 @@ - - 1000 { - hostpass something -- oncmd /etc/oncmd -+ oncmd /usr/local/etc/dhis/oncmd - } - - -- # /etc/oncmd -+ # /usr/local/etc/dhis/oncmd - #!/bin/sh - # - echo I am $1 online now at $2 diff --git a/dns/dhisd/files/patch-dhisd.h b/dns/dhisd/files/patch-dhisd.h deleted file mode 100644 index 0adddde3844a..000000000000 --- a/dns/dhisd/files/patch-dhisd.h +++ /dev/null @@ -1,17 +0,0 @@ ---- dhisd.h.orig Sun Nov 4 20:50:14 2001 -+++ dhisd.h Sun Nov 4 20:51:05 2001 -@@ -64,10 +64,10 @@ - #define CHECK_FAILS 3 /* maximum check fails */ - - #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_SERVICES "/etc/dhis/db/services.db" -+#define DHISD_PID "/var/run/dhisd.pid" -+#define DHISD_DB "__PREFIX__/etc/dhis/dhis.db" -+#define DHISD_LOG "/var/log/dhisd.log" -+#define DHISD_SERVICES "__PREFIX__/etc/dhis/services.db" - - #define MAX_HOSTNAME 64 - #define MAX_PASS 16 |