bind 9.11.9
[git/cygwin-packages/bind.git] / bind.cygport
CommitLineData
9113f2b1 1inherit python3 python-wheel
d17d3139 2
122b034b 3NAME="bind"
524eca0a 4VERSION=9.11.9
2edbf483 5RELEASE=1
745c8dd1 6CATEGORY="Net"
0724586a 7SUMMARY="DNS server and utilities suite"
745c8dd1
YS
8DESCRIPTION="BIND is an implementation of the Domain Name System (DNS)
9protocols. The DNS protocols are part of the core Internet standards.
10They specify the process by which one computer can find another computer
11on the basis of its name. The BIND software distribution contains all of
12the software needed both to ask name service questions and to answer
13such questions."
9113f2b1 14HOMEPAGE="http://www.isc.org/downloads/bind/"
2edbf483
YS
15tar_v=${VERSION}
16#tar_v="${VERSION}-${RELEASE##*\.}"
c56af962
YS
17SRC_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
745c8dd1 19 named-config"
c56af962 20SRC_DIR="bind-${tar_v}"
ab42df8b 21PATCH_URI="
9113f2b1
YS
22 fedora/bind-95-rh452060.patch
23 fedora/bind93-rh490837.patch
24 fedora/bind97-rh478718.patch
25 fedora/bind97-rh645544.patch
26 fedora/bind99-rh640538.patch
27 fedora/bind97-rh669163.patch
28 fedora/bind-9.11-rh1410433.patch
29 fedora/bind-9.11-rh1205168.patch
30 fedora/bind-9.11-oot-manual.patch
31 fedora/bind-9.11-rt31459.patch
32 fedora/bind-9.11-rt46047.patch
33 fedora/bind-9.11-rh1624100.patch
34 fedora/bind-9.11-host-idn-disable.patch
9113f2b1
YS
35 fedora/bind-9.11-rh1663318.patch
36 fedora/bind-9.11-rh1666814.patch
37 fedora/bind-9.11-rh1647829.patch
524eca0a
YS
38 fedora/bind-9.11-rh1732883.patch
39 fedora/bind-9.11-json-c.patch
14e2c014
YS
40 9.9.6-configure.patch
41 9.9.6-lwconfig-win32.patch
70f1c153 42 9.5.0-parallel-build.patch
5d8c6e0d 43 9.9.6-cygwin-threads.patch
44f5801e 44 9.10.3-cygwin-ftm.patch
9113f2b1 45 9.10.4-doc-vpath.patch
9e1c2532 46 9.11.2-libtool.patch
ab42df8b 47"
48
b2275eb5 49PKG_NAMES="bind bind-utils bind-doc
524eca0a 50 libbind9_161 libdns1106 libirs161 libisc1100 libisccc161
9113f2b1 51 libisccfg163 liblwres161 libbind9-devel
2edbf483 52 python27-isc python36-isc python37-isc"
0724586a
YS
53bind_SUMMARY="DNS server"
54bind_REQUIRES="bind-utils"
b2275eb5
YS
55bind_CONTENTS="
56 etc/
d17d3139 57 usr/bin/arpaname.exe
b2275eb5
YS
58 usr/sbin/*
59 usr/share/man/man1/arpaname*
60 usr/share/man/man[58]/
61"
0724586a 62bind_utils_CONTENTS="DNS utilities"
b2275eb5
YS
63bind_utils_CONTENTS="
64 --exclude=arpaname*
65 --exclude=isc-config.sh*
66 --exclude=bind9-config*
67 --exclude=arm
68 usr/bin/*.exe
69 usr/share/doc/
70 usr/share/man/man1/
71"
72bind_doc_CATEGORY="Doc"
73bind_doc_SUMMARY="BIND Administrator Reference Manual"
74bind_doc_CONTENTS="usr/share/doc/bind/arm/"
9113f2b1
YS
75libbind9_161_CATEGORY="Libs"
76libbind9_161_SUMMARY="BIND library"
77libbind9_161_CONTENTS="usr/bin/cygbind9-161.dll"
524eca0a
YS
78libdns1106_CATEGORY="Libs"
79libdns1106_SUMMARY="BIND DNS library"
80libdns1106_CONTENTS="usr/bin/cygdns-1106.dll"
9113f2b1
YS
81libirs161_CATEGORY="Libs"
82libirs161_SUMMARY="BIND resolv.conf parser library"
83libirs161_CONTENTS="usr/bin/cygirs-161.dll"
84libisc1100_CATEGORY="Libs"
85libisc1100_SUMMARY="BIND ISC core library"
86libisc1100_CONTENTS="usr/bin/cygisc-1100.dll"
87libisccc161_CATEGORY="Libs"
88libisccc161_SUMMARY="BIND Control Channel library"
89libisccc161_CONTENTS="usr/bin/cygisccc-161.dll"
90libisccfg163_CATEGORY="Libs"
91libisccfg163_SUMMARY="BIND named.conf parser library"
92libisccfg163_CONTENTS="usr/bin/cygisccfg-163.dll"
93liblwres161_CATEGORY="Libs"
94liblwres161_SUMMARY="BIND Lightweight Resolver library"
95liblwres161_CONTENTS="usr/bin/cyglwres-161.dll"
b2275eb5 96libbind9_devel_CATEGORY="Libs"
34c6f284 97libbind9_devel_REQUIRES="libjson-c-devel libkrb5-devel libxml2-devel openssl-devel"
b2275eb5
YS
98libbind9_devel_SUMMARY="BIND libraries (development)"
99libbind9_devel_CONTENTS="
100 usr/bin/bind9-config
101 usr/bin/isc-config.sh
102 usr/include/bind9/
103 usr/include/dns/
104 usr/include/dst/
105 usr/include/irs/
106 usr/include/isc*/
107 usr/include/lwres/
d17d3139 108 usr/include/pk*11/
b2275eb5
YS
109 usr/lib/lib*.dll.a
110 usr/share/man/man1/bind9-config*
111 usr/share/man/man1/isc-config.sh*
112 usr/share/man/man3/
113"
9113f2b1
YS
114python27_isc_CATEGORY="Python"
115python27_isc_OBSOLETES="python-isc python2-isc"
116python27_isc_SUMMARY="Python module for sending commands to rndc"
117python27_isc_CONTENTS="usr/lib/python2.7/site-packages/isc*"
118python36_isc_CATEGORY="Python"
119python36_isc_OBSOLETES="python3-isc"
120python36_isc_SUMMARY="Python module for sending commands to rndc"
121python36_isc_CONTENTS="usr/lib/python3.6/site-packages/isc*"
2edbf483
YS
122python37_isc_CATEGORY="Python"
123python37_isc_SUMMARY="Python module for sending commands to rndc"
124python37_isc_CONTENTS="usr/lib/python3.7/site-packages/isc*"
ab42df8b 125
9113f2b1 126DIFF_EXCLUDES="*.1 *.8 *.html *.pdf notes.txt"
92060fa6 127DISTCLEANFILES="aclocal.m4"
ab42df8b 128
21266ca2
YS
129src_compile() {
130 cd ${S}
131 cygautoreconf
9113f2b1 132 lndirs
21266ca2
YS
133
134 cd ${B}
135
136 # we want GetNetworkParams but not if_nametoindex
137 cat > iphlpapi.def <<_EOF
138LIBRARY "IPHLPAPI.DLL"
139EXPORTS
140GetNetworkParams${ARCH_i686+@8}
141_EOF
142 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
96ca0496 143 LIBS+=" -Wl,${B}/libiphlpapi.a"
21266ca2
YS
144
145 # see config.h.win32
146 CPPFLAGS+=" -DFD_SETSIZE=16384"
147
148 cygconf \
5d8c6e0d 149 --enable-threads --enable-ipv6 \
b2275eb5
YS
150 --enable-filter-aaaa --enable-fixed-rrset \
151 --enable-full-report \
152 --enable-openssl-hash \
5d8c6e0d 153 --disable-openssl-version-check \
21266ca2
YS
154 --disable-backtrace --disable-linux-caps --without-dlopen \
155 --with-dlz-bdb=/usr \
156 --with-dlz-filesystem \
157 --with-dlz-ldap=/usr \
158 --with-dlz-mysql=/usr \
159 --with-dlz-odbc=/usr \
160 --with-dlz-postgres=/usr \
161 --with-dlz-stub \
162 --with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets \
34c6f284 163 --without-geoip \
524eca0a 164 --with-geoip2 \
5d8c6e0d 165 --with-gssapi --disable-isc-spnego \
9113f2b1
YS
166 --with-libidn2 \
167 --with-libjson \
b2275eb5 168 --with-libtool \
21266ca2 169 --with-libxml2=/usr \
9113f2b1
YS
170 --with-lmdb \
171 --with-openssl=/usr \
2edbf483 172 --with-python=/usr/bin/python${PYTHON3_VERSION}
21266ca2
YS
173
174 cygmake
9113f2b1 175 cygmake -j1 doc
b2275eb5 176
9113f2b1
YS
177 pushd ${B}/bin/python
178 python_wheel_compile
179 popd
21266ca2 180}
3eba9dbc
YS
181
182src_install() {
183 cd ${B}
745c8dd1 184 dosbin ${S}/named-config
9113f2b1 185 cyginstall -j1
b2275eb5 186
9113f2b1 187 find ${D}${PYTHON3_SITELIB}/isc* -delete
88ae2d48 188 pushd ${B}/bin/python
9113f2b1 189 python_wheel_install
88ae2d48
YS
190 popd
191
b2275eb5
YS
192 sed -i -e "s|-Wl,${B}[^ ]*||" ${D}/usr/bin/isc-config.sh
193
21266ca2 194 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
b2275eb5
YS
195 docinto arm
196 dodoc ${S}/doc/arm/[^i]*.{html,pdf}
3eba9dbc 197}
This page took 0.04296 seconds and 6 git commands to generate.