| 
      
      
      From: <abe...@us...> - 2016-11-12 01:15:19
      
     | 
| Revision: 7948
          http://sourceforge.net/p/astlinux/code/7948
Author:   abelbeck
Date:     2016-11-12 01:15:17 +0000 (Sat, 12 Nov 2016)
Log Message:
-----------
strongswan, new package, disabled and no configuration yet, for testing. Adds 741 kB compressed 2292 kB uncompressed to image
Modified Paths:
--------------
    branches/1.0/astlinux-ast11.config
    branches/1.0/astlinux-ast13.config
    branches/1.0/initrd.config
    branches/1.0/package/Config.in
    branches/1.0/runnix-iso.config
    branches/1.0/runnix.config
    branches/1.0/x86_64-configs/astlinux-ast11.config
    branches/1.0/x86_64-configs/astlinux-ast13.config
    branches/1.0/x86_64-configs/initrd.config
Added Paths:
-----------
    branches/1.0/package/strongswan/
    branches/1.0/package/strongswan/Config.in
    branches/1.0/package/strongswan/ipsec.init
    branches/1.0/package/strongswan/strongswan.mk
Modified: branches/1.0/astlinux-ast11.config
===================================================================
--- branches/1.0/astlinux-ast11.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/astlinux-ast11.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:06 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:27 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 # BR2_arm is not set
@@ -790,6 +790,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 BR2_PACKAGE_STUNNEL=y
 BR2_PACKAGE_TCPDUMP=y
 # BR2_PACKAGE_TCPDUMP_SMB is not set
Modified: branches/1.0/astlinux-ast13.config
===================================================================
--- branches/1.0/astlinux-ast13.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/astlinux-ast13.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:08 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:28 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 # BR2_arm is not set
@@ -790,6 +790,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 BR2_PACKAGE_STUNNEL=y
 BR2_PACKAGE_TCPDUMP=y
 # BR2_PACKAGE_TCPDUMP_SMB is not set
Modified: branches/1.0/initrd.config
===================================================================
--- branches/1.0/initrd.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/initrd.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:13 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:29 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 # BR2_arm is not set
@@ -637,6 +637,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 # BR2_PACKAGE_STUNNEL is not set
 # BR2_PACKAGE_TCPDUMP is not set
 # BR2_PACKAGE_TCPREPLAY is not set
Modified: branches/1.0/package/Config.in
===================================================================
--- branches/1.0/package/Config.in	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/package/Config.in	2016-11-12 01:15:17 UTC (rev 7948)
@@ -534,6 +534,7 @@
 source "package/socat/Config.in"
 source "package/spawn-fcgi/Config.in"
 source "package/squid/Config.in"
+source "package/strongswan/Config.in"
 source "package/stunnel/Config.in"
 source "package/tcpdump/Config.in"
 source "package/tcpreplay/Config.in"
