]>
Commit | Line | Data |
---|---|---|
e30c4f26 BH |
1 | #!/usr/bin/env bash |
2 | ||
68c12f0b PD |
3 | set -e |
4 | ||
6f50a695 PD |
5 | ragel dnslabeltext.rl -o dnslabeltext.cc |
6 | ||
ba1a571d CH |
7 | ## The following lines will be patched by set-version-recursor. |
8 | VERSION="" | |
9 | DIST_HOST="" | |
10 | ## End patch area. | |
11 | ||
12 | if [ -z "$VERSION" ]; then | |
13 | VERSION=$(git describe --always --dirty=+ 2>/dev/null) | |
14 | if [ -z "$VERSION" ]; then | |
15 | VERSION="UNKNOWN" | |
16 | else | |
17 | VERSION="git-"$VERSION | |
18 | fi | |
19 | DIST_HOST="$(id -u -n)@$(hostname -f)" | |
20 | fi | |
2353fffa | 21 | |
97ebd70d | 22 | INCLUDES="iputils.hh arguments.hh base64.hh zoneparser-tng.hh \ |
bd7f05fa BH |
23 | rcpgenerator.hh lock.hh dnswriter.hh dnsrecords.hh dnsparser.hh utility.hh \ |
24 | recursor_cache.hh rec_channel.hh qtype.hh misc.hh dns.hh syncres.hh \ | |
6dcd28c3 | 25 | sstuff.hh mtasker.hh mtasker.cc lwres.hh logger.hh ahuexception.hh \ |
ed22afa3 | 26 | mplexer.hh win32_mtasker.hh win32_utility.cc ntservice.hh singleton.hh \ |
5704e107 | 27 | recursorservice.hh dns_random.hh lua-pdns.hh lua-recursor.hh namespaces.hh \ |
ba1a571d | 28 | recpacketcache.hh base32.hh cachecleaner.hh json.hh version.hh" |
bd7f05fa BH |
29 | |
30 | CFILES="syncres.cc misc.cc unix_utility.cc qtype.cc \ | |
97ebd70d | 31 | logger.cc arguments.cc lwres.cc pdns_recursor.cc \ |
bd7f05fa | 32 | recursor_cache.cc dnsparser.cc dnswriter.cc dnsrecords.cc rcpgenerator.cc \ |
6dcd28c3 | 33 | base64.cc zoneparser-tng.cc rec_channel.cc rec_channel_rec.cc rec_control.cc \ |
9d558e14 | 34 | selectmplexer.cc epollmplexer.cc kqueuemplexer.cc portsmplexer.cc pdns_hw.cc \ |
ed22afa3 | 35 | win32_mtasker.cc win32_rec_channel.cc win32_logger.cc ntservice.cc \ |
5704e107 | 36 | recursorservice.cc sillyrecords.cc lua-pdns.cc lua-recursor.cc randomhelper.cc \ |
c717c7f9 | 37 | devpollmplexer.cc recpacketcache.cc dns.cc reczones.cc base32.cc nsecrecords.cc \ |
ba1a571d | 38 | dnslabeltext.cc json.cc json_ws.cc json_ws.hh version.cc" |
bd7f05fa | 39 | |
0a3a6f9d BH |
40 | cd docs |
41 | make pdns_recursor.1 rec_control.1 | |
42 | cd .. | |
43 | ||
2353fffa BH |
44 | DIRNAME=pdns-recursor-$VERSION |
45 | rm -rf $DIRNAME | |
46 | mkdir $DIRNAME | |
47 | cp $INCLUDES $CFILES $DIRNAME | |
48 | cp Makefile-recursor $DIRNAME/Makefile | |
9d558e14 | 49 | cp Makefile-recursor.win32 $DIRNAME/Makefile.win32 |
2353fffa | 50 | cp README-recursor $DIRNAME/README |
1a133832 | 51 | cp ../COPYING $DIRNAME/ |
2353fffa | 52 | cp config-recursor.h $DIRNAME/config.h |
ba1a571d CH |
53 | cat >>$DIRNAME/config.h <<EOF |
54 | #define VERSION "$VERSION" | |
55 | #define DIST_HOST "$DIST_HOST" | |
56 | EOF | |
91b9077d BH |
57 | mkdir -p $DIRNAME/ext/rapidjson/include/rapidjson/internal |
58 | cp -a ext/rapidjson/include/rapidjson/*.h $DIRNAME/ext/rapidjson/include/rapidjson/ | |
59 | cp -a ext/rapidjson/include/rapidjson/internal/*.h $DIRNAME/ext/rapidjson/include/rapidjson/internal | |
2353fffa BH |
60 | mkdir $DIRNAME/rrd |
61 | cp tools/rrd/{create,update,makegraphs,index.html} $DIRNAME/rrd | |
6f50a695 | 62 | cp aes/*.{c,cc,h} $DIRNAME |
0a3a6f9d BH |
63 | cp pdns-recursor.init.d $DIRNAME |
64 | cp docs/pdns_recursor.1 docs/rec_control.1 $DIRNAME | |
cd553f6c | 65 | cp configure-recursor $DIRNAME/configure |
bccdd9b7 | 66 | cp powerdns-example-script.lua $DIRNAME |
1f7f745a PD |
67 | mkdir -p $DIRNAME/contrib |
68 | cp ../contrib/systemd-pdns-recursor.service $DIRNAME/contrib | |
bd7f05fa | 69 | |
6f50a695 | 70 | mkdir -p $DIRNAME/sysdeps |
927c12b0 | 71 | rm -f sysdeps-recursor/*~ |
6f50a695 | 72 | cp sysdeps-recursor/* $DIRNAME/sysdeps |
7d7fdcbe | 73 | cp "PowerDNS Recursor.vcproj" $DIRNAME/ |
6dcd28c3 BH |
74 | tar cf $DIRNAME.tar $DIRNAME |
75 | bzip2 -f $DIRNAME.tar # .. solaris | |
bd7f05fa | 76 | |
7d7fdcbe BH |
77 | zip -q $DIRNAME.zip $DIRNAME/* |
78 |