bind 9.11.9
[git/cygwin-packages/bind.git] / bind.cygport
1 inherit python3 python-wheel
2
3 NAME="bind"
4 VERSION=9.11.9
5 RELEASE=1
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/downloads/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 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
35 fedora/bind-9.11-rh1663318.patch
36 fedora/bind-9.11-rh1666814.patch
37 fedora/bind-9.11-rh1647829.patch
38 fedora/bind-9.11-rh1732883.patch
39 fedora/bind-9.11-json-c.patch
40 9.9.6-configure.patch
41 9.9.6-lwconfig-win32.patch
42 9.5.0-parallel-build.patch
43 9.9.6-cygwin-threads.patch
44 9.10.3-cygwin-ftm.patch
45 9.10.4-doc-vpath.patch
46 9.11.2-libtool.patch
47 "
48
49 PKG_NAMES="bind bind-utils bind-doc
50 libbind9_161 libdns1106 libirs161 libisc1100 libisccc161
51 libisccfg163 liblwres161 libbind9-devel
52 python27-isc python36-isc python37-isc"
53 bind_SUMMARY="DNS server"
54 bind_REQUIRES="bind-utils"
55 bind_CONTENTS="
56 etc/
57 usr/bin/arpaname.exe
58 usr/sbin/*
59 usr/share/man/man1/arpaname*
60 usr/share/man/man[58]/
61 "
62 bind_utils_CONTENTS="DNS utilities"
63 bind_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 "
72 bind_doc_CATEGORY="Doc"
73 bind_doc_SUMMARY="BIND Administrator Reference Manual"
74 bind_doc_CONTENTS="usr/share/doc/bind/arm/"
75 libbind9_161_CATEGORY="Libs"
76 libbind9_161_SUMMARY="BIND library"
77 libbind9_161_CONTENTS="usr/bin/cygbind9-161.dll"
78 libdns1106_CATEGORY="Libs"
79 libdns1106_SUMMARY="BIND DNS library"
80 libdns1106_CONTENTS="usr/bin/cygdns-1106.dll"
81 libirs161_CATEGORY="Libs"
82 libirs161_SUMMARY="BIND resolv.conf parser library"
83 libirs161_CONTENTS="usr/bin/cygirs-161.dll"
84 libisc1100_CATEGORY="Libs"
85 libisc1100_SUMMARY="BIND ISC core library"
86 libisc1100_CONTENTS="usr/bin/cygisc-1100.dll"
87 libisccc161_CATEGORY="Libs"
88 libisccc161_SUMMARY="BIND Control Channel library"
89 libisccc161_CONTENTS="usr/bin/cygisccc-161.dll"
90 libisccfg163_CATEGORY="Libs"
91 libisccfg163_SUMMARY="BIND named.conf parser library"
92 libisccfg163_CONTENTS="usr/bin/cygisccfg-163.dll"
93 liblwres161_CATEGORY="Libs"
94 liblwres161_SUMMARY="BIND Lightweight Resolver library"
95 liblwres161_CONTENTS="usr/bin/cyglwres-161.dll"
96 libbind9_devel_CATEGORY="Libs"
97 libbind9_devel_REQUIRES="libjson-c-devel libkrb5-devel libxml2-devel openssl-devel"
98 libbind9_devel_SUMMARY="BIND libraries (development)"
99 libbind9_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/
108 usr/include/pk*11/
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 "
114 python27_isc_CATEGORY="Python"
115 python27_isc_OBSOLETES="python-isc python2-isc"
116 python27_isc_SUMMARY="Python module for sending commands to rndc"
117 python27_isc_CONTENTS="usr/lib/python2.7/site-packages/isc*"
118 python36_isc_CATEGORY="Python"
119 python36_isc_OBSOLETES="python3-isc"
120 python36_isc_SUMMARY="Python module for sending commands to rndc"
121 python36_isc_CONTENTS="usr/lib/python3.6/site-packages/isc*"
122 python37_isc_CATEGORY="Python"
123 python37_isc_SUMMARY="Python module for sending commands to rndc"
124 python37_isc_CONTENTS="usr/lib/python3.7/site-packages/isc*"
125
126 DIFF_EXCLUDES="*.1 *.8 *.html *.pdf notes.txt"
127 DISTCLEANFILES="aclocal.m4"
128
129 src_compile() {
130 cd ${S}
131 cygautoreconf
132 lndirs
133
134 cd ${B}
135
136 # we want GetNetworkParams but not if_nametoindex
137 cat > iphlpapi.def <<_EOF
138 LIBRARY "IPHLPAPI.DLL"
139 EXPORTS
140 GetNetworkParams${ARCH_i686+@8}
141 _EOF
142 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
143 LIBS+=" -Wl,${B}/libiphlpapi.a"
144
145 # see config.h.win32
146 CPPFLAGS+=" -DFD_SETSIZE=16384"
147
148 cygconf \
149 --enable-threads --enable-ipv6 \
150 --enable-filter-aaaa --enable-fixed-rrset \
151 --enable-full-report \
152 --enable-openssl-hash \
153 --disable-openssl-version-check \
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 \
163 --without-geoip \
164 --with-geoip2 \
165 --with-gssapi --disable-isc-spnego \
166 --with-libidn2 \
167 --with-libjson \
168 --with-libtool \
169 --with-libxml2=/usr \
170 --with-lmdb \
171 --with-openssl=/usr \
172 --with-python=/usr/bin/python${PYTHON3_VERSION}
173
174 cygmake
175 cygmake -j1 doc
176
177 pushd ${B}/bin/python
178 python_wheel_compile
179 popd
180 }
181
182 src_install() {
183 cd ${B}
184 dosbin ${S}/named-config
185 cyginstall -j1
186
187 find ${D}${PYTHON3_SITELIB}/isc* -delete
188 pushd ${B}/bin/python
189 python_wheel_install
190 popd
191
192 sed -i -e "s|-Wl,${B}[^ ]*||" ${D}/usr/bin/isc-config.sh
193
194 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
195 docinto arm
196 dodoc ${S}/doc/arm/[^i]*.{html,pdf}
197 }
This page took 0.040731 seconds and 6 git commands to generate.