Accepting request 260567 from home:Ledest:misc
fix bashisms in pre script OBS-URL: https://build.opensuse.org/request/show/260567 OBS-URL: https://build.opensuse.org/package/show/server:dns/unbound?expand=0&rev=13
This commit is contained in:
parent
3fc38d09a6
commit
12c9a7c5ce
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 10 00:45:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
- fix bashisms in pre script
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 5 13:32:55 UTC 2014 - darin@darins.net
|
Fri Sep 5 13:32:55 UTC 2014 - darin@darins.net
|
||||||
|
|
||||||
|
29
unbound.spec
29
unbound.spec
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without python
|
%bcond_without python
|
||||||
%bcond_without munin
|
%bcond_without munin
|
||||||
%bcond_without hardened_build
|
%bcond_without hardened_build
|
||||||
@ -49,16 +50,14 @@ Name: unbound
|
|||||||
Version: 1.4.22
|
Version: 1.4.22
|
||||||
Release: 0
|
Release: 0
|
||||||
#
|
#
|
||||||
Group: Productivity/Networking/DNS/Servers
|
|
||||||
License: BSD-3-Clause
|
|
||||||
#
|
#
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: openssl-devel
|
|
||||||
BuildRequires: libevent-devel
|
|
||||||
BuildRequires: ldns-devel >= %{ldns_version}
|
BuildRequires: ldns-devel >= %{ldns_version}
|
||||||
BuildRequires: python-devel
|
BuildRequires: libevent-devel
|
||||||
BuildRequires: libexpat-devel
|
BuildRequires: libexpat-devel
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: python-devel
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
@ -94,6 +93,9 @@ Source16: unbound-munin.README
|
|||||||
Source17: unbound.firewall
|
Source17: unbound.firewall
|
||||||
|
|
||||||
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Productivity/Networking/DNS/Servers
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
@ -107,10 +109,11 @@ as a server, but are linked into an application) are easily possible.
|
|||||||
|
|
||||||
%define libname libunbound2
|
%define libname libunbound2
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: %{name}-anchor >= %{version}
|
Requires: %{name}-anchor >= %{version}
|
||||||
#
|
#
|
||||||
Summary: Shared library from unbound
|
Summary: Shared library from unbound
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
@ -120,10 +123,11 @@ This package holds the shared library from unbound.
|
|||||||
%package munin
|
%package munin
|
||||||
Summary: Plugin for the munin / munin-node monitoring package
|
Summary: Plugin for the munin / munin-node monitoring package
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: munin-node
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: bc
|
Requires: bc
|
||||||
|
Requires: munin-node
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description munin
|
%description munin
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
@ -131,22 +135,24 @@ This package holds the plugin for the munin / munin-node monitoring package
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}
|
||||||
Requires: ldns-devel >= %{ldns_version}
|
Requires: ldns-devel >= %{ldns_version}
|
||||||
Requires: openssl-devel
|
Requires: openssl-devel
|
||||||
#
|
#
|
||||||
Summary: Development files for libunbound
|
Summary: Development files for libunbound
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
This package holds the development files to work with libunbound.
|
This package holds the development files to work with libunbound.
|
||||||
|
|
||||||
%package anchor
|
%package anchor
|
||||||
Group: Productivity/Networking/DNS/Servers
|
|
||||||
#
|
#
|
||||||
Requires: cron
|
Requires: cron
|
||||||
Summary: Unbound Anchor cert management tools
|
Summary: Unbound Anchor cert management tools
|
||||||
|
Group: Productivity/Networking/DNS/Servers
|
||||||
|
|
||||||
%description anchor
|
%description anchor
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
@ -157,6 +163,7 @@ This package contains the tools to manage the anchor certs.
|
|||||||
Summary: Python modules and extensions for unbound
|
Summary: Python modules and extensions for unbound
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
||||||
|
|
||||||
@ -265,8 +272,8 @@ echo ".so man8/unbound-control.8" > %{buildroot}/%{_mandir}/man8/unbound-control
|
|||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%pre anchor
|
%pre anchor
|
||||||
/usr/sbin/groupadd -r unbound &>/dev/null || :
|
/usr/sbin/groupadd -r unbound >/dev/null 2>&1 || :
|
||||||
/usr/sbin/useradd -g unbound -s /bin/false -r -c "unbound caching dns server" -d /var/lib/unbound unbound &>/dev/null || :
|
/usr/sbin/useradd -g unbound -s /bin/false -r -c "unbound caching dns server" -d /var/lib/unbound unbound >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%if %{with systemd}
|
%if %{with systemd}
|
||||||
|
Loading…
Reference in New Issue
Block a user