forked from pool/pdns-common
osc copypac from project:server:dns:powerdns package:pdns-common revision:1
OBS-URL: https://build.opensuse.org/package/show/server:dns/pdns-common?expand=0&rev=1
This commit is contained in:
commit
04ee000798
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
5
pdns-common.changes
Normal file
5
pdns-common.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 11 22:51:10 UTC 2016 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- initial package
|
||||||
|
|
88
pdns-common.spec
Normal file
88
pdns-common.spec
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#
|
||||||
|
# spec file for package pdns-common
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
%if 0%{?suse_version} > 1230
|
||||||
|
%bcond_without systemd
|
||||||
|
%define _localstatedir /run/pdns
|
||||||
|
%else
|
||||||
|
%bcond_with systemd
|
||||||
|
%define _localstatedir /var/run/pdns
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define home %{_var}/lib/pdns
|
||||||
|
|
||||||
|
%{!?_tmpfilesdir: %global _tmpfilesdir /usr/lib/tmpfiles.d }
|
||||||
|
|
||||||
|
Name: pdns-common
|
||||||
|
Version: 4.0
|
||||||
|
Release: 0
|
||||||
|
License: MIT
|
||||||
|
Summary: Shared directories between PowerDNS Packages
|
||||||
|
Url: https://www.powerdns.com/
|
||||||
|
Group: Productivity/Networking/DNS/Servers
|
||||||
|
Source: pdns-common.tmpfiles.d
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with systemd}
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
%{?systemd_requires}
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
PreReq: pwdutils
|
||||||
|
%else
|
||||||
|
PreReq: shadow-utils
|
||||||
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
Shared directories between PowerDNS Packages
|
||||||
|
|
||||||
|
%prep
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dd -m 0755 %{buildroot}%{home}
|
||||||
|
install -Dd -m 0755 %{buildroot}%{_sysconfdir}/pdns
|
||||||
|
|
||||||
|
%if %{with systemd}
|
||||||
|
install -D -m 0644 %{SOURCE0} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%else
|
||||||
|
install -D -d -m 0750 %{buildroot}%{_localstatedir}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
/usr/sbin/groupadd -r pdns >/dev/null 2>&1 || :
|
||||||
|
/usr/sbin/useradd -g pdns -s /bin/false -r -c "PowerDNS" -d %{home} pdns >/dev/null 2>&1 || :
|
||||||
|
|
||||||
|
%if %{with systemd}
|
||||||
|
%post
|
||||||
|
systemd-tmpfiles --create /usr/lib/tmpfiles.d/%{name}.conf ||:
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%if %{with systemd}
|
||||||
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%dir %attr(750,pdns,pdns) %ghost %{_localstatedir}/
|
||||||
|
%else
|
||||||
|
%dir %attr(750,pdns,pdns) %{_localstatedir}/
|
||||||
|
%endif
|
||||||
|
%dir %attr(750,root,pdns) %{_sysconfdir}/pdns/
|
||||||
|
%dir %attr(750,pdns,pdns) %{home}/
|
||||||
|
|
||||||
|
%changelog
|
2
pdns-common.tmpfiles.d
Normal file
2
pdns-common.tmpfiles.d
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Type Path Mode UID GID Age Argument
|
||||||
|
d /run/pdns 0750 pdns pdns - -
|
Loading…
Reference in New Issue
Block a user