]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame_incremental - strongswan/strongswan.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/amarx/ipfire-3.x.git] / strongswan / strongswan.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = strongswan
7version = 5.3.3
8release = 2
9
10groups = Networking/VPN
11url = http://www.strongswan.org/
12license = GPL
13summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
14
15description
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.
20end
21
22source_dl = http://download.strongswan.org/
23sources = %{thisapp}.tar.bz2
24
25build
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
85end
86
87packages
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
114end