bind 9.11.0-P5
[git/cygwin-packages/bind.git] / bind.cygport
CommitLineData
d17d3139
YS
1inherit python
2
122b034b 3NAME="bind"
d17d3139 4VERSION=9.11.0
94a434f0 5RELEASE=3.P5
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."
ab42df8b 14HOMEPAGE="http://www.isc.org/software/bind/"
c96bc481
YS
15#tar_v=${VERSION}
16tar_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="
562f3338 22 http://pkgs.fedoraproject.org/cgit/bind.git/plain/bind-99-libidn.patch
94a434f0 23 http://pkgs.fedoraproject.org/cgit/rpms/bind.git/plain/bind-9.11-rh1236087.patch
14e2c014
YS
24 9.9.6-configure.patch
25 9.9.6-lwconfig-win32.patch
70f1c153 26 9.5.0-parallel-build.patch
5d8c6e0d 27 9.9.6-cygwin-threads.patch
44f5801e 28 9.10.3-cygwin-ftm.patch
b2275eb5 29 9.10.4-libtool.patch
d17d3139 30 9.11.0-tests-libtool.patch
ab42df8b 31"
32
b2275eb5 33PKG_NAMES="bind bind-utils bind-doc
d17d3139
YS
34 libbind9_160 libdns166 libirs160 libisc160 libisccc160
35 libisccfg160 liblwres160 libbind9-devel python-isc"
0724586a
YS
36bind_SUMMARY="DNS server"
37bind_REQUIRES="bind-utils"
b2275eb5
YS
38bind_CONTENTS="
39 etc/
d17d3139 40 usr/bin/arpaname.exe
b2275eb5
YS
41 usr/sbin/*
42 usr/share/man/man1/arpaname*
43 usr/share/man/man[58]/
44"
0724586a 45bind_utils_CONTENTS="DNS utilities"
b2275eb5
YS
46bind_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"
55bind_doc_CATEGORY="Doc"
56bind_doc_SUMMARY="BIND Administrator Reference Manual"
57bind_doc_CONTENTS="usr/share/doc/bind/arm/"
d17d3139
YS
58libbind9_160_CATEGORY="Libs"
59libbind9_160_SUMMARY="BIND library"
60libbind9_160_CONTENTS="usr/bin/cygbind9-160.dll"
61libdns166_CATEGORY="Libs"
62libdns166_SUMMARY="BIND DNS library"
63libdns166_CONTENTS="usr/bin/cygdns-166.dll"
64libirs160_CATEGORY="Libs"
65libirs160_SUMMARY="BIND resolv.conf parser library"
66libirs160_CONTENTS="usr/bin/cygirs-160.dll"
b2275eb5
YS
67libisc160_CATEGORY="Libs"
68libisc160_SUMMARY="BIND ISC core library"
69libisc160_CONTENTS="usr/bin/cygisc-160.dll"
d17d3139
YS
70libisccc160_CATEGORY="Libs"
71libisccc160_SUMMARY="BIND Control Channel library"
72libisccc160_CONTENTS="usr/bin/cygisccc-160.dll"
73libisccfg160_CATEGORY="Libs"
74libisccfg160_SUMMARY="BIND named.conf parser library"
75libisccfg160_CONTENTS="usr/bin/cygisccfg-160.dll"
76liblwres160_CATEGORY="Libs"
77liblwres160_SUMMARY="BIND Lightweight Resolver library"
78liblwres160_CONTENTS="usr/bin/cyglwres-160.dll"
b2275eb5
YS
79libbind9_devel_CATEGORY="Libs"
80libbind9_devel_REQUIRES="libcatgets-devel libGeoIP-devel libjson-c-devel libkrb5-devel libxml2-devel openssl-devel"
81libbind9_devel_SUMMARY="BIND libraries (development)"
82libbind9_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/
d17d3139 91 usr/include/pk*11/
b2275eb5
YS
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"
d17d3139
YS
97python_isc_CATEGORY="Python"
98python_isc_SUMMARY="Python module for sending commands to rndc"
99python_isc_CONTENTS="${PYTHON_SITELIB#/}/isc*"
ab42df8b 100
b2275eb5 101DIFF_EXCLUDES="*.1 *.html *.pdf"
92060fa6 102DISTCLEANFILES="aclocal.m4"
ab42df8b 103
21266ca2
YS
104src_compile() {
105 cd ${S}
106 cygautoreconf
107
108 cd ${B}
109
110 # we want GetNetworkParams but not if_nametoindex
111 cat > iphlpapi.def <<_EOF
112LIBRARY "IPHLPAPI.DLL"
113EXPORTS
114GetNetworkParams${ARCH_i686+@8}
115_EOF
116 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
5d8c6e0d 117 LIBS+=" -lcatgets -Wl,${B}/libiphlpapi.a"
21266ca2
YS
118
119 # see config.h.win32
120 CPPFLAGS+=" -DFD_SETSIZE=16384"
121
122 cygconf \
5d8c6e0d 123 --enable-threads --enable-ipv6 \
b2275eb5
YS
124 --enable-filter-aaaa --enable-fixed-rrset \
125 --enable-full-report \
126 --enable-openssl-hash \
5d8c6e0d 127 --disable-openssl-version-check \
21266ca2
YS
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 \
b2275eb5 137 --with-geoip \
5d8c6e0d 138 --with-gssapi --disable-isc-spnego \
b2275eb5 139 --with-libtool \
21266ca2
YS
140 --with-libxml2=/usr \
141 --with-openssl=/usr
142
143 cygmake
b2275eb5
YS
144
145# lndirs
146# cygmake -j1 doc
21266ca2 147}
3eba9dbc
YS
148
149src_install() {
150 cd ${B}
745c8dd1 151 dosbin ${S}/named-config
3eba9dbc 152 cyginstall
b2275eb5
YS
153
154 sed -i -e "s|-Wl,${B}[^ ]*||" ${D}/usr/bin/isc-config.sh
155
21266ca2 156 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
b2275eb5
YS
157 docinto arm
158 dodoc ${S}/doc/arm/[^i]*.{html,pdf}
3eba9dbc 159}
This page took 0.037651 seconds and 5 git commands to generate.