Added: branches/1.0/package/strongswan/Config.in
===================================================================
--- branches/1.0/package/strongswan/Config.in	                        (rev 0)
+++ branches/1.0/package/strongswan/Config.in	2016-11-12 01:15:17 UTC (rev 7948)
@@ -0,0 +1,51 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+	bool "strongswan"
+	select BR2_PACKAGE_OPENSSL
+	help
+	  strongSwan is an OpenSource IPsec implementation for the
+	  Linux operating system. It is based on the discontinued
+	  FreeS/WAN project and the X.509 patch.
+
+	  The focus is on:
+	     - simplicity of configuration
+	     - strong encryption and authentication methods
+	     - powerful IPsec policies supporting large and complex VPN networks
+
+	  strongSwan provide many plugins. Only a few are presented here.
+
+	  https://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+
+config BR2_PACKAGE_STRONGSWAN_AF_ALG
+	bool "Enable AF_ALG crypto interface to Linux Crypto API"
+
+config BR2_PACKAGE_STRONGSWAN_CHARON
+	bool "Enable the IKEv1/IKEv2 keying daemon charon"
+	default y
+
+if BR2_PACKAGE_STRONGSWAN_CHARON
+
+config BR2_PACKAGE_STRONGSWAN_EAP
+	bool "Enable EAP protocols"
+	default y
+	help
+	  Enable various EAP protocols:
+	    - mschapv2
+	    - tls
+	    - ttls
+	    - peap
+	    - identity
+	    - md5
+
+config BR2_PACKAGE_STRONGSWAN_SQLITE
+	bool "Enable SQLite database support"
+	depends on BR2_PACKAGE_SQLITE
+
+config BR2_PACKAGE_STRONGSWAN_VICI
+	bool "Enable vici/swanctl"
+	default y
+
+endif
+
+endif
Added: branches/1.0/package/strongswan/ipsec.init
===================================================================
--- branches/1.0/package/strongswan/ipsec.init	                        (rev 0)
+++ branches/1.0/package/strongswan/ipsec.init	2016-11-12 01:15:17 UTC (rev 7948)
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+. /etc/rc.conf
+
+init ()
+{
+  :
+}
+
+start ()
+{
+  :
+}
+
+stop ()
+{
+  :
+}
+
+case $1 in
+
+init)
+  init
+  start
+  ;;
+
+start)
+  start
+  ;;
+
+stop)
+  stop
+  ;;
+
+restart)
+  stop
+  sleep 2
+  start
+  ;;
+
+*)
+  echo "Usage: start|stop|restart" >&2
+  exit 1
+  ;;
+
+esac
Property changes on: branches/1.0/package/strongswan/ipsec.init
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: branches/1.0/package/strongswan/strongswan.mk
===================================================================
--- branches/1.0/package/strongswan/strongswan.mk	                        (rev 0)
+++ branches/1.0/package/strongswan/strongswan.mk	2016-11-12 01:15:17 UTC (rev 7948)
@@ -0,0 +1,76 @@
+################################################################################
+#
+# strongswan
+#
+################################################################################
+
+STRONGSWAN_VERSION = 5.5.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = https://download.strongswan.org
+STRONGSWAN_DEPENDENCIES = openssl host-pkg-config
+STRONGSWAN_CONF_OPT += \
+	--without-lib-prefix \
+	--enable-led=no \
+	--enable-pkcs11=no \
+	--enable-kernel-netlink=yes \
+	--enable-socket-default=yes \
+	--enable-openssl=yes \
+	--enable-gcrypt=no \
+	--enable-gmp=no \
+	--enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
+	--enable-curl=no \
+	--enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
+	--enable-tnccs-11=no \
+	--enable-tnccs-20=no \
+	--enable-tnccs-dynamic=no \
+	--enable-xauth-generic=yes \
+	--enable-xauth-eap=yes \
+	--enable-unity=no \
+	--enable-stroke=no \
+	--enable-sqlite=$(if $(BR2_PACKAGE_STRONGSWAN_SQLITE),yes,no) \
+	--enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQLITE),yes,no) \
+	--enable-attr-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQLITE),yes,no) \
+	--enable-pki=no \
+	--enable-scepclient=no \
+	--enable-scripts=no \
+	--enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
+	--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
+	--enable-cmd=yes
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
+STRONGSWAN_CONF_OPT += \
+	--enable-eap-identity \
+	--enable-eap-md5 \
+	--enable-eap-mschapv2 \
+	--enable-eap-tls \
+	--enable-eap-ttls \
+	--enable-eap-peap
+endif
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SQLITE),y)
+STRONGSWAN_DEPENDENCIES += \
+	$(if $(BR2_PACKAGE_SQLITE),sqlite)
+endif
+
+define STRONGSWAN_POST_INSTALL
+	$(INSTALL) -m 0755 -D package/strongswan/ipsec.init $(TARGET_DIR)/etc/init.d/ipsec
+	ln -sf ../../init.d/ipsec $(TARGET_DIR)/etc/runlevels/default/S31ipsec
+	ln -sf ../../init.d/ipsec $(TARGET_DIR)/etc/runlevels/default/K20ipsec
+endef
+
+STRONGSWAN_POST_INSTALL_TARGET_HOOKS = STRONGSWAN_POST_INSTALL
+
+STRONGSWAN_UNINSTALL_STAGING_OPT = --version
+
+define STRONGSWAN_UNINSTALL_TARGET_CMDS
+	rm -rf $(TARGET_DIR)/usr/lib/ipsec
+	rm -rf $(TARGET_DIR)/usr/libexec/ipsec
+	rm -rf $(TARGET_DIR)/etc/strongswan.d
+	rm -rf $(TARGET_DIR)/usr/share/strongswan
+	rm -f $(TARGET_DIR)/etc/strongswan.conf
+	rm -f $(TARGET_DIR)/etc/init.d/ipsec
+	rm -f $(TARGET_DIR)/etc/runlevels/default/S31ipsec
+	rm -f $(TARGET_DIR)/etc/runlevels/default/K20ipsec
+endef
+
+$(eval $(call AUTOTARGETS,package,strongswan))
Modified: branches/1.0/runnix-iso.config
===================================================================
--- branches/1.0/runnix-iso.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/runnix-iso.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:16 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:32 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 # BR2_arm is not set
@@ -673,6 +673,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 # BR2_PACKAGE_STUNNEL is not set
 # BR2_PACKAGE_TCPDUMP is not set
 # BR2_PACKAGE_TCPREPLAY is not set
