From 98d885840860c8c098224e29ecde2675f6234444 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 17 Aug 2012 17:16:42 +0200 Subject: [PATCH] new package: add package 'pptp' Signed-off-by: Stephan Raue --- CHANGELOG | 1 + packages/network/pptp/build | 27 ++++++++++++++ packages/network/pptp/install | 26 ++++++++++++++ packages/network/pptp/meta | 36 +++++++++++++++++++ .../pptp/patches/pptp-1.7.2-configure.patch | 33 +++++++++++++++++ 5 files changed, 123 insertions(+) create mode 100755 packages/network/pptp/build create mode 100755 packages/network/pptp/install create mode 100644 packages/network/pptp/meta create mode 100644 packages/network/pptp/patches/pptp-1.7.2-configure.patch diff --git a/CHANGELOG b/CHANGELOG index 5b2ed5de1e..91c37bfba7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ Changelog OpenELEC-2.0 to OpenELEC-2.1 Added packages: - add package 'ppp' + - add package 'pptp' Package updates: - update linux to linux-3.5 diff --git a/packages/network/pptp/build b/packages/network/pptp/build new file mode 100755 index 0000000000..419be53304 --- /dev/null +++ b/packages/network/pptp/build @@ -0,0 +1,27 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + make PPPD="/usr/sbin/pppd" CC="$CC" CFLAGS="$CFLAGS" config.h pptp + diff --git a/packages/network/pptp/install b/packages/network/pptp/install new file mode 100755 index 0000000000..b2d864727f --- /dev/null +++ b/packages/network/pptp/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/sbin + cp -P $PKG_BUILD/pptp $INSTALL/usr/sbin diff --git a/packages/network/pptp/meta b/packages/network/pptp/meta new file mode 100644 index 0000000000..8b8043cc5f --- /dev/null +++ b/packages/network/pptp/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="pptp" +PKG_VERSION="1.7.2" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://pptpclient.sourceforge.net" +PKG_URL="$SOURCEFORGE_SRC/project/pptpclient/pptp/$PKG_NAME-$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="ppp" +PKG_BUILD_DEPENDS="toolchain ppp" +PKG_PRIORITY="optional" +PKG_SECTION="network" +PKG_SHORTDESC="pptp: a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP" +PKG_LONGDESC="PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP. Allows connection to a PPTP based Virtual Private Network (VPN)." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/network/pptp/patches/pptp-1.7.2-configure.patch b/packages/network/pptp/patches/pptp-1.7.2-configure.patch new file mode 100644 index 0000000000..b841956b8f --- /dev/null +++ b/packages/network/pptp/patches/pptp-1.7.2-configure.patch @@ -0,0 +1,33 @@ +diff -Naur pptp-1.7.2/Makefile pptp-1.7.2.patch/Makefile +--- pptp-1.7.2/Makefile 2008-05-14 08:33:55.000000000 +0200 ++++ pptp-1.7.2.patch/Makefile 2012-08-17 14:06:16.929624069 +0200 +@@ -4,25 +4,25 @@ + + ################################################################# + # CHANGE THIS LINE to point to the location of your pppd binary. +-PPPD = /usr/sbin/pppd ++PPPD := /usr/sbin/pppd + ################################################################# + + BINDIR=$(DESTDIR)/usr/sbin + MANDIR=$(DESTDIR)/usr/share/man/man8 + PPPDIR=$(DESTDIR)/etc/ppp + +-CC = gcc ++CC := gcc + RM = rm -f + OPTIMIZE= -O0 + DEBUG = -g + INCLUDE = +-CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE) ++CFLAGS := -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE) + LIBS = -lutil + # Solaris 10 + # LIBS = -lnsl -lsocket -lresolv + # Solaris Nevada build 14 or above + # LIBS = -lnsl -lsocket +-LDFLAGS = ++LDFLAGS := + + PPTP_BIN = pptp +