diff options
Diffstat (limited to 'dns/dhisd')
-rw-r--r-- | dns/dhisd/Makefile | 78 | ||||
-rw-r--r-- | dns/dhisd/distinfo | 1 | ||||
-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 | ||||
-rw-r--r-- | dns/dhisd/pkg-descr | 24 | ||||
-rw-r--r-- | dns/dhisd/pkg-plist | 1 |
11 files changed, 0 insertions, 395 deletions
diff --git a/dns/dhisd/Makefile b/dns/dhisd/Makefile deleted file mode 100644 index 1329766987ec..000000000000 --- a/dns/dhisd/Makefile +++ /dev/null @@ -1,78 +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= 5.1 -PORTREVISION= 1 -CATEGORIES= net -MASTER_SITES= http://bsltwr.dhis.org/ftp/pub/dhis/ \ - ftp://ftp.dhis.org/pub/dhis/ - -MAINTAINER= baskruit@bsltwr.dnsalias.org -COMMENT= DHIS server for dynamic updates on the server using specific engines - -LIB_DEPENDS= gmp.3:${PORTSDIR}/math/libgmp-freebsd - -DOCFILES= CONTRIBUTORS COPYRIGHT INSTALL MODULES README -USE_REINPLACE= yes - -post-patch: - ${CP} ${FILESDIR}/dhisd.sh ${WRKSRC}/dhisd.sh - cd ${WRKSRC} && ${REINPLACE_CMD} -e "s^__PREFIX__^${PREFIX}^g" \ - Makefile dhisd.h dhisd.sh ${DOCFILES} - -do-install: - -post-install: - @${ECHO_MSG} "===> Installing ${PREFIX}/sbin/dhisd." - @${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${PREFIX}/sbin - @${ECHO_CMD} "sbin/dhisd" >> ${TMPPLIST} - @${ECHO_MSG} "===> Installing ${PREFIX}/sbin/sgenkeys." - @${INSTALL_PROGRAM} ${WRKSRC}/genkeys ${PREFIX}/sbin - @${ECHO_CMD} "sbin/genkeys" >> ${TMPPLIST} - @${ECHO_MSG} "===> Creating ${PREFIX}/etc/dhis and installing sample db files." - @${MKDIR} ${PREFIX}/etc/dhis - @${CHMOD} 700 ${PREFIX}/etc/dhis - @${INSTALL_DATA} ${WRKSRC}/dhis.db.sample ${PREFIX}/etc/dhis/dhis.db.sample - @${ECHO_CMD} "etc/dhis/dhis.db.sample" >> ${TMPPLIST} - @${INSTALL_DATA} ${WRKSRC}/services.db.sample ${PREFIX}/etc/dhis/services.db.sample - @${ECHO_CMD} "etc/dhis/services.db.sample" >> ${TMPPLIST} - @${CHMOD} 600 ${PREFIX}/etc/dhis/* - @${ECHO_CMD} "@dirrm etc/dhis" >> ${TMPPLIST} -.if !exists(${PREFIX}/etc/rc.d/dhisd.sh) - @${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file." - @${INSTALL_SCRIPT} -m 751 ${WRKSRC}/dhisd.sh ${PREFIX}/etc/rc.d/dhisd.sh - @${ECHO_CMD} "etc/rc.d/dhisd.sh" >> ${TMPPLIST} -.endif -.if !defined(NOPORTDOCS) - @${ECHO_MSG} "===> Installing documentation in ${DOCSDIR}" - @${MKDIR} ${DOCSDIR} - @${CHMOD} 755 ${DOCSDIR} -.for DOCFILE in ${DOCFILES} - @${INSTALL_DATA} ${WRKSRC}/${DOCFILE} ${DOCSDIR} - @${ECHO_CMD} "share/doc/${PORTNAME}/${DOCFILE}" >> ${TMPPLIST} -.endfor - @${INSTALL_DATA} ${FILESDIR}/INSTALL.bsd ${DOCSDIR} - @${ECHO_CMD} "share/doc/${PORTNAME}/INSTALL.bsd" >> ${TMPPLIST} - @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}" >> ${TMPPLIST} -.endif - @${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/r5/" -.if !defined(NOPORTDOCS) - @${ECHO} "" - @${ECHO} "or the files in ${DOCSDIR}" - @${ECHO} "Read INSTALL and INSTALL.bsd at least for the setup information of dhisd." -.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 6e46dd780c70..000000000000 --- a/dns/dhisd/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (dhisd-5.1.tar.gz) = 7cbae9ef404570d72a491d59c596abe7 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 diff --git a/dns/dhisd/pkg-descr b/dns/dhisd/pkg-descr deleted file mode 100644 index edc5f5db3f2e..000000000000 --- a/dns/dhisd/pkg-descr +++ /dev/null @@ -1,24 +0,0 @@ -DHIS Daemon release 5.1 -============================== - -The server is now modular through the introduction of a services -sub-system. DNS updates are no longer part of the main code but -are now implemented as a module. - -The main dhisd process listens to DHIS clients and after authentication -marks these with their dynamic IP address. The request is passed to a -sub-process through a pipe which implements the services for which the -client is subscribed to. Clients may be subscribed to one or more -services individually. -The sub-engine interface does a basic read from stdin and process. - -Examples of things DHIS could update: - Dns, Firewalls, tunnel servers, relay access lists, etc ... - -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: 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 b449049a5cdf..000000000000 --- a/dns/dhisd/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -@comment Left empty, filled during post-install by Makefile |