]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = strongswan | |
7 | version = 5.3.3 | |
8 | release = 2 | |
9 | ||
10 | groups = Networking/VPN | |
11 | url = http://www.strongswan.org/ | |
12 | license = GPL | |
13 | summary = IPsec (IKEv1 + IKEv2) implementation for Linux. | |
14 | ||
15 | description | |
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 | |
19 | and IKEv2 mode with most other IPsec-based VPN products. | |
20 | end | |
21 | ||
22 | source_dl = http://download.strongswan.org/ | |
23 | sources = %{thisapp}.tar.bz2 | |
24 | ||
25 | build | |
26 | requires | |
27 | autoconf | |
28 | automake | |
29 | bison | |
30 | flex | |
31 | gmp-devel | |
32 | gperf | |
33 | libcap-devel | |
34 | libcurl-devel | |
35 | libgcrypt-devel | |
36 | libtool | |
37 | openldap-devel | |
38 | openssl-devel | |
39 | perl | |
40 | sqlite-devel | |
41 | systemd-devel >= 221-2 | |
42 | end | |
43 | ||
44 | configure_options += \ | |
45 | --disable-static \ | |
46 | --with-ipseclibdir=%{libdir}/ipsec \ | |
47 | --enable-curl \ | |
48 | --enable-ldap \ | |
49 | --enable-openssl \ | |
50 | --enable-sqlite \ | |
51 | --enable-gcrypt \ | |
52 | --enable-ccm \ | |
53 | --enable-ctr \ | |
54 | --enable-gcm \ | |
55 | --enable-unity \ | |
56 | --enable-xauth-eap \ | |
57 | --enable-xauth-noauth \ | |
58 | --enable-eap-radius \ | |
59 | --enable-eap-tls \ | |
60 | --enable-eap-ttls \ | |
61 | --enable-eap-peap \ | |
62 | --enable-eap-mschapv2 \ | |
63 | --enable-eap-identity \ | |
64 | --with-capabilities=libcap \ | |
65 | --enable-swanctl \ | |
66 | --enable-systemd | |
67 | ||
68 | if "%{DISTRO_ARCH}" == "i686" | |
69 | configure_options += --enable-padlock | |
70 | end | |
71 | ||
72 | # The testsuite does not run through in the build system | |
73 | # on ARM systems. | |
74 | #test | |
75 | # make check | |
76 | #end | |
77 | ||
78 | install_cmds | |
79 | # Drop unneeded files. | |
80 | rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so | |
81 | ||
82 | # Move libraries to libdir. | |
83 | mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir} | |
84 | end | |
85 | end | |
86 | ||
87 | packages | |
88 | package %{name} | |
89 | script postin | |
90 | systemctl daemon-reload >/dev/null 2>&1 || : | |
91 | end | |
92 | ||
93 | script postup | |
94 | systemctl daemon-reload >/dev/null 2>&1 || : | |
95 | systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || : | |
96 | systemctl reload-or-try-restart strongswan-swanctl.service >/dev/null 2>&1 || : | |
97 | end | |
98 | ||
99 | script preun | |
100 | systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || : | |
101 | systemctl disable --no-reload strongswan-swanctl.service >/dev/null 2>&1 || : | |
102 | systemctl stop strongswan.service >/dev/null 2>&1 || : | |
103 | systemctl stop strongswan-swanctl.service >/dev/null 2>&1 || : | |
104 | end | |
105 | ||
106 | script postun | |
107 | systemctl daemon-reload >/dev/null 2>&1 || : | |
108 | end | |
109 | end | |
110 | ||
111 | package %{name}-debuginfo | |
112 | template DEBUGINFO | |
113 | end | |
114 | end |