Carsten Schlote wrote:
From: Carsten Schlote c.schl...@konzeptpark.de
Added simple to use VPN packet.
Signed-off-by: Carsten Schlote c.schl...@konzeptpark.de
---
rules/openvpn.in | 22 +
rules/openvpn.make | 88
2 files changed, 110 insertions(+), 0 deletions(-)
create mode 100644 rules/openvpn.in
create mode 100644 rules/openvpn.make
diff --git a/rules/openvpn.in b/rules/openvpn.in
new file mode 100644
index 000..5c6fe69
--- /dev/null
+++ b/rules/openvpn.in
@@ -0,0 +1,22 @@
+## SECTION=networking
here a blank line, please
+menuconfig OPENVPN
+ tristate
+ default n
default n is default, please remove
+ prompt OpenVPN
please all lowercase
+ select OPENSSL
+ select LIBLZO if OPENVPN_LZO
+help
+ This adds OpenVPN to your root filesystem. Plain vanilla
+ packet.
+
+if OPENVPN
+
+config OPENVPN_LZO
+ bool
+ prompt Enable LZO compression
+ help
+This enables the LZO compression code. Selecting this option
+will select the LZO library as well.
+If unsure, say N.
+
+endif
diff --git a/rules/openvpn.make b/rules/openvpn.make
new file mode 100644
index 000..5179af5
--- /dev/null
+++ b/rules/openvpn.make
@@ -0,0 +1,88 @@
+# -*-makefile-*-
+# $Id: template 6655 2007-01-02 12:55:21Z rsc $
please remove that line
+#
+# Copyright (C) 2007 by Carsten Schlote c.schl...@konzeptpark.de
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENVPN) += openvpn
+
+#
+# Paths and names
+#
+OPENVPN_VERSION := 2.0.9
+OPENVPN := openvpn-$(OPENVPN_VERSION)
+OPENVPN_SUFFIX := tar.gz
+OPENVPN_URL :=
http://openvpn.net/release/$(OPENVPN).$(OPENVPN_SUFFIX)
+OPENVPN_SOURCE := $(SRCDIR)/$(OPENVPN).$(OPENVPN_SUFFIX)
+OPENVPN_DIR := $(BUILDDIR)/$(OPENVPN)
+
+
+#
+# Get
+#
+
+$(OPENVPN_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, OPENVPN)
+
+#
+# Prepare
+#
+
+OPENVPN_PATH := PATH=$(CROSS_PATH)
+OPENVPN_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+OPENVPN_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+ifdef PTXCONF_OPENVPN_LZO
+OPENVPN_LZO := --enable-lzo
+else
+OPENVPN_LZO := --disable-lzo
+endif
+
+#
+# Target-Install
+#
+
+$(STATEDIR)/openvpn.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, openvpn)
+ @$(call install_fixup, openvpn,PACKAGE,openvpn)
+ @$(call install_fixup, openvpn,PRIORITY,optional)
+ @$(call install_fixup, openvpn,VERSION,$(OPENVPN_VERSION))
+ @$(call install_fixup, openvpn,SECTION,base)
+ @$(call install_fixup, openvpn,AUTHOR,Carsten Schlote
c.schl...@konzeptpark.de)
+ @$(call install_fixup, openvpn,DEPENDS,)
+ @$(call install_fixup, openvpn,DESCRIPTION,missing)
+
+ @$(call install_copy, openvpn, 0, 0, 0755, -, /usr/sbin/openvpn)
+
+ @$(call install_copy, openvpn, 0, 0, 0755, /etc/openvpn)
+
+ @$(call install_finish, openvpn)
+
+ @$(call touch)
+
+#
+# Clean
+#
+
+openvpn_clean:
+ rm -rf $(STATEDIR)/openvpn.*
+ rm -rf $(OPENVPN_PKGDIR)/*
+ rm -rf $(OPENVPN_DIR)
+
+# vim: syntax=make
+
some startscripts would be nice.
cheers, Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions| Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
--
ptxdist mailing list
ptxdist@pengutronix.de