[packages/strongswan] Up to 5.3.2, rel 0.1

mmazur mmazur at pld-linux.org
Thu Jul 2 11:15:23 CEST 2015


commit 6cfea9201d101f69b3e69b8f9268e35c29da5979
Author: Mariusz Mazur <mmazur at axeos.com>
Date:   Thu Jul 2 11:08:13 2015 +0200

    Up to 5.3.2, rel 0.1
    
    This package was abandoned for 4 years, so I'm making a clean start. It
    builds correctly and works, though the build process is too inconsistent.

 strongswan.spec | 138 ++++++++++++++++++--------------------------------------
 1 file changed, 43 insertions(+), 95 deletions(-)
---
diff --git a/strongswan.spec b/strongswan.spec
index 52d4b0f..0833afd 100644
--- a/strongswan.spec
+++ b/strongswan.spec
@@ -1,67 +1,22 @@
-# TODO:
-#	- init script
-#	- kill skip_post_check_so
-#	- enable more configure options
 Summary:	IPsec-based VPN Solution for Linux
 Name:		strongswan
-Version:	4.5.2
+Version:	5.3.2
 Release:	0.1
 License:	GPL v2
 Group:		Networking/Daemons
 Source0:	http://download.strongswan.org/%{name}-%{version}.tar.bz2
-# Source0-md5:	ac33b8f849a274127f84df0838cae953
+# Source0-md5:	fab014be1477ef4ebf9a765e10f8802c
 URL:		http://www.strongswan.org/
-%if %{with initscript}
-BuildRequires:	rpmbuild(macros) >= 1.228
-Requires(post,preun):	/sbin/chkconfig
-Requires:	rc-scripts
-%endif
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	gmp-devel >= 4.1.5
+BuildRequires:  libcap-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define         skip_post_check_so	libcharon.so.0.0.0 libhydra.so.0.0.0
 
 %description
 strongSwan is an OpenSource IPsec solution for the Linux operating
 system.
 
-%package libs
-Summary:	-
-Summary(pl.UTF-8):	-
-Group:		Libraries
-
-%description libs
-
-%description libs -l pl.UTF-8
-
-%package devel
-Summary:	Header files for ... library
-Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki ...
-Group:		Development/Libraries
-# if base package contains shared library for which these headers are
-#Requires:	%{name} = %{version}-%{release}
-# if -libs package contains shared library for which these headers are
-#Requires:	%{name}-libs = %{version}-%{release}
-
-%description devel
-Header files for ... library.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki ....
-
-%package static
-Summary:	Static ... library
-Summary(pl.UTF-8):	Statyczna biblioteka ...
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description static
-Static ... library.
-
-%description static -l pl.UTF-8
-Statyczna biblioteka ....
-
 %prep
 %setup -q
 
@@ -69,69 +24,62 @@ Statyczna biblioteka ....
 %{__autoconf}
 %{__automake}
 %configure \
-	--enable-cisco-quirks
+        --with-capabilities=libcap \
+        --disable-static
 %{__make}
 
-#%{__make} \
-#	CFLAGS="%{rpmcflags}" \
-#	LDFLAGS="%{rpmldflags}"
-
 %install
 rm -rf $RPM_BUILD_ROOT
-%if %{with initscript}
-install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
-%endif
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+touch $RPM_BUILD_ROOT%{_sysconfdir}/ipsec.secrets
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%postun
-if [ "$1" = "0" ]; then
-	%userremove %{name}
-	%groupremove %{name}
-fi
+%post
+%systemd_post %{name}.service
 
-%if %{with ldconfig}
-%post	-p /sbin/ldconfig
-%postun	-p /sbin/ldconfig
-%endif
+%preun
+%systemd_preun %{name}.service
 
-%if %{with initscript}
-%post init
-/sbin/chkconfig --add %{name}
-%service %{name} restart
-
-%preun init
-if [ "$1" = "0" ]; then
-	%service -q %{name} stop
-	/sbin/chkconfig --del %{name}
-fi
-%endif
+%postun
+%systemd_reload
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README TODO
-%{_sysconfdir}/ipsec.conf
-%{_sysconfdir}/strongswan.conf
-%attr(755,root,root) %{_libdir}/ipsec
-%attr(755,root,root) %{_libdir}/*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/*.so.0
+%doc AUTHORS ChangeLog NEWS README TODO
+%dir %{_sysconfdir}/ipsec.d
+%dir %{_sysconfdir}/ipsec.d/crls
+%dir %{_sysconfdir}/ipsec.d/reqs
+%dir %{_sysconfdir}/ipsec.d/certs
+%dir %{_sysconfdir}/ipsec.d/acerts
+%dir %{_sysconfdir}/ipsec.d/aacerts
+%dir %{_sysconfdir}/ipsec.d/cacerts
+%dir %{_sysconfdir}/ipsec.d/ocspcerts
+%dir %attr(700,root,root) %{_sysconfdir}/ipsec.d/private
+%dir %{_sysconfdir}/strongswan.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.d/*.conf
+%dir %{_sysconfdir}/strongswan.d/charon
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.d/charon/*.conf
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipsec.conf
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipsec.secrets
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.conf
+%{systemdunitdir}/%{name}.service
+%attr(755,root,root) %{_bindir}/pki
+%dir %{_libdir}/ipsec
+%attr(755,root,root) %{_libdir}/ipsec/_copyright
+%attr(755,root,root) %{_libdir}/ipsec/_updown
+%attr(755,root,root) %{_libdir}/ipsec/charon
+%attr(755,root,root) %{_libdir}/ipsec/scepclient
+%attr(755,root,root) %{_libdir}/ipsec/starter
+%attr(755,root,root) %{_libdir}/ipsec/stroke
+%attr(755,root,root) %{_libdir}/ipsec/*.so*
+%dir %{_libdir}/ipsec/plugins
+%attr(755,root,root) %{_libdir}/ipsec/plugins/libstrongswan-*.so
 %attr(755,root,root) %{_sbindir}/ipsec
-%{_mandir}/man[358]/*
-
-%if 0
-# if _sysconfdir != /etc:
-#%%dir %{_sysconfdir}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-%attr(755,root,root) %{_bindir}/*
 %{_datadir}/%{name}
-%endif
+%{_mandir}/man[158]/*
 
-# initscript and its config
-%if %{with initscript}
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
-%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/strongswan.git/commitdiff/6cfea9201d101f69b3e69b8f9268e35c29da5979



More information about the pld-cvs-commit mailing list