bind 9.10.4-P5
[git/cygwin-packages/bind.git] / bind.cygport
CommitLineData
122b034b 1NAME="bind"
41984db1 2VERSION=9.10.4
9a6df99d 3RELEASE=5.P5
745c8dd1 4CATEGORY="Net"
0724586a 5SUMMARY="DNS server and utilities suite"
745c8dd1
YS
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."
ab42df8b 12HOMEPAGE="http://www.isc.org/software/bind/"
c96bc481
YS
13#tar_v=${VERSION}
14tar_v="${VERSION}-${RELEASE##*\.}"
c56af962
YS
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
745c8dd1 17 named-config"
c56af962 18SRC_DIR="bind-${tar_v}"
ab42df8b 19PATCH_URI="
562f3338 20 http://pkgs.fedoraproject.org/cgit/bind.git/plain/bind-99-libidn.patch
14e2c014
YS
21 9.9.6-configure.patch
22 9.9.6-lwconfig-win32.patch
70f1c153 23 9.5.0-parallel-build.patch
92060fa6 24 9.9.3-python-install.patch
5d8c6e0d 25 9.9.6-cygwin-threads.patch
44f5801e 26 9.10.3-cygwin-ftm.patch
b2275eb5 27 9.10.4-libtool.patch
ab42df8b 28"
29
b2275eb5
YS
30PKG_NAMES="bind bind-utils bind-doc
31 libbind9_140 libdns165 libirs141 libisc160 libisccc140
32 libisccfg140 liblwres141 libbind9-devel"
0724586a
YS
33bind_SUMMARY="DNS server"
34bind_REQUIRES="bind-utils"
b2275eb5
YS
35bind_CONTENTS="
36 etc/
37 usr/sbin/*
38 usr/share/man/man1/arpaname*
39 usr/share/man/man[58]/
40"
0724586a 41bind_utils_CONTENTS="DNS utilities"
b2275eb5
YS
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/"
ab42df8b 93
b2275eb5 94DIFF_EXCLUDES="*.1 *.html *.pdf"
92060fa6 95DISTCLEANFILES="aclocal.m4"
ab42df8b 96
21266ca2
YS
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
5d8c6e0d 110 LIBS+=" -lcatgets -Wl,${B}/libiphlpapi.a"
21266ca2
YS
111
112 # see config.h.win32
113 CPPFLAGS+=" -DFD_SETSIZE=16384"
114
115 cygconf \
5d8c6e0d 116 --enable-threads --enable-ipv6 \
b2275eb5
YS
117 --enable-filter-aaaa --enable-fixed-rrset \
118 --enable-full-report \
119 --enable-openssl-hash \
5d8c6e0d 120 --disable-openssl-version-check \
21266ca2
YS
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 \
b2275eb5 130 --with-geoip \
5d8c6e0d 131 --with-gssapi --disable-isc-spnego \
b2275eb5 132 --with-libtool \
21266ca2
YS
133 --with-libxml2=/usr \
134 --with-openssl=/usr
135
136 cygmake
b2275eb5
YS
137
138# lndirs
139# cygmake -j1 doc
21266ca2 140}
3eba9dbc
YS
141
142src_install() {
143 cd ${B}
745c8dd1 144 dosbin ${S}/named-config
3eba9dbc 145 cyginstall
b2275eb5
YS
146
147 sed -i -e "s|-Wl,${B}[^ ]*||" ${D}/usr/bin/isc-config.sh
148
21266ca2 149 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
b2275eb5
YS
150 docinto arm
151 dodoc ${S}/doc/arm/[^i]*.{html,pdf}
3eba9dbc 152}
This page took 0.034116 seconds and 5 git commands to generate.