mirror of
https://abf.rosa.ru/djam/miniupnpd.git
synced 2025-02-23 16:12:57 +00:00
Register service during installation
This commit is contained in:
parent
42992ae56f
commit
de6a9d190d
1 changed files with 10 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
Summary: The UPNP & NAT-PMP implementation
|
Summary: The UPNP & NAT-PMP implementation
|
||||||
Name: miniupnpd
|
Name: miniupnpd
|
||||||
Version: 1.8.20140523
|
Version: 1.8.20140523
|
||||||
Release: 2
|
Release: 3
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
URL: http://miniupnp.free.fr
|
URL: http://miniupnp.free.fr
|
||||||
|
@ -51,6 +51,15 @@ rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
||||||
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
||||||
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post %{name}.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun %{name}.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_sbindir}/miniupnpd
|
%{_sbindir}/miniupnpd
|
||||||
%{_unitdir}/miniupnpd*
|
%{_unitdir}/miniupnpd*
|
||||||
|
|
Loading…
Add table
Reference in a new issue