From 104c6db545dc15c3185d969628684cd6fde65d9f Mon Sep 17 00:00:00 2001 From: cube Date: Fri, 14 Nov 2003 21:19:03 +0000 Subject: o Better handling of pthreads dependency o Fixes to make building and installing more easy o Make MaraDNS actually look into ${PKG_SYSCONFDIR} for its configuration file, thus bumping PKGREVISION. --- net/maradns/patches/patch-aa | 13 ++++++++++--- net/maradns/patches/patch-ab | 14 ++++++++++++++ net/maradns/patches/patch-ac | 13 +++++++++++++ net/maradns/patches/patch-ad | 13 +++++++++++++ 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 net/maradns/patches/patch-ab create mode 100644 net/maradns/patches/patch-ac create mode 100644 net/maradns/patches/patch-ad (limited to 'net/maradns/patches') diff --git a/net/maradns/patches/patch-aa b/net/maradns/patches/patch-aa index d27a0ad999a..cb304d7ca8e 100644 --- a/net/maradns/patches/patch-aa +++ b/net/maradns/patches/patch-aa @@ -1,13 +1,20 @@ -$NetBSD: patch-aa,v 1.1 2003/11/14 09:34:42 wiz Exp $ +$NetBSD: patch-aa,v 1.2 2003/11/14 21:19:03 cube Exp $ ---- server/Makefile.orig Tue Aug 27 05:11:46 2002 +--- server/Makefile.orig 2002-08-27 05:11:46.000000000 +0200 +++ server/Makefile @@ -15,7 +15,7 @@ EXECS=maradns #FLAGS = -g $(DEBUG) -DNOTHREAD -DDEBUG #FLAGS = -g -DDEBUG_MEMORY $(DEBUG) #FLAGS = -g $(DEBUG) -FLAGS = -O2 -Wall $(DEBUG) -+FLAGS = -O2 -Wall $(DEBUG) ${CFLAGS} ${LDFLAGS} ++FLAGS = -O2 -Wall $(DEBUG) ${CFLAGS} all: $(EXECS) +@@ -35,5 +35,5 @@ timestamp.o: timestamp.c MaraDNS_locale. + $(CC) -c $(FLAGS) -o timestamp.o timestamp.c + + maradns: MaraDNS.c $(OBJECTS) MaraDNS_locale.h +- $(CC) $(FLAGS) -DVERSION=\"$(VERSION)\" -DCOMPILED=\"$(COMPILED)\" -o maradns MaraDNS.c $(OBJECTS) -lpthread ++ $(CC) $(FLAGS) -DVERSION=\"$(VERSION)\" -DCOMPILED=\"$(COMPILED)\" -o maradns MaraDNS.c $(OBJECTS) ${LDFLAGS} + diff --git a/net/maradns/patches/patch-ab b/net/maradns/patches/patch-ab new file mode 100644 index 00000000000..34a3e2b450e --- /dev/null +++ b/net/maradns/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1 2003/11/14 21:19:03 cube Exp $ + +--- configure.orig 2002-01-24 07:43:44.000000000 +0100 ++++ configure +@@ -72,6 +72,9 @@ elif echo $UNAME | grep -i cygwin > /dev + cat $BUILDDIR/Makefile.noflock >> Makefile + echo It looks like you are using Cygwin\; this should compile file + echo by typing in \'make\'. ++elif echo $UNAME | grep -i netbsd > /dev/null ; then ++ cat $BUILDDIR/Makefile.linux >> Makefile ++ echo It looks like you are using NetBSD\; just type in \'make\' + else + cat $BUILDDIR/Makefile.noflock >> Makefile + echo I am not familiar with the OS you are running. Please email diff --git a/net/maradns/patches/patch-ac b/net/maradns/patches/patch-ac new file mode 100644 index 00000000000..e0db1ffccd1 --- /dev/null +++ b/net/maradns/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2003/11/14 21:19:03 cube Exp $ + +--- build/install.locations.orig 2002-05-05 14:11:47.000000000 +0200 ++++ build/install.locations +@@ -33,7 +33,7 @@ MAN5="$PREFIX/man/man5/" + # The directory to put man pages which describe the server programs + MAN8="$PREFIX/man/man8/" + # The directory to put a copy of the MaraDNS documents on the system +-DOCS="$PREFIX/doc/maradns-$VERSION" ++DOCS="$PREFIX/share/doc/maradns" + + # Mandrake does not have a /usr/local/man. Ugh. + # As a result, we need the following kludge to get this to diff --git a/net/maradns/patches/patch-ad b/net/maradns/patches/patch-ad new file mode 100644 index 00000000000..a4bc801e2bf --- /dev/null +++ b/net/maradns/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2003/11/14 21:19:03 cube Exp $ + +--- parse/ParseMaraRc.c.orig 2002-05-23 00:05:11.000000000 +0200 ++++ parse/ParseMaraRc.c +@@ -815,7 +815,7 @@ int find_mararc(js_string *out) { + return JS_ERROR; + + /* Simple and secure: We look for it in /etc/mararc */ +- return js_qstr2js(out,"/etc/mararc"); ++ return js_qstr2js(out,"@@PKGSYSCONFDIR@@/mararc"); + + } + -- cgit v1.2.3