]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - strongswan/strongswan.nm
less: Update to version 481
[people/amarx/ipfire-3.x.git] / strongswan / strongswan.nm
index 469264e929de1eaa38e4fa6eb9735140eaa6400f..b386083db7e713a9bc5643816a4e94e054ddae3b 100644 (file)
@@ -4,25 +4,28 @@
 ###############################################################################
 
 name       = strongswan
-version    = 4.6.0
+version    = 5.3.2
 release    = 1
 
 groups     = Networking/VPN
 url        = http://www.strongswan.org/
 license    = GPL
-summary    = IPsec and IKEv1 implementation for Linux 2.4 and 2.6 kernels.
+summary    = IPsec (IKEv1 + IKEv2) implementation for Linux.
 
 description
-       StrongSwan is a complete IPsec and IKEv1 implementation for \
-       Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2 \
-       protocol with Linux 2.6 kernels. It interoperates in both IKEv1 \
+       StrongSwan is a complete IPsec and IKEv1 implementation for
+       Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2
+       protocol with Linux 2.6 kernels. It interoperates in both IKEv1
        and IKEv2 mode with most other IPsec-based VPN products.
 end
 
 source_dl  = http://download.strongswan.org/
+sources    = %{thisapp}.tar.bz2
 
 build
        requires
+               autoconf
+               automake
                bison
                flex
                gmp-devel
@@ -30,37 +33,69 @@ build
                libcap-devel
                libcurl-devel
                libgcrypt-devel
+               libtool
                openldap-devel
+               openssl-devel
                perl
                sqlite-devel
+               systemd-devel
+               systemd-units
        end
 
        configure_options += \
-               --sysconfdir=/etc \
-               --libexecdir=/usr/lib \
-               --with-user=nobody \
-               --with-group=nobody \
                --enable-curl \
                --enable-ldap \
+               --enable-openssl \
                --enable-sqlite \
                --enable-gcrypt \
-               --enable-padlock \
-               --enable-cisco-quirks \
-               --with-capabilities=libcap
+               --enable-ccm \
+               --enable-ctr \
+               --enable-gcm \
+               --enable-xauth-eap \
+               --enable-xauth-noauth \
+               --enable-eap-radius \
+               --enable-eap-tls \
+               --enable-eap-ttls \
+               --enable-eap-peap \
+               --enable-eap-mschapv2 \
+               --enable-eap-identity \
+               --with-capabilities=libcap \
+               --enable-swanctl \
+               --enable-kernel-libipsec
 
-       test
-               make check
+       if "%{DISTRO_ARCH}" == "i686"
+               configure_options += --enable-padlock
        end
-end
 
-# Plugins and many other files are installed in /usr/lib/ipsec
-# and loaded by using a RPATH.
-quality-agent
-       whitelist_rpath
-               /usr/lib/ipsec
-       end
+       # The testsuite does not run through in the build system
+       # on ARM systems.
+       #test
+       #       make check
+       #end
 end
 
 packages
        package %{name}
+               script postin
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+                       systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
+               end
+
+               script preun
+                       systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
+                       systemctl stop strongswan.service >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end