[packages/tinc] - adapterized, - removed /sbin/postshell, fix-info-dir - added systemd init
matkor
matkor at pld-linux.org
Tue Jan 3 13:42:24 CET 2017
commit c353bf2c667332bb59d6e47b4ab7a239c67d9fb3
Author: Mateusz Korniak <matkor at pld-linux.org>
Date: Tue Jan 3 13:40:41 2017 +0100
- adapterized,
- removed /sbin/postshell, fix-info-dir
- added systemd init
tinc.spec | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/tinc.spec b/tinc.spec
index edae884..a39a4b8 100644
--- a/tinc.spec
+++ b/tinc.spec
@@ -2,7 +2,7 @@ Summary: VPN Daemon
Summary(pl.UTF-8): Serwer VPN
Name: tinc
Version: 1.0.30
-Release: 0.1
+Release: 0.2
License: GPL v2+
Group: Networking/Daemons
Source0: http://www.tinc-vpn.org/packages/%{name}-%{version}.tar.gz
@@ -12,9 +12,13 @@ BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: lzo-devel
BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.647
BuildRequires: zlib-devel
+Requires(post,preun,postun): systemd-units >= 38
+Requires: systemd-units >= 0.38
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
%description
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling
and encryption to create a secure private network between hosts on the
@@ -56,11 +60,18 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%post
+%systemd_post %{name}.service
+## /sbin/postshell
+## -/usr/sbin/fix-info-dir -c %{_infodir}
+
+%preun
+%systemd_preun %{name}.service
-%postun -p /sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%postun
+%systemd_reload
+## /sbin/postshell
+## -/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
@@ -70,6 +81,5 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/tinc.info*
%{_mandir}/man5/tinc.conf.5*
%{_mandir}/man8/tincd.8*
-%{systemdunitdir}/tinc.service
-%{systemdunitdir}/tinc at .service
-
+%{systemdunitdir}/%{name}.service
+%{systemdunitdir}/%{name}@.service
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tinc.git/commitdiff/c353bf2c667332bb59d6e47b4ab7a239c67d9fb3
More information about the pld-cvs-commit
mailing list