mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add package 'openvpn', thanks to 'chewitt'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
90930998ee
commit
c657484dff
@ -317,6 +317,7 @@ show_config() {
|
||||
config_message="$config_message\n - SAMBA server support:\t\t $SAMBA_SERVER"
|
||||
config_message="$config_message\n - SFTP server support:\t\t\t $SFTP_SERVER"
|
||||
config_message="$config_message\n - SSH Guard support:\t\t\t $SSHGUARD_SUPPORT"
|
||||
config_message="$config_message\n - OpenVPN support:\t\t\t $OPENVPN_SUPPORT"
|
||||
config_message="$config_message\n - XBMC Airplay support:\t\t $AIRPLAY_SUPPORT"
|
||||
config_message="$config_message\n - XBMC Airtunes support:\t\t $AIRTUNES_SUPPORT"
|
||||
config_message="$config_message\n - XBMC AFP support:\t\t\t $AFP_SUPPORT"
|
||||
|
@ -30,6 +30,13 @@ else
|
||||
CONNMAN_PPP="--disable-pptp"
|
||||
fi
|
||||
|
||||
if [ "$OPENVPN_SUPPORT" = yes ]; then
|
||||
CONNMAN_OPENVPN="--enable-openvpn"
|
||||
export OVPN="/usr/sbin/openvpn"
|
||||
else
|
||||
CONNMAN_OPENVPN="--disable-openvpn"
|
||||
fi
|
||||
|
||||
export WPASUPPLICANT="/usr/bin/wpa_supplicant"
|
||||
|
||||
cd $PKG_BUILD
|
||||
@ -52,7 +59,7 @@ cd $PKG_BUILD
|
||||
--disable-wispr \
|
||||
--disable-ofono \
|
||||
--disable-openconnect \
|
||||
--disable-openvpn \
|
||||
$CONNMAN_OPENVPN \
|
||||
--disable-vpnc \
|
||||
--disable-l2tp \
|
||||
$CONNMAN_PPTP \
|
||||
|
@ -39,3 +39,9 @@ if [ "$PPTP_SUPPORT" = yes ]; then
|
||||
PKG_DEPENDS="$PKG_DEPENDS ppp pptp"
|
||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS ppp pptp"
|
||||
fi
|
||||
|
||||
if [ "$OPENVPN_SUPPORT" = yes ]; then
|
||||
PKG_DEPENDS="$PKG_DEPENDS openvpn"
|
||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS openvpn"
|
||||
fi
|
||||
|
||||
|
32
packages/network/openvpn/build
Executable file
32
packages/network/openvpn/build
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--disable-server \
|
||||
--enable-password-save
|
||||
|
||||
make
|
26
packages/network/openvpn/install
Executable file
26
packages/network/openvpn/install
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
cp -P $PKG_BUILD/openvpn $INSTALL/usr/sbin
|
36
packages/network/openvpn/meta
Normal file
36
packages/network/openvpn/meta
Normal file
@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="openvpn"
|
||||
PKG_VERSION="2.2.2"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://openvpn.net"
|
||||
PKG_URL="http://swupdate.openvpn.org/community/releases/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS="openssl"
|
||||
PKG_BUILD_DEPENDS="toolchain lzo openssl"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="network"
|
||||
PKG_SHORTDESC="openvpn: a full featured SSL VPN software solution that integrates OpenVPN server capabilities."
|
||||
PKG_LONGDESC="OpenVPN Access Server is a full featured SSL VPN software solution that integrates OpenVPN server capabilities, enterprise management capabilities, simplified OpenVPN Connect UI, and OpenVPN Client software packages that accommodate Windows, MAC, and Linux OS environments. OpenVPN Access Server supports a wide range of configurations, including secure and granular remote access to internal network and/ or private cloud network resources and applications with fine-grained access control."
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
@ -199,6 +199,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -198,6 +198,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
@ -193,6 +193,9 @@
|
||||
# build and install PPP support (yes / no)
|
||||
PPTP_SUPPORT="yes"
|
||||
|
||||
# build and install OpenVPN support (yes / no)
|
||||
OPENVPN_SUPPORT="yes"
|
||||
|
||||
# build and install diskmounter service (udisks)
|
||||
# this service provide auto mounting support for external drives
|
||||
# in the mediacenter also automount internally drives at boottime (yes / no)
|
||||
|
Loading…
x
Reference in New Issue
Block a user