]> git.ipfire.org Git - ipfire-3.x.git/blob - bind/bind.nm
clamav: Update to 0.101.4
[ipfire-3.x.git] / bind / bind.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = bind
7 version = 9.9.9-P6
8 release = 1
9
10 groups = Networking/Tools
11 url = http://www.isc.org/products/BIND/
12 license = Proprietary
13 summary = BIND provides tools for the DNS.
14
15 description
16 BIND (Berkeley Internet Name Domain or named) is the most commonly used
17 DNS server on the Internet, especially on Unix-like systems.
18 end
19
20 source_dl = ftp://ftp.isc.org/isc/bind/%{version}/
21
22 build
23 requires
24 autoconf
25 automake
26 libcap-devel
27 libidn-devel
28 libtool
29 pkg-config
30 openssl-devel >= 1.0.1h-2
31 shadow-utils
32 end
33
34 configure_options += \
35 --with-libtool \
36 --enable-threads \
37 --enable-ipv6 \
38 --with-pic \
39 --disable-static \
40 --disable-openssl-version-check \
41 --enable-exportlib \
42 --with-export-libdir=%{libdir}/ \
43 --with-export-includedir=%{includedir} \
44 --includedir=%{includedir}/bind9/ \
45 --with-gssapi \
46 --enable-rrl \
47 --disable-isc-spnego
48
49 prepare_cmds
50 # Create m4 directory.
51 cd %{DIR_APP} && mkdir -pv m4
52
53 # Branding.
54 sed -i -e 's/RELEASEVER=\(.*\)/RELEASEVER=\1-%{DISTRO_NAME}-%{version}-%{release}/' version
55
56 # Regenerate build environment
57 autoreconf -vfi
58
59 end
60
61 build_cmds
62 # Build some typical system tools (dig, host, nslookup)
63 make -C bin/dig -j %{PARALLELISMFLAGS}
64
65 # Build nsupdate
66 make -C bin/nsupdate -j %{PARALLELISMFLAGS}
67 end
68
69 install_cmds
70 # Install typical system tools
71 make -C bin/dig install DESTDIR=%{BUILDROOT}
72
73 # Install nsupdate
74 make -C bin/nsupdate install DESTDIR=%{BUILDROOT}
75
76 # Install isc/errno2result.h header
77 install -m 644 lib/isc/unix/errno2result.h %{BUILDROOT}%{includedir}/isc
78
79 # Install trusted root key.
80 install -m 644 %{DIR_SOURCE}/trusted-key.key %{BUILDROOT}%{sysconfdir}/trusted-key.key
81
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
90
91 # Remove unwanted files
92 rm -rvf %{BUILDROOT}/etc
93 rm -rvf %{BUILDROOT}/var
94
95 # Remove unneeded tools
96 rm -rvf %{BUILDROOT}%{bindir}/isc-config.sh
97 rm -rvf %{BUILDROOT}%{bindir}/bind9-config
98
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
102
103 # Remove documentation for liblwres and tools
104 rm -rvf %{BUILDROOT}%{mandir}/man3
105 end
106 end
107
108 packages
109 package %{name}
110 # The bind package is just an umbrella package for the utils
111 # and libs package.
112 requires
113 %{name}-libs = %{thisver}
114 %{name}-utils = %{thisver}
115 %{name}-utils-libs = %{thisver}
116 end
117 end
118
119 package %{name}-utils
120 summary = Utilities for querying bind DNS name server.
121 description = %{summary}
122
123 requires
124 %{name}-utils-libs = %{thisver}
125 end
126
127 files
128 /etc/trusted-key.key
129 /usr/bin/dig
130 /usr/bin/host
131 /usr/bin/nslookup
132 /usr/bin/nsupdate
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*
137 end
138 end
139
140 package %{name}-utils-libs
141 template LIBS
142
143 summary = Required libraries for the tools in the bind-utils package.
144 description = %{summary}
145 end
146
147 package %{name}-libs
148 template LIBS
149
150 files
151 %{libdir}/*export.so.*
152 end
153 end
154
155 package %{name}-devel
156 template DEVEL
157 end
158
159 package %{name}-debuginfo
160 template DEBUGINFO
161 end
162 end