mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
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>
This commit is contained in:
parent
58ee1a2547
commit
8f5bd3085f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22819
38
dns/dhid/Makefile
Normal file
38
dns/dhid/Makefile
Normal file
@ -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>
|
1
dns/dhid/distinfo
Normal file
1
dns/dhid/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (dhid-3.0.tar.gz) = bd55b2c076196afd41c147f062990e09
|
13
dns/dhid/files/patch-aa
Normal file
13
dns/dhid/files/patch-aa
Normal file
@ -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
|
24
dns/dhid/files/patch-ab
Normal file
24
dns/dhid/files/patch-ab
Normal file
@ -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
|
1
dns/dhid/pkg-comment
Normal file
1
dns/dhid/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
dhis client for updating dynamic DNS entries in dhisd DNS tables
|
14
dns/dhid/pkg-descr
Normal file
14
dns/dhid/pkg-descr
Normal file
@ -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
|
4
dns/dhid/pkg-plist
Normal file
4
dns/dhid/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/dtool
|
||||
etc/dhid.conf
|
||||
etc/rc.d/dhid.sh
|
||||
sbin/dhid
|
38
net/dhid/Makefile
Normal file
38
net/dhid/Makefile
Normal file
@ -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>
|
1
net/dhid/distinfo
Normal file
1
net/dhid/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (dhid-3.0.tar.gz) = bd55b2c076196afd41c147f062990e09
|
13
net/dhid/files/patch-aa
Normal file
13
net/dhid/files/patch-aa
Normal file
@ -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
|
24
net/dhid/files/patch-ab
Normal file
24
net/dhid/files/patch-ab
Normal file
@ -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
|
1
net/dhid/pkg-comment
Normal file
1
net/dhid/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
dhis client for updating dynamic DNS entries in dhisd DNS tables
|
14
net/dhid/pkg-descr
Normal file
14
net/dhid/pkg-descr
Normal file
@ -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
|
4
net/dhid/pkg-plist
Normal file
4
net/dhid/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/dtool
|
||||
etc/dhid.conf
|
||||
etc/rc.d/dhid.sh
|
||||
sbin/dhid
|
Loading…
Reference in New Issue
Block a user