From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RUQ3q-0002zW-5E for garchives@archives.gentoo.org; Sat, 26 Nov 2011 21:45:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0590721C1C6; Sat, 26 Nov 2011 21:45:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BA82821C1C6 for ; Sat, 26 Nov 2011 21:45:03 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 334471B4020 for ; Sat, 26 Nov 2011 21:45:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8D8378004C for ; Sat, 26 Nov 2011 21:45:02 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: Subject: [gentoo-commits] proj/betagarden:master commit in: net-dialup/accel-pptp/, net-dialup/accel-pptp/files/ X-VCS-Repository: proj/betagarden X-VCS-Files: net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild net-dialup/accel-pptp/files/README.gentoo net-dialup/accel-pptp/files/options.pptp net-dialup/accel-pptp/files/pptpd-confd net-dialup/accel-pptp/files/pptpd-init net-dialup/accel-pptp/metadata.xml X-VCS-Directories: net-dialup/accel-pptp/ net-dialup/accel-pptp/files/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: eb4b908e3eff0b49141b5b9f0aa66f36b5d53c08 Date: Sat, 26 Nov 2011 21:45:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7447b99e-0428-4e68-95b6-ac79737061a9 X-Archives-Hash: 6d29e421c886fd5fbaedd1e295f3c57d commit: eb4b908e3eff0b49141b5b9f0aa66f36b5d53c08 Author: Alexey Shvetsov gentoo org> AuthorDate: Sat Nov 26 21:34:47 2011 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Sat Nov 26 21:34:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/betagarden.gi= t;a=3Dcommit;h=3Deb4b908e [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/a= ccel-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=3D"4" + +inherit linux-mod eutils autotools multilib + +DESCRIPTION=3D"Point-to-Point Tunnelling Protocol Client/Server for Linu= x" +SRC_URI=3D"mirror://sourceforge/accel-pptp/${P}.tar.bz2" +HOMEPAGE=3D"http://accel-pptp.sourceforge.net/" + +SLOT=3D"0" +LICENSE=3D"GPL-2" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"tcpd server" + +COMMON_DEPEND=3D">=3Dnet-dialup/ppp-2.4.2 + server? ( !net-dialup/pptpd ) + tcpd? ( sys-apps/tcp-wrappers )" +DEPEND=3D"${COMMON_DEPEND} + virtual/linux-sources" +RDEPEND=3D"${COMMON_DEPEND}" + +BUILD_TARGETS=3D"all" +BUILD_PARAMS=3D"KDIR=3D${KERNEL_DIR}" +CONFIG_CHECK=3D"PPP PPPOE PPTP" +MODULESD_PPTP_ALIASES=3D("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=3D$(best_version net-dialup/ppp) + PPPD_VER=3D${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} + PPPD_VER=3D${PPPD_VER%%[_-]*} # main version without beta/pre/patch/rev= ision + echo "#define VERSION \"${PPPD_VER}\"" > "${S}/pptpd-1.3.3/plugins/patc= hlevel.h" + # Respect LDFLAGS + sed -e "/^LDFLAGS/{s:=3D:+=3D:}" -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=3D'/usr' \ + econf --enable-bcrelay \ + $(use_with tcpd libwrap) + fi + + cd "${S}/pppd_plugin" + KDIR=3D'/usr' econf +} + +src_compile() { + if use server; then + cd "${S}/pptpd-1.3.3" + emake COPTS=3D"${CFLAGS}" || die "make failed" + fi + + cd "${S}/pppd_plugin" + emake COPTS=3D"${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=3D$(best_version net-dialup/ppp) + PPPD_VER=3D${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} + PPPD_VER=3D${PPPD_VER%%[_-]*} # main version without beta/pre/patch/rev= ision + 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=3D"/dev/null" +username_ppp17=3D'pva0xd' +password_ppp17=3D'3149068110' +pppd_ppp17=3D" +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-p= ptp/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=3D"" diff --git a/net-dialup/accel-pptp/files/pptpd-init b/net-dialup/accel-pp= tp/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 l= ater +# $Header: $ + +depend() { + need net +} + +start() { + ebegin "Starting pptpd" + modprobe pptp + start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPT= S} + eend $? +} + +stop() { + ebegin "Stopping pptpd" + start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid + result=3D$? + start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/pptpctrl + result=3D$(( $result + $? )) + eend $result +} diff --git a/net-dialup/accel-pptp/metadata.xml b/net-dialup/accel-pptp/m= etadata.xml new file mode 100644 index 0000000..009a9d9 --- /dev/null +++ b/net-dialup/accel-pptp/metadata.xml @@ -0,0 +1,8 @@ + + + + net-dialup + + Enable pptpd + +