|
|
@@ -23,6 +23,9 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+%define V_bind 9.2.2
|
|
|
+%define V_dlz 0.3.0
|
|
|
+
|
|
|
# package information
|
|
|
Name: bind
|
|
|
Summary: Berkeley Internet Name Domain (BIND)
|
|
|
@@ -32,11 +35,11 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [BASE]
|
|
|
Group: DNS
|
|
|
License: ISC
|
|
|
-Version: 9.2.2
|
|
|
+Version: %{V_bind}
|
|
|
Release: 20030304
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.isc.org/isc/bind9/%{version}/bind-%{version}.tar.gz
|
|
|
+Source0: ftp://ftp.isc.org/isc/bind9/%{version}/bind-%{V_bind}.tar.gz
|
|
|
Source2: db.root
|
|
|
Source3: db.root.sh
|
|
|
Source4: db.localhost
|
|
|
@@ -45,12 +48,35 @@ Source6: db.localhost.ipv6
|
|
|
Source7: named.conf
|
|
|
Source8: rndc.conf
|
|
|
Source9: rc.bind
|
|
|
+Source10: http://osdn.dl.sourceforge.net/bind-dlz/DLZ-%{V_dlz}.tar.gz
|
|
|
+Patch0: bind.patch
|
|
|
+
|
|
|
+# package options
|
|
|
+%option with_dlz_mysql no
|
|
|
+%option with_dlz_postgres no
|
|
|
+%option with_dlz_filesystem no
|
|
|
+%option with_dlz_stub no
|
|
|
+
|
|
|
+# aggregate option
|
|
|
+%if "%{with_dlz_mysql}" == "yes" || "%{with_dlz_postgres}" == "yes" || "%{with_dlz_filesystem}" == "yes" || "%{with_dlz_stub}" == "yes"
|
|
|
+%define with_dlz yes
|
|
|
+%else
|
|
|
+%define with_dlz no
|
|
|
+%endif
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20021002, make, openssl
|
|
|
PreReq: OpenPKG, openpkg >= 20021002
|
|
|
+%if "{with_dlz_mysql}" == "yes"
|
|
|
+BuildPreReq: MYSQL
|
|
|
+PreReq: MYSQL
|
|
|
+%endif
|
|
|
+%if "{with_dlz_postgres}" == "yes"
|
|
|
+BuildPreReq: postgresql
|
|
|
+PreReq: postgresql
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -63,6 +89,11 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+%if "%{with_dlz}" == "yes"
|
|
|
+ %setup -q -T -D -a 10
|
|
|
+ %patch0 -p0
|
|
|
+ patch -p1 <dlz.patch
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
@@ -71,6 +102,26 @@ AutoReqProv: no
|
|
|
--prefix=%{l_prefix} \
|
|
|
--sysconfdir=%{l_prefix}/etc/bind \
|
|
|
--localstatedir=%{l_prefix}/var/bind \
|
|
|
+%if "%{with_dlz_mysql}" == "yes"
|
|
|
+ --with-dlz-mysql="%{l_prefix}" \
|
|
|
+%else
|
|
|
+ --with-dlz-mysql=no \
|
|
|
+%endif
|
|
|
+%if "%{with_dlz_postgres}" == "yes"
|
|
|
+ --with-dlz-postgres="%{l_prefix}" \
|
|
|
+%else
|
|
|
+ --with-dlz-postgres=no \
|
|
|
+%endif
|
|
|
+%if "%{with_dlz_filesystem}" == "yes"
|
|
|
+ --with-dlz-filesystem=yes \
|
|
|
+%else
|
|
|
+ --with-dlz-filesystem=no \
|
|
|
+%endif
|
|
|
+%if "%{with_dlz_stub}" == "yes"
|
|
|
+ --with-dlz-filesystem=yes \
|
|
|
+%else
|
|
|
+ --with-dlz-filesystem=no \
|
|
|
+%endif
|
|
|
--with-openssl=%{l_prefix} \
|
|
|
--with-libtool \
|
|
|
--without-libbind \
|