bind 9.11.0-P5
[git/cygwin-packages/bind.git] / bind.cygport
1 inherit python
2
3 NAME="bind"
4 VERSION=9.11.0
5 RELEASE=3.P5
6 CATEGORY="Net"
7 SUMMARY="DNS server and utilities suite"
8 DESCRIPTION="BIND is an implementation of the Domain Name System (DNS)
9 protocols. The DNS protocols are part of the core Internet standards.
10 They specify the process by which one computer can find another computer
11 on the basis of its name. The BIND software distribution contains all of
12 the software needed both to ask name service questions and to answer
13 such questions."
14 HOMEPAGE="http://www.isc.org/software/bind/"
15 #tar_v=${VERSION}
16 tar_v="${VERSION}-${RELEASE##*\.}"
17 SRC_URI="http://ftp.isc.org/isc/bind9/${tar_v}/bind-${tar_v}.tar.gz
18 http://ftp.isc.org/isc/bind9/${tar_v}/bind-${tar_v}.tar.gz.asc
19 named-config"
20 SRC_DIR="bind-${tar_v}"
21 PATCH_URI="
22 http://pkgs.fedoraproject.org/cgit/bind.git/plain/bind-99-libidn.patch
23 http://pkgs.fedoraproject.org/cgit/rpms/bind.git/plain/bind-9.11-rh1236087.patch
24 9.9.6-configure.patch
25 9.9.6-lwconfig-win32.patch
26 9.5.0-parallel-build.patch
27 9.9.6-cygwin-threads.patch
28 9.10.3-cygwin-ftm.patch
29 9.10.4-libtool.patch
30 9.11.0-tests-libtool.patch
31 "
32
33 PKG_NAMES="bind bind-utils bind-doc
34 libbind9_160 libdns166 libirs160 libisc160 libisccc160
35 libisccfg160 liblwres160 libbind9-devel python-isc"
36 bind_SUMMARY="DNS server"
37 bind_REQUIRES="bind-utils"
38 bind_CONTENTS="
39 etc/
40 usr/bin/arpaname.exe
41 usr/sbin/*
42 usr/share/man/man1/arpaname*
43 usr/share/man/man[58]/
44 "
45 bind_utils_CONTENTS="DNS utilities"
46 bind_utils_CONTENTS="
47 --exclude=arpaname*
48 --exclude=isc-config.sh*
49 --exclude=bind9-config*
50 --exclude=arm
51 usr/bin/*.exe
52 usr/share/doc/
53 usr/share/man/man1/
54 "
55 bind_doc_CATEGORY="Doc"
56 bind_doc_SUMMARY="BIND Administrator Reference Manual"
57 bind_doc_CONTENTS="usr/share/doc/bind/arm/"
58 libbind9_160_CATEGORY="Libs"
59 libbind9_160_SUMMARY="BIND library"
60 libbind9_160_CONTENTS="usr/bin/cygbind9-160.dll"
61 libdns166_CATEGORY="Libs"
62 libdns166_SUMMARY="BIND DNS library"
63 libdns166_CONTENTS="usr/bin/cygdns-166.dll"
64 libirs160_CATEGORY="Libs"
65 libirs160_SUMMARY="BIND resolv.conf parser library"
66 libirs160_CONTENTS="usr/bin/cygirs-160.dll"
67 libisc160_CATEGORY="Libs"
68 libisc160_SUMMARY="BIND ISC core library"
69 libisc160_CONTENTS="usr/bin/cygisc-160.dll"
70 libisccc160_CATEGORY="Libs"
71 libisccc160_SUMMARY="BIND Control Channel library"
72 libisccc160_CONTENTS="usr/bin/cygisccc-160.dll"
73 libisccfg160_CATEGORY="Libs"
74 libisccfg160_SUMMARY="BIND named.conf parser library"
75 libisccfg160_CONTENTS="usr/bin/cygisccfg-160.dll"
76 liblwres160_CATEGORY="Libs"
77 liblwres160_SUMMARY="BIND Lightweight Resolver library"
78 liblwres160_CONTENTS="usr/bin/cyglwres-160.dll"
79 libbind9_devel_CATEGORY="Libs"
80 libbind9_devel_REQUIRES="libcatgets-devel libGeoIP-devel libjson-c-devel libkrb5-devel libxml2-devel openssl-devel"
81 libbind9_devel_SUMMARY="BIND libraries (development)"
82 libbind9_devel_CONTENTS="
83 usr/bin/bind9-config
84 usr/bin/isc-config.sh
85 usr/include/bind9/
86 usr/include/dns/
87 usr/include/dst/
88 usr/include/irs/
89 usr/include/isc*/
90 usr/include/lwres/
91 usr/include/pk*11/
92 usr/lib/lib*.dll.a
93 usr/share/man/man1/bind9-config*
94 usr/share/man/man1/isc-config.sh*
95 usr/share/man/man3/
96 "
97 python_isc_CATEGORY="Python"
98 python_isc_SUMMARY="Python module for sending commands to rndc"
99 python_isc_CONTENTS="${PYTHON_SITELIB#/}/isc*"
100
101 DIFF_EXCLUDES="*.1 *.html *.pdf"
102 DISTCLEANFILES="aclocal.m4"
103
104 src_compile() {
105 cd ${S}
106 cygautoreconf
107
108 cd ${B}
109
110 # we want GetNetworkParams but not if_nametoindex
111 cat > iphlpapi.def <<_EOF
112 LIBRARY "IPHLPAPI.DLL"
113 EXPORTS
114 GetNetworkParams${ARCH_i686+@8}
115 _EOF
116 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
117 LIBS+=" -lcatgets -Wl,${B}/libiphlpapi.a"
118
119 # see config.h.win32
120 CPPFLAGS+=" -DFD_SETSIZE=16384"
121
122 cygconf \
123 --enable-threads --enable-ipv6 \
124 --enable-filter-aaaa --enable-fixed-rrset \
125 --enable-full-report \
126 --enable-openssl-hash \
127 --disable-openssl-version-check \
128 --disable-backtrace --disable-linux-caps --without-dlopen \
129 --with-dlz-bdb=/usr \
130 --with-dlz-filesystem \
131 --with-dlz-ldap=/usr \
132 --with-dlz-mysql=/usr \
133 --with-dlz-odbc=/usr \
134 --with-dlz-postgres=/usr \
135 --with-dlz-stub \
136 --with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets \
137 --with-geoip \
138 --with-gssapi --disable-isc-spnego \
139 --with-libtool \
140 --with-libxml2=/usr \
141 --with-openssl=/usr
142
143 cygmake
144
145 # lndirs
146 # cygmake -j1 doc
147 }
148
149 src_install() {
150 cd ${B}
151 dosbin ${S}/named-config
152 cyginstall
153
154 sed -i -e "s|-Wl,${B}[^ ]*||" ${D}/usr/bin/isc-config.sh
155
156 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
157 docinto arm
158 dodoc ${S}/doc/arm/[^i]*.{html,pdf}
159 }
This page took 0.039465 seconds and 5 git commands to generate.