summaryrefslogtreecommitdiff
path: root/package/maradns/patches/patch-Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-07 20:15:44 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-07 20:15:44 +0100
commit483e9fde0b3923169c3c70720ca94b032dd30ae8 (patch)
treebd4ea28db271093276fe295b2da2e000a28aa857 /package/maradns/patches/patch-Makefile
parent10997d993a55465525b026b9404f5809687e9e3c (diff)
parent25448b89bc693d56b074cd7b2a9c60ddc12f7404 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/maradns/patches/patch-Makefile')
-rw-r--r--package/maradns/patches/patch-Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/package/maradns/patches/patch-Makefile b/package/maradns/patches/patch-Makefile
new file mode 100644
index 000000000..d1fc651c4
--- /dev/null
+++ b/package/maradns/patches/patch-Makefile
@@ -0,0 +1,94 @@
+--- maradns-1.4.03.orig/Makefile 2006-01-02 17:59:33.000000000 +0100
++++ maradns-1.4.03/Makefile 2010-02-06 00:19:48.471836901 +0100
+@@ -1,15 +1,82 @@
+-# This is a wrapper that runs "./configure ; make"
+-all:
+- ./compile.sh
++VERSION=1.4.03
++COMPILED="Linux system at Sat Feb 6 00:19:48 CET 2010"
++COMPILED_DEBUG="Linux system at Sat Feb 6 00:19:48 CET 2010 (Debug)"
++# Server objects
++SOBJECTS=server/MaraBigHash.o
++# js_string library (buffer overflow resistant string library) objects
++JOBJS=libs/JsStr.o libs/JsStrOS.o libs/JsStrCP.o
++# MaraHash (assosciative array) library objects
++MHOBJS=libs/MaraHash.o
++# Parser objects
++POBJECTS=parse/ParseMaraRc.o parse/ParseCsv1.o ../parse/ParseIpAcl.o
++# DNS query processing library objects
++DOBJECTS=dns/Queries.o dns/Compress.o dns/bobbit.o
++# Secure random number generator objects
++ROBJECTS=rng/rng-api-fst.o rng/rng-alg-fst.o
++OBJECTS=$(JOBJS) $(MHOBJS) $(SOBJECTS) $(DOBJECTS) $(POBJECTS) $(DOBJECTS) $(ROBJECTS)
++EXECS=server/maradns
+
+-debug:
+- ./configure ; make debug
++# Uncomment the following three lines to get this to compile on Solaris
++# LDFLAGS=-lxnet
++# CC=gcc $(LDFLAGS) -DSELECT_PROBLEM
++# M="CC=$(CC)"
++# These are currently unused, but will be needed again if we use flock() again
++# CFLAGS=-I/usr/ucbinclude
++# L="CC=$(CC) $(CFLAGS)"
++# LDFLAGS=-L/usr/ucblib -lucb -lxnet
++# end the Solaris section
++# Non-Solaris version of "M"
++V="VERSION=$(VERSION)"
++Q="DEFINES=-DSELECT_PROBLEM"
++
++# Debug
++
++FLAGS = -O2 -Wall -DSELECT_PROBLEM
++M="CC=$(CC) $(FLAGS)"
++D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS"
++#FLAGS = -g
++
++all:
++ cd libs ; make $(M) ; cd ../dns ; make $(M) ; \
++ cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \
++ cd ../qual ; make $(M) ; cd ../server ; \
++ make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \
++ cd ../tools ; make $(M) ; \
++ cd ../tcp ; make $(M) $(V) ; cat ../00README.FIRST
++
++debug:
++ cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \
++ cd ../dns ; make $(D) ; cd ../rng ; make $(D) ; \
++ cd ../parse ; make $(D) ; cd ../qual ; make $(D) ; \
++ cd ../server ; \
++ make $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \
++ cd ../tools ; make $(D) ; \
++ cd ../tcp ; make $(D) $(V) ; cat ../00README.FIRST
+
+ clean:
+- ./configure ; make clean
++ rm -f $(OBJECTS) core $(EXECS) ; \
++ cp build/Makefile.w Makefile ; cd dns ; make clean ; \
++ cd ../libs ; make clean ; cd ../parse ; make clean ; \
++ cd ../qual ; make clean ; \
++ cd ../server ; make clean ; \
++ cp Makefile.recursive Makefile ; \
++ cd ../test ; make clean ; \
++ cd ../tools ; make clean ; \
++ cd misc ; make clean ; \
++ cd ../../utf8 ; make clean ; \
++ cd ../tcp ; make clean ; \
++ cd ../rng ; make clean ; \
++ cd ../sqa ; make clean ; \
++ # ; cd .. ; find . -type d | grep .deps | xargs rm -fr ; find . -name '*.o' | xargs rm
+
+-uninstall:
+- ./configure ; make uninstall
++strip:
++ cd server; strip maradns ; cd ../tcp ; \
++ strip zoneserver getzone fetchzone ; \
++ cd ../tools ; strip askmara
+
+ install:
+- echo Please compile MaraDNS first
++ VERSION=$(VERSION) ./build/install.sh
++
++uninstall:
++ VERSION=$(VERSION) ./build/uninstall.sh
++