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