aboutsummaryrefslogtreecommitdiff
path: root/net/dhisd
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2001-04-02 06:20:08 +0000
committerMichael Haro <mharo@FreeBSD.org>2001-04-02 06:20:08 +0000
commitcb96989f7e16e8bc9e694f51ea75548c21d2bad4 (patch)
treefc15e4e879c064349cf2cd207fec27d31d5208b8 /net/dhisd
parentfbc78188bdfc64a491d5f922242809d7c5fb22a4 (diff)
downloadports-cb96989f7e16e8bc9e694f51ea75548c21d2bad4.tar.gz
ports-cb96989f7e16e8bc9e694f51ea75548c21d2bad4.zip
Notes
Diffstat (limited to 'net/dhisd')
-rw-r--r--net/dhisd/Makefile3
-rw-r--r--net/dhisd/distinfo2
-rw-r--r--net/dhisd/files/patch-Makefile25
-rw-r--r--net/dhisd/files/patch-nsupdate.c31
4 files changed, 50 insertions, 11 deletions
diff --git a/net/dhisd/Makefile b/net/dhisd/Makefile
index 197132aa29a5..694b8b4427db 100644
--- a/net/dhisd/Makefile
+++ b/net/dhisd/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= dhisd
-PORTVERSION= 4.0
-PORTREVISION= 1
+PORTVERSION= 4.0.3
CATEGORIES= net
MASTER_SITES= http://bsltwr.dhis.org/ftp/pub/dhis/ \
ftp://ftp.dhis.org/pub/dhis/
diff --git a/net/dhisd/distinfo b/net/dhisd/distinfo
index 1981887c4981..336a33f639b2 100644
--- a/net/dhisd/distinfo
+++ b/net/dhisd/distinfo
@@ -1 +1 @@
-MD5 (dhisd-4.0.tar.gz) = 9757deffda1b4a261f4313a4bd1b5ed1
+MD5 (dhisd-4.0.3.tar.gz) = 1882f5296856c439dd5115f1b9170bbc
diff --git a/net/dhisd/files/patch-Makefile b/net/dhisd/files/patch-Makefile
index a1c5f7ac0bd2..5c6758a9c8f5 100644
--- a/net/dhisd/files/patch-Makefile
+++ b/net/dhisd/files/patch-Makefile
@@ -1,15 +1,24 @@
---- Makefile.orig Sat Feb 24 02:59:57 2001
-+++ Makefile Sat Feb 24 03:01:42 2001
-@@ -28,9 +28,11 @@
+--- Makefile.orig Wed Mar 7 11:53:58 2001
++++ Makefile Mon Mar 19 17:43:57 2001
+@@ -26,16 +26,16 @@
+ # DHIS(c) Dynamic Host Information System Release 4.0
+
CC=gcc
- CFLAGS=-I/usr/local/include
- LFLAGS=-L/usr/local/lib
--LIBS=-lbind -lgmp
+-CFLAGS=-I/usr/local/include -I/usr/bind/include \
+- -I/usr/local/bind/include # -DBIND821
+-LFLAGS=-L/usr/local/lib -L/usr/bind/lib -L/usr/local/bind/lib
+-LIBS=-lnsl -lsocket -lbind -lgmp
++CFLAGS=-I/usr/local/include -DHAVE_SYS_PARAM_H
++LFLAGS=-L/usr/local/lib
+LIBS=-lgmp
OBJS=log.o network.o misc.o db.o online.o nsupdate.o main.o
RM=rm -f
-+
-+all: dhisd
++all: dhisd
++
dhisd: $(OBJS)
$(CC) $(LFLAGS) -o dhisd $(OBJS) $(LIBS)
+- strip dhisd
+
+ clean:
+ $(RM) *.core core dhisd *.o
diff --git a/net/dhisd/files/patch-nsupdate.c b/net/dhisd/files/patch-nsupdate.c
new file mode 100644
index 000000000000..53e73f5ca19a
--- /dev/null
+++ b/net/dhisd/files/patch-nsupdate.c
@@ -0,0 +1,31 @@
+--- nsupdate.c.orig Mon Mar 19 22:23:40 2001
++++ nsupdate.c Mon Mar 19 22:55:46 2001
+@@ -28,8 +28,17 @@
+
+
+ #include"dhisd.h"
+-#ifndef BIND821
+-#include <res_update.h>
++
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
++#if (defined(BSD) && (BSD >= 199306))
++# include <arpa/nameser.h>
++#else
++# if !defined BIND821
++# include <res_update.h>
++# endif
+ #endif
+
+ int dns_update(unsigned char *r_dname,int r_opcode,short int r_type,
+@@ -53,7 +62,7 @@
+ rrecp->r_size=r_size;
+ if(r_size>0) strcpy(rrecp->r_data,r_data);
+
+-#ifndef BIND821
++#if !defined(BIND821) && !defined(BSD)
+ rrecp->r_link.prev=NULL;
+ rrecp->r_link.next=NULL;
+ #else