summaryrefslogtreecommitdiff
path: root/package/maradns/patches/patch-Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-07 20:03:20 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-07 20:03:20 +0100
commit6daa792eab1488d013fefc5eb7e4d01f40f38687 (patch)
tree6391cc46bb9fc8b859d99175ea317e5fa7b37959 /package/maradns/patches/patch-Makefile
parentadcaca72539b2ff4a5f4deee00d5f0251378ac9b (diff)
change defaults for CONFIG/BUILD/INSTALL styles
All packages need an update, so here is a very huge commit. Most of the 460 source packages use automatic style for configuration, building and installing. Make these styles default to "auto". If you have a package, which does not conform to this, just use manual style and add a do-$task make target. I added a new style named AUTOTOOL style, which is needed for some broken packages, which needs to be updated via autoconf or automake. I renamed CONFIGURE_STYLE to CONFIG_STYLE. Updates for some packages, which have newer upstream versions. Renaming of all package/*/extra directories. Use the directory src/ to provide overwrites of source files or to add the code, when no upstream package is available or used. src directory will be automatically used.
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
++