]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - 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
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 6name = strongswan
549db1ae 7version = 5.3.3
b5563ff9 8release = 2
c6a74bfb 9
802ea3af
MT
10groups = Networking/VPN
11url = http://www.strongswan.org/
12license = GPL
9901f43c 13summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
c6a74bfb 14
802ea3af 15description
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 20end
c6a74bfb 21
802ea3af 22source_dl = http://download.strongswan.org/
9901f43c 23sources = %{thisapp}.tar.bz2
802ea3af
MT
24
25build
26 requires
5e7474d8
MT
27 autoconf
28 automake
802ea3af
MT
29 bison
30 flex
31 gmp-devel
32 gperf
33 libcap-devel
34 libcurl-devel
35 libgcrypt-devel
ba0b224a 36 libtool
802ea3af 37 openldap-devel
ba0b224a 38 openssl-devel
802ea3af
MT
39 perl
40 sqlite-devel
549db1ae 41 systemd-devel >= 221-2
802ea3af
MT
42 end
43
44 configure_options += \
549db1ae
SS
45 --disable-static \
46 --with-ipseclibdir=%{libdir}/ipsec \
802ea3af
MT
47 --enable-curl \
48 --enable-ldap \
ba0b224a 49 --enable-openssl \
802ea3af
MT
50 --enable-sqlite \
51 --enable-gcrypt \
5e7474d8
MT
52 --enable-ccm \
53 --enable-ctr \
54 --enable-gcm \
b5563ff9 55 --enable-unity \
5e7474d8
MT
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 \
b5563ff9 66 --enable-systemd
926324f9 67
f94138e7
MT
68 if "%{DISTRO_ARCH}" == "i686"
69 configure_options += --enable-padlock
70 end
71
5e7474d8
MT
72 # The testsuite does not run through in the build system
73 # on ARM systems.
74 #test
75 # make check
76 #end
549db1ae
SS
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
802ea3af 85end
c6a74bfb 86
802ea3af
MT
87packages
88 package %{name}
ba0b224a
MT
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 || :
549db1ae 96 systemctl reload-or-try-restart strongswan-swanctl.service >/dev/null 2>&1 || :
ba0b224a
MT
97 end
98
99 script preun
100 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
549db1ae 101 systemctl disable --no-reload strongswan-swanctl.service >/dev/null 2>&1 || :
ba0b224a 102 systemctl stop strongswan.service >/dev/null 2>&1 || :
549db1ae 103 systemctl stop strongswan-swanctl.service >/dev/null 2>&1 || :
ba0b224a
MT
104 end
105
106 script postun
107 systemctl daemon-reload >/dev/null 2>&1 || :
108 end
109 end
1f9bc2f0
MT
110
111 package %{name}-debuginfo
112 template DEBUGINFO
113 end
802ea3af 114end