summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-01 03:55:21 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-01 03:55:21 +0000
commit8f5bd3085f3b7b8f27b68d99efdca902989603da (patch)
treeb5f0497c8f73642f51d758f996ca3ad03c71b860 /dns
parentInitial import of priss version 1.0. (diff)
Inital import of dhid version 3.0.
A dhis client for updating dynamic DNS entries in dhisd DNS tables. PR: 13312 Submitted by: Oryx Gazella <oryx@ungulate.net>
Notes
Notes: svn path=/head/; revision=22819
Diffstat (limited to 'dns')
-rw-r--r--dns/dhid/Makefile38
-rw-r--r--dns/dhid/distinfo1
-rw-r--r--dns/dhid/files/patch-aa13
-rw-r--r--dns/dhid/files/patch-ab24
-rw-r--r--dns/dhid/pkg-comment1
-rw-r--r--dns/dhid/pkg-descr14
-rw-r--r--dns/dhid/pkg-plist4
7 files changed, 95 insertions, 0 deletions
diff --git a/dns/dhid/Makefile b/dns/dhid/Makefile
new file mode 100644
index 000000000000..18f9e6700b39
--- /dev/null
+++ b/dns/dhid/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: dhid
+# Version required: 3.0
+# Date created: Sat Aug 21 06:13:59 EDT 1999
+# Whom: Oryx Gazella <oryx@ungulate.net>
+#
+# $Id$
+#
+
+DISTNAME= dhid-3.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
+
+MAINTAINER= oryx@ungulate.net
+
+MAN1= dtool.1
+MAN8= dhid.8
+
+post-patch:
+ @${ECHO} "===> Patching dtool script and dhid.h"
+ ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dtool
+ ${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhid.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/dtool ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/dtool.1 ${PREFIX}/man/man1
+ ${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/dhid.conf ${PREFIX}/etc
+
+post-install:
+ @if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
+ ${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
+ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
+ ${ECHO} "[ -x ${PREFIX}/bin/dtool ] && ${PREFIX}/bin/dtool -s > /dev/null && echo -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
+ chmod 751 ${PREFIX}/etc/rc.d/dhid.sh; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/dns/dhid/distinfo b/dns/dhid/distinfo
new file mode 100644
index 000000000000..5ab8b95a03ab
--- /dev/null
+++ b/dns/dhid/distinfo
@@ -0,0 +1 @@
+MD5 (dhid-3.0.tar.gz) = bd55b2c076196afd41c147f062990e09
diff --git a/dns/dhid/files/patch-aa b/dns/dhid/files/patch-aa
new file mode 100644
index 000000000000..a3a94652f725
--- /dev/null
+++ b/dns/dhid/files/patch-aa
@@ -0,0 +1,13 @@
+--- dhid.h.orig Tue Jun 22 20:01:43 1999
++++ dhid.h Sat Aug 21 05:28:10 1999
+@@ -63,8 +63,8 @@
+
+ #define POLL_INTERVAL 60
+
+-#define DHID_CONF "/etc/dhid.conf"
+-#define DHID_PID "/etc/dhid.pid"
++#define DHID_CONF "__PREFIX__/etc/dhid.conf"
++#define DHID_PID "/var/run/dhid.pid"
+
+ #define DEF_ISPORT 58800
+ #define DEF_MXPORT 58801
diff --git a/dns/dhid/files/patch-ab b/dns/dhid/files/patch-ab
new file mode 100644
index 000000000000..9b8c48326762
--- /dev/null
+++ b/dns/dhid/files/patch-ab
@@ -0,0 +1,24 @@
+--- Makefile.orig Tue Jun 22 07:30:37 1999
++++ Makefile Sat Aug 21 04:41:26 1999
+@@ -25,15 +25,10 @@
+ #
+ # DHIS(c) Dynamic Host Information System Release 3.0
+
+-CC=cc
+-CFLAGS=
+-LFLAGS=
+-LIBS=
+ RM=rm -f
+
+ dhid: conf.o endian.o network.o crypt.o main.o
+ $(CC) $(LFLAGS) -o dhid conf.o endian.o network.o crypt.o main.o $(LIBS)
+- strip dhid
+
+ main.o: dhid.h network.h conf.h main.c
+ $(CC) $(CFLAGS) -c main.c
+@@ -52,3 +47,5 @@
+
+ clean:
+ $(RM) *.core core dhid *.o
++
++all: dhid
diff --git a/dns/dhid/pkg-comment b/dns/dhid/pkg-comment
new file mode 100644
index 000000000000..b2f562e50e50
--- /dev/null
+++ b/dns/dhid/pkg-comment
@@ -0,0 +1 @@
+dhis client for updating dynamic DNS entries in dhisd DNS tables
diff --git a/dns/dhid/pkg-descr b/dns/dhid/pkg-descr
new file mode 100644
index 000000000000..809dd988445e
--- /dev/null
+++ b/dns/dhid/pkg-descr
@@ -0,0 +1,14 @@
+DHIS Daemon Client release 3.0
+==============================
+
+dhid is the DHIS client daemon. dhid is used to update the DNS tables on
+a DHIS provider.
+
+If you haven't done so yet, you will need to register your host with a
+DHIS provider. http://www.dhis.org/
+
+dhid.conf should be configured according to the provider's assigned
+parameters.
+
+- Oryx
+oryx@ungulate.net
diff --git a/dns/dhid/pkg-plist b/dns/dhid/pkg-plist
new file mode 100644
index 000000000000..3b4de5246d24
--- /dev/null
+++ b/dns/dhid/pkg-plist
@@ -0,0 +1,4 @@
+bin/dtool
+etc/dhid.conf
+etc/rc.d/dhid.sh
+sbin/dhid