diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/strongswan |
Initial import
Diffstat (limited to 'package/strongswan')
-rw-r--r-- | package/strongswan/Config.in | 10 | ||||
-rw-r--r-- | package/strongswan/Makefile | 28 | ||||
-rw-r--r-- | package/strongswan/files/strongswan.init | 26 | ||||
-rw-r--r-- | package/strongswan/ipkg/strongswan.control | 5 |
4 files changed, 69 insertions, 0 deletions
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in new file mode 100644 index 000000000..29ccd78d4 --- /dev/null +++ b/package/strongswan/Config.in @@ -0,0 +1,10 @@ +config ADK_PACKAGE_STRONGSWAN + prompt "strongswan........................ VPN solution using IPsec" + tristate + default n + select ADK_PACKAGE_IP + select ADK_PACKAGE_LIBGMP + help + StrongSwan is an implementation of IPsec for Linux. + + http://www.strongswan.org/ diff --git a/package/strongswan/Makefile b/package/strongswan/Makefile new file mode 100644 index 000000000..fd224b013 --- /dev/null +++ b/package/strongswan/Makefile @@ -0,0 +1,28 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= strongswan +PKG_VERSION:= 4.1.3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 8a9f0c0dd939eeb1f6b8d6cb86925ffa +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 +MASTER_SITES:= http://download.strongswan.org/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,STRONGSWAN,strongswan,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_STRONGSWAN}/etc/init.d + ${INSTALL_BIN} ./files/strongswan.init \ + ${IDIR_STRONGSWAN}/etc/init.d/strongswan + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/strongswan/files/strongswan.init b/package/strongswan/files/strongswan.init new file mode 100644 index 000000000..fcf30a469 --- /dev/null +++ b/package/strongswan/files/strongswan.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 60 +. /etc/rc.conf + +case $1 in +autostart) + test x"${ipsec:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/libexec/ipsec/setup start + ;; +stop) + /usr/libexec/ipsec/setup stop + ;; +restart) + sh $0 stop + sleep 3 + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/strongswan/ipkg/strongswan.control b/package/strongswan/ipkg/strongswan.control new file mode 100644 index 000000000..2d851d922 --- /dev/null +++ b/package/strongswan/ipkg/strongswan.control @@ -0,0 +1,5 @@ +Package: strongswan +Section: base +Priority: optional +Depends: libgmp, ip +Description: StrongSwan IPSec software |