Browse Source

unbound: 1.4.4-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@974 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 15 years ago
parent
commit
bcd9646b18
1 changed files with 20 additions and 3 deletions
  1. 20 3
      u/unbound/unbound-vl.spec

+ 20 - 3
u/unbound/unbound-vl.spec

@@ -1,3 +1,5 @@
+%{?!with_munin:      %global with_munin      0}
+
 # not ready yet
 %{?!with_python:      %global with_python      0}
 
@@ -8,10 +10,10 @@
 
 Summary: Validating, recursive, and caching DNS(SEC) resolver
 Name: unbound
-Version: 1.4.3
-Release: 1%{?dist}
+Version: 1.4.4
+Release: 1%{?_dist_release}
 License: BSD
-Url: http://www.nlnetlabs.nl/unbound/
+Url: http://www.unbound.net/
 Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
 Source1: unbound.init
 Source2: unbound.conf
@@ -37,6 +39,10 @@ Requires(postun): initscripts
 Requires: ldns >= 1.5.0
 Requires(pre): shadow-utils
 
+Distribution: Vine Linux
+Vendor: Project Vine
+Packager: iwaim
+
 %description
 Unbound is a validating, recursive, and caching DNS(SEC) resolver.
 
@@ -48,6 +54,7 @@ Unbound is designed as a set of modular components, so that also
 DNSSEC (secure DNS) validation and stub-resolvers (that do not run
 as a server, but are linked into an application) are easily possible.
 
+%if %{with_munin}
 %package munin
 Summary: Plugin for the munin / munin-node monitoring package
 Group:     System Environment/Daemons
@@ -56,6 +63,7 @@ Requires: %{name} = %{version}-%{release}, bc
 
 %description munin
 Plugin for the munin / munin-node monitoring package
+%endif
 
 %package devel
 Summary: Development package that includes the unbound header files
@@ -106,6 +114,7 @@ rm -rf %{buildroot}
 install -d 0755 %{buildroot}%{_initrddir}
 install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/unbound
 install -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/unbound
+%if %{with_munin}
 # Install munin plugin and its softlinks
 install -d 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
 install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/unbound
@@ -114,6 +123,7 @@ install -m 0755 contrib/unbound_munin_ %{buildroot}%{_datadir}/munin/plugins/unb
 for plugin in unbound_munin_hits unbound_munin_queue unbound_munin_memory unbound_munin_by_type unbound_munin_by_class unbound_munin_by_opcode unbound_munin_by_rcode unbound_munin_by_flags unbound_munin_histogram; do
     ln -s unbound %{buildroot}%{_datadir}/munin/plugins/$plugin
 done 
+%endif
 
 # install DLV key
 install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/unbound/
@@ -145,10 +155,12 @@ rm -rf ${RPM_BUILD_ROOT}
 %{python_sitelib}/*
 %endif
 
+%if %{with_munin}
 %files munin
 %defattr(-,root,root,-)
 %config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
 %{_datadir}/munin/plugins/unbound*
+%endif
 
 %files devel
 %defattr(-,root,root,-)
@@ -192,6 +204,11 @@ fi
 %postun libs -p /sbin/ldconfig
 
 %changelog
+* Wed May  5 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.4-1
+- initial build for Vine Linux: based Fedora 1.4.3-1.fc14
+ - update to 1.4.4
+ - build without munin
+
 * Thu Mar 11 2010 Paul Wouters <paul@xelerance.com> - 1.4.3-1
 - Update to 1.4.3 that fixes 64bit crasher