]>
Commit | Line | Data |
---|---|---|
c6a74bfb | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
c6a74bfb MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = strongswan |
eabc5bf0 | 7 | version = 5.0.1 |
ea1f181e | 8 | release = 1 |
c6a74bfb | 9 | |
802ea3af MT |
10 | groups = Networking/VPN |
11 | url = http://www.strongswan.org/ | |
12 | license = GPL | |
9901f43c | 13 | summary = IPsec (IKEv1 + IKEv2) implementation for Linux. |
c6a74bfb | 14 | |
802ea3af | 15 | description |
f59c3c04 SS |
16 | StrongSwan is a complete IPsec and IKEv1 implementation for |
17 | Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2 | |
18 | protocol with Linux 2.6 kernels. It interoperates in both IKEv1 | |
c6a74bfb | 19 | and IKEv2 mode with most other IPsec-based VPN products. |
802ea3af | 20 | end |
c6a74bfb | 21 | |
802ea3af | 22 | source_dl = http://download.strongswan.org/ |
9901f43c | 23 | sources = %{thisapp}.tar.bz2 |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
27 | bison | |
28 | flex | |
29 | gmp-devel | |
30 | gperf | |
31 | libcap-devel | |
32 | libcurl-devel | |
33 | libgcrypt-devel | |
ba0b224a | 34 | libtool |
802ea3af | 35 | openldap-devel |
ba0b224a | 36 | openssl-devel |
802ea3af MT |
37 | perl |
38 | sqlite-devel | |
ba0b224a MT |
39 | systemd-devel |
40 | systemd-units | |
802ea3af MT |
41 | end |
42 | ||
43 | configure_options += \ | |
802ea3af MT |
44 | --enable-curl \ |
45 | --enable-ldap \ | |
ba0b224a | 46 | --enable-openssl \ |
802ea3af MT |
47 | --enable-sqlite \ |
48 | --enable-gcrypt \ | |
802ea3af | 49 | --with-capabilities=libcap |
926324f9 | 50 | |
f94138e7 MT |
51 | if "%{DISTRO_ARCH}" == "i686" |
52 | configure_options += --enable-padlock | |
53 | end | |
54 | ||
802ea3af MT |
55 | test |
56 | make check | |
57 | end | |
c6a74bfb | 58 | |
ba0b224a MT |
59 | install_cmds |
60 | # Make the shared libraries available to the runtime linker. | |
61 | # (RPATH issues, whatever...) | |
62 | cd %{BUILDROOT}%{libdir} | |
63 | for lib in libcharon.so.0 libhydra.so.0 libstrongswan.so.0; do | |
64 | ln -svf ipsec/${lib} . | |
65 | done | |
802ea3af MT |
66 | end |
67 | end | |
c6a74bfb | 68 | |
802ea3af MT |
69 | packages |
70 | package %{name} | |
ba0b224a MT |
71 | script postin |
72 | systemctl daemon-reload >/dev/null 2>&1 || : | |
73 | end | |
74 | ||
75 | script postup | |
76 | systemctl daemon-reload >/dev/null 2>&1 || : | |
77 | systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || : | |
78 | end | |
79 | ||
80 | script preun | |
81 | systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || : | |
82 | systemctl stop strongswan.service >/dev/null 2>&1 || : | |
83 | end | |
84 | ||
85 | script postun | |
86 | systemctl daemon-reload >/dev/null 2>&1 || : | |
87 | end | |
88 | end | |
1f9bc2f0 MT |
89 | |
90 | package %{name}-debuginfo | |
91 | template DEBUGINFO | |
92 | end | |
802ea3af | 93 | end |