summaryrefslogtreecommitdiff
path: root/net/maradns/patches
diff options
context:
space:
mode:
authorcube <cube>2003-11-14 21:19:03 +0000
committercube <cube>2003-11-14 21:19:03 +0000
commit104c6db545dc15c3185d969628684cd6fde65d9f (patch)
tree9c2f145d9b25078c3caf475a2193136f13be7fca /net/maradns/patches
parent1b90f272b4e2d1baa1ac30f2423cf6dd8c9227c7 (diff)
downloadpkgsrc-104c6db545dc15c3185d969628684cd6fde65d9f.tar.gz
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.
Diffstat (limited to 'net/maradns/patches')
-rw-r--r--net/maradns/patches/patch-aa13
-rw-r--r--net/maradns/patches/patch-ab14
-rw-r--r--net/maradns/patches/patch-ac13
-rw-r--r--net/maradns/patches/patch-ad13
4 files changed, 50 insertions, 3 deletions
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");
+
+ }
+