]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/release-scripts/make-linux-statics-3.2
Initial revision
[thirdparty/pdns.git] / pdns / release-scripts / make-linux-statics-3.2
1 #!/usr/bin/make -f
2
3 all: compile package
4
5 compile: prepare realcompile
6
7 prepare:
8 make distclean
9 ./configure --enable-static-binaries
10 cd ../pdns-pipebackend ; ./configure ; make clean; make
11 cd ../ahudns-mysqlbackend ; ./configure ; make clean ; make && cd -
12 cd ../ahudns-pdnsbackend ; ./configure ; make clean ; make && cd -
13 cd ../pdns-gpgsqlbackend; ./configure ; make clean ; make && cd -
14 cd ../pdns-xdbbackend; make clean ; make && cd -
15 cd ../pdns-gmysqlbackend; ./configure ; make clean ; make && cd -
16 rm -f extra/*.o
17 cd extra ; ln -s ../../pdns-pipebackend/*.o . ; cd -
18 cd extra; ln -s ../../ahudns-mysqlbackend/*.o . ; cd -
19 cd extra; ln -s ../../ahudns-pdnsbackend/*.o . ; cd -
20 cd extra; ln -s ../../pdns-gpgsqlbackend/*.o . ; cd -
21 cd extra; ln -s ../../pdns-gmysqlbackend/*.o . ; cd -
22 # cd extra; ln -s ../../pdns-xdbbackend/*.o . ; cd -
23 echo "-lmysqlclient -L/opt/postgresql-with-3.2/lib -lpq++ -lpq -lssl -lcrypt -lcrypto" > extra/ld
24 rm -f libs/*
25
26 realcompile:
27 make
28 make mkbindist
29
30
31 package:
32 mkdir -p release-files/deb/stable
33 mkdir -p release-files/linux-static
34 mkdir -p release-files/rpm
35
36 rm -rf ../pdns_*deb
37 rm -rf ../pdns-*rpm
38
39 cp backends/bind/zone2sql .
40
41 sudo debian/rules clean
42 sudo debian/rules binary
43
44 mv ../pdns_*deb release-files/deb/stable
45
46 cp pathconfig.redhat pathconfig
47 DESTDIR=/tmp/pdns sudo ./installer
48 sudo rpm -bb ./pdns.spec
49 mv ../pdns-*rpm release-files/rpm
50
51 rm -f pdns*tar.gz
52
53 . ./mkbindist
54 mv pdns*tar.gz release-files/linux-static
55
56