]>
Commit | Line | Data |
---|---|---|
b9582288 | 1 | Summary: IPsec-based VPN Solution for Linux |
c33c9e73 | 2 | Name: strongswan |
a4d763b5 | 3 | Version: 5.6.2 |
c33c9e73 | 4 | Release: 0.1 |
b9582288 | 5 | License: GPL v2 |
6 | Group: Networking/Daemons | |
c33c9e73 | 7 | Source0: http://download.strongswan.org/%{name}-%{version}.tar.bz2 |
a4d763b5 | 8 | # Source0-md5: 46aa3aa18fbc4bd528f9a0345ce79913 |
c33c9e73 | 9 | URL: http://www.strongswan.org/ |
b9582288 | 10 | BuildRequires: autoconf |
11 | BuildRequires: automake | |
4ede8ddf | 12 | BuildRequires: gmp-devel >= 4.1.5 |
7e1145ae JP |
13 | BuildRequires: libcap-devel |
14 | BuildRequires: libtool | |
15 | BuildRequires: pkgconfig | |
c33c9e73 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c33c9e73 | 17 | |
18 | %description | |
b9582288 | 19 | strongSwan is an OpenSource IPsec solution for the Linux operating |
20 | system. | |
c33c9e73 | 21 | |
c33c9e73 | 22 | %prep |
23 | %setup -q | |
c33c9e73 | 24 | |
25 | %build | |
eb2333b0 JP |
26 | %{__libtoolize} |
27 | %{__aclocal} | |
c33c9e73 | 28 | %{__autoconf} |
c33c9e73 | 29 | %{__automake} |
c33c9e73 | 30 | %configure \ |
7e1145ae JP |
31 | --with-capabilities=libcap \ |
32 | --disable-static | |
c33c9e73 | 33 | %{__make} |
34 | ||
c33c9e73 | 35 | %install |
36 | rm -rf $RPM_BUILD_ROOT | |
c33c9e73 | 37 | |
38 | %{__make} install \ | |
39 | DESTDIR=$RPM_BUILD_ROOT | |
40 | ||
6cfea920 MM |
41 | touch $RPM_BUILD_ROOT%{_sysconfdir}/ipsec.secrets |
42 | ||
4e87e601 | 43 | rm $RPM_BUILD_ROOT%{_libdir}/ipsec/lib{charon,strongswan,vici}.{la,so} |
eb2333b0 JP |
44 | rm $RPM_BUILD_ROOT%{_libdir}/ipsec/plugins/*.la |
45 | ||
c33c9e73 | 46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
6cfea920 MM |
49 | %post |
50 | %systemd_post %{name}.service | |
c33c9e73 | 51 | |
6cfea920 MM |
52 | %preun |
53 | %systemd_preun %{name}.service | |
c33c9e73 | 54 | |
6cfea920 MM |
55 | %postun |
56 | %systemd_reload | |
c33c9e73 | 57 | |
58 | %files | |
59 | %defattr(644,root,root,755) | |
6cfea920 MM |
60 | %doc AUTHORS ChangeLog NEWS README TODO |
61 | %dir %{_sysconfdir}/ipsec.d | |
62 | %dir %{_sysconfdir}/ipsec.d/crls | |
63 | %dir %{_sysconfdir}/ipsec.d/reqs | |
64 | %dir %{_sysconfdir}/ipsec.d/certs | |
65 | %dir %{_sysconfdir}/ipsec.d/acerts | |
66 | %dir %{_sysconfdir}/ipsec.d/aacerts | |
67 | %dir %{_sysconfdir}/ipsec.d/cacerts | |
68 | %dir %{_sysconfdir}/ipsec.d/ocspcerts | |
69 | %dir %attr(700,root,root) %{_sysconfdir}/ipsec.d/private | |
70 | %dir %{_sysconfdir}/strongswan.d | |
71 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.d/*.conf | |
72 | %dir %{_sysconfdir}/strongswan.d/charon | |
73 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.d/charon/*.conf | |
74 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipsec.conf | |
75 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipsec.secrets | |
76 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/strongswan.conf | |
0ac5dfde JP |
77 | %dir %{_sysconfdir}/swanctl |
78 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swanctl/swanctl.conf | |
6cfea920 MM |
79 | %{systemdunitdir}/%{name}.service |
80 | %attr(755,root,root) %{_bindir}/pki | |
a4d763b5 JP |
81 | %dir %{_libexecdir}/ipsec |
82 | %attr(755,root,root) %{_libexecdir}/ipsec/_copyright | |
83 | %attr(755,root,root) %{_libexecdir}/ipsec/_updown | |
84 | %attr(755,root,root) %{_libexecdir}/ipsec/charon | |
85 | %attr(755,root,root) %{_libexecdir}/ipsec/scepclient | |
86 | %attr(755,root,root) %{_libexecdir}/ipsec/starter | |
87 | %attr(755,root,root) %{_libexecdir}/ipsec/stroke | |
6cfea920 | 88 | %dir %{_libdir}/ipsec |
ee696984 JP |
89 | %attr(755,root,root) %{_libdir}/ipsec/libcharon.so.0* |
90 | %attr(755,root,root) %{_libdir}/ipsec/libstrongswan.so.0* | |
ee696984 | 91 | %attr(755,root,root) %{_libdir}/ipsec/libvici.so.0* |
6cfea920 MM |
92 | %dir %{_libdir}/ipsec/plugins |
93 | %attr(755,root,root) %{_libdir}/ipsec/plugins/libstrongswan-*.so | |
c33c9e73 | 94 | %attr(755,root,root) %{_sbindir}/ipsec |
0ac5dfde | 95 | %attr(755,root,root) %{_sbindir}/swanctl |
c33c9e73 | 96 | %{_datadir}/%{name} |
6cfea920 | 97 | %{_mandir}/man[158]/* |
c33c9e73 | 98 |