Use custom implib for GetNetworkParams
[git/cygwin-packages/bind.git] / bind.cygport
CommitLineData
122b034b 1NAME="bind"
14e2c014 2VERSION=9.9.6
21266ca2 3RELEASE=2
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/"
92060fa6
YS
13SRC_URI="http://ftp.isc.org/isc/bind9/${VERSION}/bind-${VERSION}.tar.gz
14 http://ftp.isc.org/isc/bind9/${VERSION}/bind-${VERSION}.tar.gz.asc
745c8dd1 15 named-config"
ab42df8b 16
17PATCH_URI="
14e2c014
YS
18 http://pkgs.fedoraproject.org/cgit/bind.git/plain/bind-99-libidn.patch?h=f21
19 9.9.6-configure.patch
20 9.9.6-lwconfig-win32.patch
70f1c153 21 9.5.0-parallel-build.patch
92060fa6 22 9.9.3-python-install.patch
ab42df8b 23"
fe5c5ab8
YS
24# Only needed for shared libraries:
25# 9.9.0-libtool.patch
ab42df8b 26
0724586a
YS
27PKG_NAMES="bind bind-utils"
28bind_SUMMARY="DNS server"
29bind_REQUIRES="bind-utils"
30bind_CONTENTS="etc/ usr/sbin/ usr/share/man/man1/arpaname* usr/share/man/man[58]/"
31bind_utils_CONTENTS="DNS utilities"
14e2c014 32bind_utils_CONTENTS="--exclude=arpaname* --exclude=isc-config.sh* --exclude=bind9-config*
0724586a 33 usr/bin/ usr/share/doc/ usr/share/man/man1/"
a32e27fd 34libbind9_devel_CONTENTS="usr/bin/bind9-config usr/bin/isc-config.sh usr/include/ usr/lib/
14e2c014
YS
35 usr/share/man/man1/bind9-config* usr/share/man/man1/isc-config.sh*
36 usr/share/man/man3/"
13c666d1 37PKG_IGNORE=${libbind9_devel_CONTENTS}
ab42df8b 38
92060fa6 39DISTCLEANFILES="aclocal.m4"
ab42df8b 40
21266ca2
YS
41src_compile() {
42 cd ${S}
43 cygautoreconf
44
45 cd ${B}
46
47 # we want GetNetworkParams but not if_nametoindex
48 cat > iphlpapi.def <<_EOF
49LIBRARY "IPHLPAPI.DLL"
50EXPORTS
51GetNetworkParams${ARCH_i686+@8}
52_EOF
53 ${DLLTOOL} -k -d iphlpapi.def -l libiphlpapi.a
54 LIBS+=" -Wl,${B}/libiphlpapi.a"
55
56 # see config.h.win32
57 CPPFLAGS+=" -DFD_SETSIZE=16384"
58
59 cygconf \
60 --disable-backtrace --disable-linux-caps --without-dlopen \
61 --with-dlz-bdb=/usr \
62 --with-dlz-filesystem \
63 --with-dlz-ldap=/usr \
64 --with-dlz-mysql=/usr \
65 --with-dlz-odbc=/usr \
66 --with-dlz-postgres=/usr \
67 --with-dlz-stub \
68 --with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets \
69 --with-gssapi \
70 --with-libxml2=/usr \
71 --with-openssl=/usr
72
73 cygmake
74}
3eba9dbc
YS
75
76src_install() {
77 cd ${B}
745c8dd1 78 dosbin ${S}/named-config
3eba9dbc 79 cyginstall
21266ca2 80 dodoc ${S}/RELEASE-NOTES-BIND-${VERSION%-*}.txt
3eba9dbc 81}
This page took 0.02726 seconds and 5 git commands to generate.