1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Tools
11 url = http://www.isc.org/products/BIND/
13 summary = BIND provides tools for the DNS.
16 BIND (Berkeley Internet Name Domain or named) is the most commonly used
17 DNS server on the Internet, especially on Unix-like systems.
20 source_dl = ftp://ftp.isc.org/isc/bind/%{version}/
30 openssl-devel >= 1.0.1h-2
34 configure_options += \
40 --disable-openssl-version-check \
42 --with-export-libdir=%{libdir}/ \
43 --with-export-includedir=%{includedir} \
44 --includedir=%{includedir}/bind9/ \
50 # Create m4 directory.
51 cd %{DIR_APP} && mkdir -pv m4
54 sed -i -e 's/RELEASEVER=\(.*\)/RELEASEVER=\1-%{DISTRO_NAME}-%{version}-%{release}/' version
56 # Regenerate build environment
62 # Build some typical system tools (dig, host, nslookup)
63 make -C bin/dig -j %{PARALLELISMFLAGS}
66 make -C bin/nsupdate -j %{PARALLELISMFLAGS}
70 # Install typical system tools
71 make -C bin/dig install DESTDIR=%{BUILDROOT}
74 make -C bin/nsupdate install DESTDIR=%{BUILDROOT}
76 # Install isc/errno2result.h header
77 install -m 644 lib/isc/unix/errno2result.h %{BUILDROOT}%{includedir}/isc
79 # Install trusted root key.
80 install -m 644 %{DIR_SOURCE}/trusted-key.key %{BUILDROOT}%{sysconfdir}/trusted-key.key
82 # Remove development libraries and headers except *-export ones
83 rm -rvf %{BUILDROOT}%{libdir}/libbind9.so
84 rm -rvf %{BUILDROOT}%{libdir}/libdns.so
85 rm -rvf %{BUILDROOT}%{libdir}/libisccc.so
86 rm -rvf %{BUILDROOT}%{libdir}/libisccfg.so
87 rm -rvf %{BUILDROOT}%{libdir}/libisc.so
88 rm -rvf %{BUILDROOT}%{libdir}/liblwres.so
89 rm -rvf %{BUILDROOT}%{includedir}/bind9
91 # Remove unwanted files
92 rm -rvf %{BUILDROOT}/etc
93 rm -rvf %{BUILDROOT}/var
95 # Remove unneeded tools
96 rm -rvf %{BUILDROOT}%{bindir}/isc-config.sh
97 rm -rvf %{BUILDROOT}%{bindir}/bind9-config
99 # Remove manpages for the unneeded tools
100 rm -rvf %{BUILDROOT}%{mandir}/man1/isc-config.sh.1
101 rm -rvf %{BUILDROOT}%{mandir}/man1/bind9-config.1
103 # Remove documentation for liblwres and tools
104 rm -rvf %{BUILDROOT}%{mandir}/man3
110 # The bind package is just an umbrella package for the utils
113 %{name}-libs = %{thisver}
114 %{name}-utils = %{thisver}
115 %{name}-utils-libs = %{thisver}
119 package %{name}-utils
120 summary = Utilities for querying bind DNS name server.
121 description = %{summary}
124 %{name}-utils-libs = %{thisver}
133 /usr/share/man/man1/dig.1*
134 /usr/share/man/man1/host.1*
135 /usr/share/man/man1/nslookup.1*
136 /usr/share/man/man1/nsupdate.1*
140 package %{name}-utils-libs
143 summary = Required libraries for the tools in the bind-utils package.
144 description = %{summary}
151 %{libdir}/*export.so.*
155 package %{name}-devel
159 package %{name}-debuginfo