* [gentoo-commits] proj/betagarden:master commit in: net-dialup/accel-pptp/, net-dialup/accel-pptp/files/
@ 2011-11-26 21:45 Alexey Shvetsov
0 siblings, 0 replies; only message in thread
From: Alexey Shvetsov @ 2011-11-26 21:45 UTC (permalink / raw
To: gentoo-commits
commit: eb4b908e3eff0b49141b5b9f0aa66f36b5d53c08
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 21:34:47 2011 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 21:34:47 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=eb4b908e
[net-dialup] Import from alexxy overlay
(Portage version: 2.2.0_alpha78/git/Linux x86_64, signed Manifest commit with key F82F92E6)
---
net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild | 95 +++++++++++++++++++++++++
net-dialup/accel-pptp/files/README.gentoo | 13 ++++
net-dialup/accel-pptp/files/options.pptp | 32 ++++++++
net-dialup/accel-pptp/files/pptpd-confd | 5 ++
net-dialup/accel-pptp/files/pptpd-init | 24 ++++++
net-dialup/accel-pptp/metadata.xml | 8 ++
6 files changed, 177 insertions(+), 0 deletions(-)
diff --git a/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild b/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild
new file mode 100644
index 0000000..cfdee69
--- /dev/null
+++ b/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit linux-mod eutils autotools multilib
+
+DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux"
+SRC_URI="mirror://sourceforge/accel-pptp/${P}.tar.bz2"
+HOMEPAGE="http://accel-pptp.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="tcpd server"
+
+COMMON_DEPEND=">=net-dialup/ppp-2.4.2
+ server? ( !net-dialup/pptpd )
+ tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${COMMON_DEPEND}
+ virtual/linux-sources"
+RDEPEND="${COMMON_DEPEND}"
+
+BUILD_TARGETS="all"
+BUILD_PARAMS="KDIR=${KERNEL_DIR}"
+CONFIG_CHECK="PPP PPPOE PPTP"
+MODULESD_PPTP_ALIASES=("net-pf-24 pptp")
+
+src_prepare() {
+ use server && cd "${S}/pptpd-1.3.3" && eautoreconf
+ cd "${S}/pppd_plugin" && eautoreconf
+
+ #Match pptpd-logwtmp.so's version with pppd's version (#89895)
+ local PPPD_VER=$(best_version net-dialup/ppp)
+ PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
+ echo "#define VERSION \"${PPPD_VER}\"" > "${S}/pptpd-1.3.3/plugins/patchlevel.h"
+ # Respect LDFLAGS
+ sed -e "/^LDFLAGS/{s:=:+=:}" -i "${S}/pptpd-1.3.3/plugins/Makefile"
+}
+
+src_configure() {
+ if use server; then
+ cd "${S}/pptpd-1.3.3"
+ # Define KDIR to build against userspace headers...
+ KDIR='/usr' \
+ econf --enable-bcrelay \
+ $(use_with tcpd libwrap)
+ fi
+
+ cd "${S}/pppd_plugin"
+ KDIR='/usr' econf
+}
+
+src_compile() {
+ if use server; then
+ cd "${S}/pptpd-1.3.3"
+ emake COPTS="${CFLAGS}" || die "make failed"
+ fi
+
+ cd "${S}/pppd_plugin"
+ emake COPTS="${CFLAGS}" || die "make failed"
+}
+
+src_install () {
+ if use server; then
+ cd "${S}/pptpd-1.3.3"
+ einstall || die "make install failed"
+
+ insinto /etc
+ doins samples/pptpd.conf
+
+ insinto /etc/ppp
+ doins samples/options.pptpd
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/pptpd-init" pptpd || die
+
+ insinto /etc/conf.d
+ newins "${FILESDIR}/pptpd-confd" pptpd || die
+ fi
+
+ cd "${S}/pppd_plugin/src/.libs"
+ local PPPD_VER=$(best_version net-dialup/ppp)
+ PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
+ insinto /usr/$(get_libdir)/pppd/${PPPD_VER}
+ newins pptp.so.0.0.0 pptp.so || die
+ doman "${S}"/pppd_plugin/src/pppd-pptp.8 || die
+
+ cd "${S}"
+ dodoc README || die
+ cp -R example "${D}/usr/share/doc/${P}/example"
+}
diff --git a/net-dialup/accel-pptp/files/README.gentoo b/net-dialup/accel-pptp/files/README.gentoo
new file mode 100644
index 0000000..68d6af2
--- /dev/null
+++ b/net-dialup/accel-pptp/files/README.gentoo
@@ -0,0 +1,13 @@
+link_ppp17="/dev/null"
+username_ppp17='pva0xd'
+password_ppp17='3149068110'
+pppd_ppp17="
+plugin pptp.so
+pptp_server 78.31.23.148
+file /etc/ppp/options.pptp
+mtu 1436
+mru 1436
+lcp-echo-interval 20
+lcp-echo-failure 3
+"
+
diff --git a/net-dialup/accel-pptp/files/options.pptp b/net-dialup/accel-pptp/files/options.pptp
new file mode 100644
index 0000000..d61ab80
--- /dev/null
+++ b/net-dialup/accel-pptp/files/options.pptp
@@ -0,0 +1,32 @@
+#
+# Lock the port
+#
+#lock
+
+#
+# We don't need the tunnel server to authenticate itself
+#
+noauth
+
+#
+# Turn off transmission protocols we know won't be used
+#
+nobsdcomp
+nodeflate
+
+#
+# We want MPPE
+#
+require-mppe
+
+#
+# We want a sane mtu/mru
+#
+mtu 1437
+mru 1437
+
+#
+# Time this thing out of it goes poof
+#
+lcp-echo-failure 10
+lcp-echo-interval 10
diff --git a/net-dialup/accel-pptp/files/pptpd-confd b/net-dialup/accel-pptp/files/pptpd-confd
new file mode 100644
index 0000000..1169e57
--- /dev/null
+++ b/net-dialup/accel-pptp/files/pptpd-confd
@@ -0,0 +1,5 @@
+# Config file for /etc/init.d/pptpd
+
+# Any extra options you want to pass to pptpd
+# on start-up should be put here.
+PPTPD_OPTS=""
diff --git a/net-dialup/accel-pptp/files/pptpd-init b/net-dialup/accel-pptp/files/pptpd-init
new file mode 100644
index 0000000..171e113
--- /dev/null
+++ b/net-dialup/accel-pptp/files/pptpd-init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting pptpd"
+ modprobe pptp
+ start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pptpd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
+ result=$?
+ start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/pptpctrl
+ result=$(( $result + $? ))
+ eend $result
+}
diff --git a/net-dialup/accel-pptp/metadata.xml b/net-dialup/accel-pptp/metadata.xml
new file mode 100644
index 0000000..009a9d9
--- /dev/null
+++ b/net-dialup/accel-pptp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-dialup</herd>
+ <use>
+ <flag name='server'>Enable pptpd</flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-26 21:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-26 21:45 [gentoo-commits] proj/betagarden:master commit in: net-dialup/accel-pptp/, net-dialup/accel-pptp/files/ Alexey Shvetsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox