]> git.pld-linux.org Git - packages/tinc.git/commitdiff
- adapterized,
authorMateusz Korniak <matkor@pld-linux.org>
Tue, 3 Jan 2017 12:40:41 +0000 (13:40 +0100)
committerMateusz Korniak <matkor@pld-linux.org>
Tue, 3 Jan 2017 12:40:41 +0000 (13:40 +0100)
- removed /sbin/postshell, fix-info-dir
- added systemd init

tinc.spec

index edae8845ef3a2fd4c78f25367f5ec429d4c1a235..a39a4b841f3e866a87f782c3512d229b4c5101b4 100644 (file)
--- 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@.service
-
+%{systemdunitdir}/%{name}.service
+%{systemdunitdir}/%{name}@.service
This page took 0.112198 seconds and 4 git commands to generate.