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