Modified: branches/1.0/runnix.config
===================================================================
--- branches/1.0/runnix.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/runnix.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:15 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:31 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 # BR2_arm is not set
@@ -674,6 +674,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 # BR2_PACKAGE_STUNNEL is not set
 # BR2_PACKAGE_TCPDUMP is not set
 # BR2_PACKAGE_TCPREPLAY is not set
Modified: branches/1.0/x86_64-configs/astlinux-ast11.config
===================================================================
--- branches/1.0/x86_64-configs/astlinux-ast11.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/x86_64-configs/astlinux-ast11.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:19 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:33 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 BR2_ARCH_IS_64=y
@@ -771,6 +771,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 BR2_PACKAGE_STUNNEL=y
 BR2_PACKAGE_TCPDUMP=y
 # BR2_PACKAGE_TCPDUMP_SMB is not set
Modified: branches/1.0/x86_64-configs/astlinux-ast13.config
===================================================================
--- branches/1.0/x86_64-configs/astlinux-ast13.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/x86_64-configs/astlinux-ast13.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:27 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:35 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 BR2_ARCH_IS_64=y
@@ -771,6 +771,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 BR2_PACKAGE_STUNNEL=y
 BR2_PACKAGE_TCPDUMP=y
 # BR2_PACKAGE_TCPDUMP_SMB is not set
Modified: branches/1.0/x86_64-configs/initrd.config
===================================================================
--- branches/1.0/x86_64-configs/initrd.config	2016-11-11 18:22:40 UTC (rev 7947)
+++ branches/1.0/x86_64-configs/initrd.config	2016-11-12 01:15:17 UTC (rev 7948)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Buildroot astlinux-1.x-svn7910-dirty Configuration
-# Thu Nov  3 08:17:28 2016
+# Buildroot astlinux-1.x-svn7947-dirty Configuration
+# Fri Nov 11 18:59:36 2016
 #
 BR2_HAVE_DOT_CONFIG=y
 BR2_ARCH_IS_64=y
@@ -618,6 +618,7 @@
 # BR2_PACKAGE_SOCAT is not set
 # BR2_PACKAGE_SPAWN_FCGI is not set
 # BR2_PACKAGE_SQUID is not set
+# BR2_PACKAGE_STRONGSWAN is not set
 # BR2_PACKAGE_STUNNEL is not set
 # BR2_PACKAGE_TCPDUMP is not set
 # BR2_PACKAGE_TCPREPLAY is not set
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |