diff options
author | Kozlov Dmitry <dima@server> | 2009-12-02 18:45:10 +0300 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2009-12-02 18:45:10 +0300 |
commit | 9db6020c32d86c330b470158805a2918d8d747dd (patch) | |
tree | 2407879b4dce8fe433369f042c2f16f9b02f00c4 /gentoo/net-dialup | |
parent | 5c91194a6c22d8d7ad74c371fca8be2bc74d6d50 (diff) | |
download | accel-ppp-9db6020c32d86c330b470158805a2918d8d747dd.tar.gz accel-ppp-9db6020c32d86c330b470158805a2918d8d747dd.zip |
using per-cpu threads for packet receiveing/transmiting
Diffstat (limited to 'gentoo/net-dialup')
-rw-r--r-- | gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild | 112 | ||||
-rw-r--r-- | gentoo/net-dialup/accel-pptp/files/options.pptp | 32 | ||||
-rw-r--r-- | gentoo/net-dialup/accel-pptp/files/pptpd-confd | 5 | ||||
-rwxr-xr-x | gentoo/net-dialup/accel-pptp/files/pptpd-init | 21 |
4 files changed, 0 insertions, 170 deletions
diff --git a/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild b/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild deleted file mode 100644 index 06204b0d..00000000 --- a/gentoo/net-dialup/accel-pptp/accel-pptp-0.8.1.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpd/pptpd-1.3.1.ebuild,v 1.1 2006/03/26 09:13:06 mrness Exp $ - -inherit linux-mod eutils autotools - -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" -KEYWORDS="~amd64 ~x86" -IUSE="tcpd server" - -DEPEND="server? (!net-dialup/pptpd) - >=net-dialup/ppp-2.4.2 - >=virtual/linux-sources-2.6.15 - tcpd? ( sys-apps/tcp-wrappers )" -RDEPEND="virtual/modutils" - -MODULE_NAMES="pptp(misc:${S}/kernel/driver)" -BUILD_TARGETS="default" -BUILD_PARAMS="KDIR=${KERNEL_DIR}" -CONFIG_CHECK="PPP PPPOE" -MODULESD_PPTP_ALIASES=("net-pf-24 pptp") - -src_unpack() { - unpack ${A} - - 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 - #Match pptpd-logwtmp.so's version with pppd's version (#89895) - #sed -i -e "s:\\(#define[ \\t]*VERSION[ \\t]*\\)\".*\":\\1\"${PPPD_VER}\":" "${S}/pptpd-1.3.3/plugins/patchlevel.h" - #sed -i -e "s:\\(#define[ \\t]*PPP_VERSION[ \\t]*\\)\".*\":\\1\"${PPPD_VER}\":" "${S}/pppd_plugin/src/pppd/patchlevel.h" - - convert_to_m ${S}/kernel/driver/Makefile - - cd ${S}/pppd_plugin - eautoreconf - - if use server; then - cd ${S}/pptpd-1.3.3 - eautoreconf - fi -} - -src_compile() { - - if use server; then - cd ${S}/pptpd-1.3.3 - local myconf - use tcpd && myconf="--with-libwrap" - econf --with-bcrelay \ - ${myconf} || die "configure failed" - emake COPTS="${CFLAGS}" || die "make failed" - fi - - cd ${S}/pppd_plugin - local myconf - econf ${myconf} || die "configure failed" - emake COPTS="${CFLAGS}" || die "make failed" - - cd ${S}/kernel/driver - linux-mod_src_compile || die "failed to build driver" -} - -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 - - insinto /etc/conf.d - newins "${FILESDIR}/pptpd-confd" pptpd - fi - - if use client; then - cd ${S}/example - insinto /etc/ppp - doins ppp/options.pptp - insinto /etc/ppp/peers - doins ppp/peers/pptp_test - 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/lib/pppd/${PPPD_VER} - newins pptp.so.0.0.0 pptp.so - - cd ${S}/kernel/driver - linux-mod_src_install - - cd ${S} - dodoc README - cp -R example "${D}/usr/share/doc/${P}/exmaple" -} - -pkg_postinst () { - modules-update -} diff --git a/gentoo/net-dialup/accel-pptp/files/options.pptp b/gentoo/net-dialup/accel-pptp/files/options.pptp deleted file mode 100644 index d61ab80c..00000000 --- a/gentoo/net-dialup/accel-pptp/files/options.pptp +++ /dev/null @@ -1,32 +0,0 @@ -# -# 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/gentoo/net-dialup/accel-pptp/files/pptpd-confd b/gentoo/net-dialup/accel-pptp/files/pptpd-confd deleted file mode 100644 index 1169e57f..00000000 --- a/gentoo/net-dialup/accel-pptp/files/pptpd-confd +++ /dev/null @@ -1,5 +0,0 @@ -# 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/gentoo/net-dialup/accel-pptp/files/pptpd-init b/gentoo/net-dialup/accel-pptp/files/pptpd-init deleted file mode 100755 index c0537206..00000000 --- a/gentoo/net-dialup/accel-pptp/files/pptpd-init +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/runscript - -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 -} |