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