Ticket #11402: maradns-1.1.55_to_1.2.12.04.diff
File maradns-1.1.55_to_1.2.12.04.diff, 7.3 KB (added by boeyms@…, 18 years ago) |
---|
-
net/maradns/Portfile
diff -Naur dports/net/maradns/Portfile dports-devel/net/maradns/Portfile
old new 1 # $Id: Portfile 2 2478 2007-03-02 05:16:40Z pipping@macports.org $1 # $Id: Portfile 20343 2006-11-02 01:28:24Z blair@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 5 5 name maradns 6 version 1.1.55 6 version 1.2.12.04 7 8 set branch [strsed ${version} {s/\.[0-9]*\.[0-9]*$//}] 9 7 10 categories net 8 11 platforms darwin 9 maintainers nomaintainer@macports.org12 maintainers boeyms@fastmail.fm openmaintainer@macports.org 10 13 description DNS server supporting authoritative, recursive and caching DNS 11 14 long_description MaraDNS is a fully functional DNS server supporting \ 12 15 authoritative DNS, recursive DNS, and caching DNS. 13 16 14 17 homepage http://www.maradns.org/ 15 master_sites http://www.maradns.org/download/1.1/ 16 checksums md5 8f42f1e1de21fdd5287f58985e189a32 18 master_sites http://www.maradns.org/download/${branch}/${version} \ 19 sourceforge 20 21 checksums md5 957b7772d22f30cb948def52eb6eaaf6 \ 22 sha1 02b9a8ddaedbec2b1d0113a7f2bc8b654354e657 17 23 use_bzip2 yes 18 24 25 patchfiles patch-configure patch-install.darwin 26 27 28 post-extract { 29 cd ${worksrcpath} 30 # Delete unneeded stress-testing code (not built by default). It may be worth 31 # adding this as a variant in a future revision. 32 file delete -force sqa 33 # Delete Portuguese documentation sources (documentation not built by default; 34 # will need to add a section to build these docs if localisation desired) 35 file delete -force doc/pt_br 36 # Delete unneeded English documentation sources (documentation already built) 37 # and support files that will otherwise be installed in the doc directories 38 file delete -force doc/en/source 39 file delete doc/en/man/read.manpage 40 file delete doc/en/pdf/tmac.an.patch 41 eval file delete [glob doc/en/*/{Makefile,*.embed,make.*}] 42 # Fix installation script (called by "make install") so that configuration 43 # files and directories are placed in destroot 44 reinplace "s|\$RPM_BUILD_ROOT|${destroot}${prefix}|g" build/install.sh 45 # Fix hardcoding of default paths to chroot, log and zone file dirs, and 46 # configuration file, in source and docs. copy.devs.c is only used if maradns 47 # is built for Solaris, and maraconf.sh is neither installed by default nor yet 48 # by this Portfile, but hey. 49 set marabindocpages "duende maradns mararc zoneserver" 50 set marasetupdocpages "authoritative compile convert dangling \ 51 dnsmaster dnsslave dnstcp quick_start recursive update" 52 set marareinplace "s|/etc/mara|${prefix}/etc/mara|g" 53 foreach docpage ${marabindocpages} { 54 eval reinplace "${marareinplace}" \ 55 doc/en/text/man.${docpage}.txt \ 56 doc/en/tutorial/man.${docpage}.html 57 } 58 foreach docpage ${marasetupdocpages} { 59 eval reinplace "${marareinplace}" \ 60 doc/en/text/${docpage}.txt \ 61 doc/en/tutorial/${docpage}.html 62 } 63 eval reinplace "${marareinplace}" \ 64 MaraDns.h \ 65 build/copy.devs.c \ 66 parse/ParseMaraRc.c \ 67 tools/maraconf.sh \ 68 doc/en/QuickStart \ 69 doc/en/examples/example_authoritative_mararc.txt \ 70 doc/en/examples/example_full_mararc \ 71 doc/en/examples/example_mararc \ 72 doc/en/examples/example_recursive_mararc.txt \ 73 doc/en/man/duende.8 \ 74 doc/en/man/maradns.8 \ 75 doc/en/man/zoneserver.8 \ 76 doc/en/man/mararc.5 77 } 78 79 19 80 configure.pre_args 20 81 21 82 build.target … … 23 84 destroot.env PREFIX=${destroot}${prefix} 24 85 destroot.destdir 25 86 87 # Keep chroot directory for duende (monitors and logs maradns instances) 88 # 89 # (This places a .turd file in the logger directory, but the duende man page 90 # states that it requires a _blank_ logger directory to run (emphasis added). 91 # Testing has not revealed any interference from the .turd file so far, but 92 # the testing done may not have been exhaustive (I don't know enough about 93 # chroot jails).) 94 destroot.keepdirs ${destroot}${prefix}/etc/maradns/logger 95 26 96 post-destroot { 27 xinstall -m 755 -d ${destroot}${prefix}/etc/maradns/logger 28 xinstall -m 644 ${filespath}/mararc ${destroot}${prefix}/etc/maradns 29 reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/maradns/mararc 30 file delete -force ${destroot}${prefix}/maradns-${version} 97 # Delete remaining unneeded build files; this also deletes the man page for 98 # the mqhash tool, which is not installed by default, but it appears to be only 99 # for development testing. 100 file delete -force \ 101 ${destroot}${prefix}/share/doc/maradns-${version}/Makefile \ 102 ${destroot}${prefix}/share/doc/maradns-${version}/man 103 file rename ${destroot}${prefix}/etc/mararc \ 104 ${destroot}${prefix}/etc/example-mararc 31 105 } 32 106 33 107 startupitem.create yes … … 36 110 startupitem.start "\[ -x \${BIN} \] && \${BIN} &; echo \$! > \${PID}" 37 111 startupitem.stop "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})" 38 112 113 post-install { 114 ui_msg "***************************************************************" 115 ui_msg "* To make MaraDNS functional, you will need to create" 116 ui_msg "* ${prefix}/etc/mararc. Please read the mararc man page" 117 ui_msg "* for details. Example mararc files are in" 118 ui_msg "* ${prefix}/share/doc/maradns-${version}/examples ." 119 ui_msg "***************************************************************" 120 } 121 39 122 platform darwin 8 { 40 123 build.args CC="/usr/bin/gcc-4.0 -DDARWIN" 41 124 } 42 125 126 variant authonly { 127 configure.args-append --authonly 128 startupitem.init \ 129 "PID=${prefix}/var/run/${name}.pid\nBIN=${prefix}/sbin/maradns.authonly" 130 } -
net/maradns/files/mararc
diff -Naur dports/net/maradns/files/mararc dports-devel/net/maradns/files/mararc
old new 1 ipv4_bind_addresses = "127.0.0.1"2 chroot_dir = "__PREFIX__/etc/maradns"3 recursive_acl = "127.0.0.1"4 hide_disclaimer = "NO"5 -
net/maradns/files/patch-configure
diff -Naur dports/net/maradns/files/patch-configure dports-devel/net/maradns/files/patch-configure
old new 1 --- configure 2006-05-16 09:28:36.000000000 +1000 2 +++ configure.new 2007-02-02 16:53:12.000000000 +1100 3 @@ -114,7 +114,7 @@ 4 echo \(if you typed in \"make\" before, just type it again\) 5 echo 6 echo THIS PORT HAS NOT BEEN FULLY TESTED\; USE AT YOUR OWN RISK 7 - EXITCODE=1 8 + EXITCODE=0 9 # This is a a template for adding support to a new OS for MaraDNS. 10 # Some points: If you port MaraDNS, make sure the underlying OS has 11 # /dev/urandom support or have the default mararc have a -
net/maradns/files/patch-install.darwin
diff -Naur dports/net/maradns/files/patch-install.darwin dports-devel/net/maradns/files/patch-install.darwin
old new 1 --- build/install.darwin 2005-02-20 06:04:35.000000000 +1100 2 +++ build/install.darwin.new 2007-02-04 16:52:16.000000000 +1100 3 @@ -35,7 +35,7 @@ 4 # The directory to put man pages which describe the server programs 5 MAN8="$PREFIX/share/man/man8/" 6 # The directory to put a copy of the MaraDNS documents on the system 7 -DOCS="$PREFIX/maradns-$VERSION" 8 +DOCS="$PREFIX/share/doc/maradns-$VERSION" 9 10 # Mandrake does not have a /usr/local/man. Ugh. 11 # As a result, we need the following kludge to get this to