bind 9.10.4-P5
[git/cygwin-packages/bind.git] / bind.cygport
1 NAME="bind"
2 VERSION=9.10.4
3 RELEASE=5.P5
4 CATEGORY="Net"
5 SUMMARY="DNS server and utilities suite"
6 DESCRIPTION="BIND is an implementation of the Domain Name System (DNS)
7 protocols. The DNS protocols are part of the core Internet standards.
8 They specify the process by which one computer can find another computer
9 on the basis of its name. The BIND software distribution contains all of
10 the software needed both to ask name service questions and to answer
11 such questions."
12 HOMEPAGE="http://www.isc.org/software/bind/"
13 #tar_v=${VERSION}
14 tar_v="${VERSION}-${RELEASE##*\.}"
15 SRC_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"
18 SRC_DIR="bind-${tar_v}"
19 PATCH_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
30 PKG_NAMES="bind bind-utils bind-doc
31 libbind9_140 libdns165 libirs141 libisc160 libisccc140
32 libisccfg140 liblwres141 libbind9-devel"
33 bind_SUMMARY="DNS server"
34 bind_REQUIRES="bind-utils"
35 bind_CONTENTS="
36 etc/
37 usr/sbin/*
38 usr/share/man/man1/arpaname*
39 usr/share/man/man[58]/
40 "
41 bind_utils_CONTENTS="DNS utilities"
42 bind_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 "
51 bind_doc_CATEGORY="Doc"
52 bind_doc_SUMMARY="BIND Administrator Reference Manual"
53 bind_doc_CONTENTS="usr/share/doc/bind/arm/"
54 libbind9_140_CATEGORY="Libs"
55 libbind9_140_SUMMARY="BIND library"
56 libbind9_140_CONTENTS="usr/bin/cygbind9-140.dll"
57 libdns165_CATEGORY="Libs"
58 libdns165_SUMMARY="BIND DNS library"
59 libdns165_CONTENTS="usr/bin/cygdns-165.dll"
60 libirs141_CATEGORY="Libs"
61 libirs141_SUMMARY="BIND resolv.conf parser library"
62 libirs141_CONTENTS="usr/bin/cygirs-141.dll"
63 libisc160_CATEGORY="Libs"
64 libisc160_SUMMARY="BIND ISC core library"
65 libisc160_CONTENTS="usr/bin/cygisc-160.dll"
66 libisccc140_CATEGORY="Libs"
67 libisccc140_SUMMARY="BIND Control Channel library"
68 libisccc140_CONTENTS="usr/bin/cygisccc-140.dll"
69 libisccfg140_CATEGORY="Libs"
70 libisccfg140_SUMMARY="BIND named.conf parser library"
71 libisccfg140_CONTENTS="usr/bin/cygisccfg-140.dll"
72 liblwres141_CATEGORY="Libs"
73 liblwres141_SUMMARY="BIND Lightweight Resolver library"
74 liblwres141_CONTENTS="usr/bin/cyglwres-141.dll"
75 libbind9_devel_CATEGORY="Libs"
76 libbind9_devel_REQUIRES="libcatgets-devel libGeoIP-devel libjson-c-devel libkrb5-devel libxml2-devel openssl-devel"
77 libbind9_devel_SUMMARY="BIND libraries (development)"
78 libbind9_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 "
92 PKG_IGNORE="usr/include/pk*11/"
93
94 DIFF_EXCLUDES="*.1 *.html *.pdf"
95 DISTCLEANFILES="aclocal.m4"
96
97 src_compile() {
98 cd ${S}
99 cygautoreconf
100
101 cd ${B}
102
103 # we want GetNetworkParams but not if_nametoindex
104 cat > iphlpapi.def <<_EOF
105 LIBRARY "IPHLPAPI.DLL"
106 EXPORTS
107 GetNetworkParams${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
142 src_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.039356 seconds and 5 git commands to generate.