| [1545] | 1 | #!/usr/bin/env bash |
|---|
| 2 | |
|---|
| [1742] | 3 | VERSION=3.3-hooks |
|---|
| [691] | 4 | |
|---|
| [632] | 5 | INCLUDES="iputils.hh arguments.hh base64.hh zoneparser-tng.hh \ |
|---|
| [630] | 6 | rcpgenerator.hh lock.hh dnswriter.hh dnsrecords.hh dnsparser.hh utility.hh \ |
|---|
| 7 | recursor_cache.hh rec_channel.hh qtype.hh misc.hh dns.hh syncres.hh \ |
|---|
| [714] | 8 | sstuff.hh mtasker.hh mtasker.cc lwres.hh logger.hh ahuexception.hh \ |
|---|
| [811] | 9 | mplexer.hh win32_mtasker.hh win32_utility.cc ntservice.hh singleton.hh \ |
|---|
| [1424] | 10 | recursorservice.hh dns_random.hh lua-pdns-recursor.hh namespaces.hh \ |
|---|
| [1704] | 11 | recpacketcache.hh base32.hh cachecleaner.hh" |
|---|
| [630] | 12 | |
|---|
| 13 | CFILES="syncres.cc misc.cc unix_utility.cc qtype.cc \ |
|---|
| [632] | 14 | logger.cc arguments.cc lwres.cc pdns_recursor.cc \ |
|---|
| [630] | 15 | recursor_cache.cc dnsparser.cc dnswriter.cc dnsrecords.cc rcpgenerator.cc \ |
|---|
| [714] | 16 | base64.cc zoneparser-tng.cc rec_channel.cc rec_channel_rec.cc rec_control.cc \ |
|---|
| [801] | 17 | selectmplexer.cc epollmplexer.cc kqueuemplexer.cc portsmplexer.cc pdns_hw.cc \ |
|---|
| [811] | 18 | win32_mtasker.cc win32_rec_channel.cc win32_logger.cc ntservice.cc \ |
|---|
| [1424] | 19 | recursorservice.cc sillyrecords.cc lua-pdns-recursor.cc randomhelper.cc \ |
|---|
| [1631] | 20 | devpollmplexer.cc recpacketcache.cc dns.cc reczones.cc base32.cc nsecrecords.cc" |
|---|
| [630] | 21 | |
|---|
| [745] | 22 | cd docs |
|---|
| 23 | make pdns_recursor.1 rec_control.1 |
|---|
| 24 | cd .. |
|---|
| 25 | |
|---|
| [691] | 26 | DIRNAME=pdns-recursor-$VERSION |
|---|
| 27 | rm -rf $DIRNAME |
|---|
| 28 | mkdir $DIRNAME |
|---|
| 29 | cp $INCLUDES $CFILES $DIRNAME |
|---|
| 30 | cp Makefile-recursor $DIRNAME/Makefile |
|---|
| [801] | 31 | cp Makefile-recursor.win32 $DIRNAME/Makefile.win32 |
|---|
| [691] | 32 | cp README-recursor $DIRNAME/README |
|---|
| [1631] | 33 | cp ../COPYING $DIRNAME/ |
|---|
| [691] | 34 | cp config-recursor.h $DIRNAME/config.h |
|---|
| 35 | mkdir $DIRNAME/rrd |
|---|
| 36 | cp tools/rrd/{create,update,makegraphs,index.html} $DIRNAME/rrd |
|---|
| [1160] | 37 | cp aes/*.{c,cc,h} $DIRNAME |
|---|
| [745] | 38 | cp pdns-recursor.init.d $DIRNAME |
|---|
| 39 | cp docs/pdns_recursor.1 docs/rec_control.1 $DIRNAME |
|---|
| [751] | 40 | cp configure-recursor $DIRNAME/configure |
|---|
| [1224] | 41 | cp powerdns-example-script.lua $DIRNAME |
|---|
| [714] | 42 | |
|---|
| [736] | 43 | mkdir -p $DIRNAME/sysdeps |
|---|
| [1529] | 44 | rm -f sysdeps-recursor/*~ |
|---|
| [736] | 45 | cp sysdeps-recursor/* $DIRNAME/sysdeps |
|---|
| [806] | 46 | cp "PowerDNS Recursor.vcproj" $DIRNAME/ |
|---|
| [691] | 47 | tar cf $DIRNAME.tar $DIRNAME |
|---|
| 48 | bzip2 -f $DIRNAME.tar # .. solaris |
|---|
| [630] | 49 | |
|---|
| [806] | 50 | zip -q $DIRNAME.zip $DIRNAME/* |
|---|
| 51 | |
|---|