]>
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 |
67d97036 | 7 | version = 5.5.0 |
cad653ae | 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 | |
5e7474d8 MT |
27 | autoconf |
28 | automake | |
802ea3af MT |
29 | bison |
30 | flex | |
31 | gmp-devel | |
32 | gperf | |
f8758f36 | 33 | ldns-devel |
802ea3af MT |
34 | libcap-devel |
35 | libcurl-devel | |
36 | libgcrypt-devel | |
ba0b224a | 37 | libtool |
802ea3af | 38 | openldap-devel |
ba0b224a | 39 | openssl-devel |
802ea3af MT |
40 | perl |
41 | sqlite-devel | |
549db1ae | 42 | systemd-devel >= 221-2 |
f8758f36 | 43 | unbound-devel |
802ea3af MT |
44 | end |
45 | ||
46 | configure_options += \ | |
549db1ae SS |
47 | --disable-static \ |
48 | --with-ipseclibdir=%{libdir}/ipsec \ | |
802ea3af MT |
49 | --enable-curl \ |
50 | --enable-ldap \ | |
ba0b224a | 51 | --enable-openssl \ |
802ea3af MT |
52 | --enable-sqlite \ |
53 | --enable-gcrypt \ | |
5e7474d8 MT |
54 | --enable-ccm \ |
55 | --enable-ctr \ | |
56 | --enable-gcm \ | |
b5563ff9 | 57 | --enable-unity \ |
5e7474d8 MT |
58 | --enable-xauth-eap \ |
59 | --enable-xauth-noauth \ | |
60 | --enable-eap-radius \ | |
61 | --enable-eap-tls \ | |
62 | --enable-eap-ttls \ | |
63 | --enable-eap-peap \ | |
64 | --enable-eap-mschapv2 \ | |
65 | --enable-eap-identity \ | |
66 | --with-capabilities=libcap \ | |
f8758f36 | 67 | --enable-unbound \ |
b5563ff9 | 68 | --enable-systemd |
926324f9 | 69 | |
f94138e7 MT |
70 | if "%{DISTRO_ARCH}" == "i686" |
71 | configure_options += --enable-padlock | |
72 | end | |
73 | ||
5e7474d8 MT |
74 | # The testsuite does not run through in the build system |
75 | # on ARM systems. | |
76 | #test | |
77 | # make check | |
78 | #end | |
549db1ae SS |
79 | |
80 | install_cmds | |
81 | # Drop unneeded files. | |
82 | rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so | |
83 | ||
84 | # Move libraries to libdir. | |
85 | mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir} | |
86 | end | |
802ea3af | 87 | end |
c6a74bfb | 88 | |
802ea3af MT |
89 | packages |
90 | package %{name} | |
ba0b224a MT |
91 | script postin |
92 | systemctl daemon-reload >/dev/null 2>&1 || : | |
93 | end | |
94 | ||
95 | script postup | |
96 | systemctl daemon-reload >/dev/null 2>&1 || : | |
97 | systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || : | |
98 | end | |
99 | ||
100 | script preun | |
101 | systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || : | |
102 | systemctl stop strongswan.service >/dev/null 2>&1 || : | |
103 | end | |
104 | ||
105 | script postun | |
106 | systemctl daemon-reload >/dev/null 2>&1 || : | |
107 | end | |
108 | end | |
1f9bc2f0 MT |
109 | |
110 | package %{name}-debuginfo | |
111 | template DEBUGINFO | |
112 | end | |
802ea3af | 113 | end |