From: Michael Tremer Date: Wed, 18 Feb 2009 13:04:38 +0000 (+0100) Subject: Added new package: openvpn. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0323c7b3a3577376a60bcb80e9b6ec1c4c342f58;p=ipfire-3.x.git Added new package: openvpn. --- diff --git a/lfs/openvpn b/lfs/openvpn new file mode 100644 index 000000000..9e03b5ece --- /dev/null +++ b/lfs/openvpn @@ -0,0 +1,102 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +PKG_NAME = openvpn +PKG_VER = 2.1_rc15 +PKG_REL = 0 + +THISAPP = $(PKG_NAME)-$(PKG_VER) +DL_FILE = $(THISAPP).tar.gz +DIR_APP = $(DIR_SRC)/$(THISAPP) + +OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +MAINTAINER = +GROUP = Networking/VPN +EXTRA = no +DEBUG = no +DEPS = iproute2 lzo openssl + +URL = http://openvpn.net/ +LICENSE = GPLv2 +SHORT_DESC = A full-featured SSL VPN solution. + +define LONG_DESC + OpenVPN is a robust and highly flexible tunneling application that uses all \ + of the encryption, authentication, and certification features of the \ + OpenSSL library to securely tunnel IP networks over a single UDP or TCP \ + port. It can use the Marcus Franz Xaver Johannes Oberhumer's LZO library \ + for compression. +endef + +PLUGINS = auth-pam down-root + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +download: $(objects) + +info: + $(DO_PKG_INFO) + +install: $(OBJECT) + +package: + @$(DO_PACKAGE) + +$(objects): + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(OBJECT): $(objects) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && \ + ./configure \ + $(CONFIGURE_ARCH) \ + --prefix=/usr \ + --enable-pthread \ + --enable-password-save \ + --enable-iproute2 + cd $(DIR_APP) && make $(PARALLELISMFLAGS) + cd $(DIR_APP) && for plugin in $(PLUGINS); do \ + make -C plugin/$$plugin; \ + done + cd $(DIR_APP) && make install + mkdir -p /usr/lib/$(PKG_NAME)/plugin/lib + cd $(DIR_APP) && for plugin in $(PLUGINS); do \ + install -m 0755 plugin/$$plugin/openvpn-$$plugin.so \ + /usr/lib/$(PKG_NAME)/plugin/lib/openvpn-$$plugin.so; \ + done + -mkdir -p /var/run/$(PKG_NAME) + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 2005c0afe..413109146 100755 --- a/make.sh +++ b/make.sh @@ -278,7 +278,7 @@ ipfire_build() { ### Building vpn stuff # ipfire_make strongswan - #ipfire_make openvpn + ipfire_make openvpn ### Building filesystem stuff # diff --git a/src/rootfiles/core/openvpn b/src/rootfiles/core/openvpn new file mode 100644 index 000000000..393f3088a --- /dev/null +++ b/src/rootfiles/core/openvpn @@ -0,0 +1,9 @@ +usr/lib/openvpn +usr/lib/openvpn/plugin +usr/lib/openvpn/plugin/lib +usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so +usr/lib/openvpn/plugin/lib/openvpn-down-root.so +usr/sbin/openvpn ++usr/share/doc/openvpn ++usr/share/man/man8/openvpn.8 +var/run/openvpn