From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/strongswan/Config.in | 10 ++++++++++ package/strongswan/Makefile | 28 ++++++++++++++++++++++++++++ package/strongswan/files/strongswan.init | 26 ++++++++++++++++++++++++++ package/strongswan/ipkg/strongswan.control | 5 +++++ 4 files changed, 69 insertions(+) create mode 100644 package/strongswan/Config.in create mode 100644 package/strongswan/Makefile create mode 100644 package/strongswan/files/strongswan.init create mode 100644 package/strongswan/ipkg/strongswan.control (limited to 'package/strongswan') 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 -- cgit v1.2.3