Accepting request 545407 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/545407 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/knock?expand=0&rev=17
This commit is contained in:
commit
55884a5c18
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 23 13:46:18 UTC 2017 - rbrown@suse.com
|
||||||
|
|
||||||
|
- Replace references to /var/adm/fillup-templates with new
|
||||||
|
%_fillupdir macro (boo#1069468)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 1 14:49:38 UTC 2015 - p.drouand@gmail.com
|
Tue Dec 1 14:49:38 UTC 2015 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
17
knock.spec
17
knock.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package spec
|
# spec file for package knock
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,6 +15,12 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
|
%if ! %{defined _fillupdir}
|
||||||
|
%define _fillupdir /var/adm/fillup-templates
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1210
|
%if 0%{?suse_version} > 1210
|
||||||
%define with_systemd 1
|
%define with_systemd 1
|
||||||
%else
|
%else
|
||||||
@ -53,7 +59,6 @@ can be used to open up holes in a firewall for quick access.
|
|||||||
|
|
||||||
%package -n knockd
|
%package -n knockd
|
||||||
Summary: A port-knocking server
|
Summary: A port-knocking server
|
||||||
License: GPL-2.0+
|
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
@ -88,7 +93,7 @@ install -m 600 -D %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}d.conf
|
|||||||
install -D -m 644 %{SOURCE4} %{buildroot}/%{_unitdir}/%{name}d.service
|
install -D -m 644 %{SOURCE4} %{buildroot}/%{_unitdir}/%{name}d.service
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}d
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}d
|
||||||
%else
|
%else
|
||||||
install -m 644 -D %{SOURCE1} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}d
|
install -m 644 -D %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.%{name}d
|
||||||
install -m 755 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/%{name}d
|
install -m 755 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/%{name}d
|
||||||
ln -sf ../..%{_initddir}/%{name}d %{buildroot}%{_sbindir}/rc%{name}d
|
ln -sf ../..%{_initddir}/%{name}d %{buildroot}%{_sbindir}/rc%{name}d
|
||||||
%endif
|
%endif
|
||||||
@ -133,10 +138,10 @@ rm -rf %{buildroot}%{_datadir}/doc
|
|||||||
%{_unitdir}/%{name}d.service
|
%{_unitdir}/%{name}d.service
|
||||||
%else
|
%else
|
||||||
%{_sysconfdir}/init.d/%{name}d
|
%{_sysconfdir}/init.d/%{name}d
|
||||||
%config %{_localstatedir}/adm/fillup-templates/*
|
%config %{_fillupdir}/*
|
||||||
%endif
|
%endif
|
||||||
%{_sbindir}/rc%{name}d
|
%{_sbindir}/rc%{name}d
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}d.conf
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}d.conf
|
||||||
%{_mandir}/man?/%{name}d.*
|
%{_mandir}/man?/%{name}d.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user