summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-02-28 11:55:37 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-02-28 12:10:38 +0300
commit5f99604785357de4d0716ef7a85e770be81f6db7 (patch)
treed25ffb1eff9bacae9118a34d4e87e337c3c0aab3 /contrib
parentd7efa14d50976995b1e6c8b43f0a110767bf7661 (diff)
downloadaccel-ppp-5f99604785357de4d0716ef7a85e770be81f6db7.tar.gz
accel-ppp-5f99604785357de4d0716ef7a85e770be81f6db7.zip
1.3.5 release
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.5.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.5.ebuild b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.5.ebuild
new file mode 100644
index 00000000..395dd6bd
--- /dev/null
+++ b/contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.5.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils linux-mod cmake-utils
+
+DESCRIPTION="PPtP/L2TP/PPPoE Server for Linux"
+SRC_URI="http://sourceforge.net/projects/accel-ppp/files/accel-ppp/${P}.tar.bz2"
+HOMEPAGE="http://accel-ppp.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL"
+KEYWORDS="~amd64 ~x86"
+IUSE="postgres debug shaper pptp_driver radius"
+
+DEPEND=">=sys-libs/glibc-2.8
+ dev-libs/openssl
+ dev-libs/libaio
+ shaper? ( =dev-libs/libnl-2* )
+ postgres? ( dev-db/postgresql-base )"
+
+RDEPEND="$DEPEND
+ pptp_driver? ( virtual/modutils )"
+
+BUILD_TARGETS="default"
+BUILD_PARAMS="KDIR=${KERNEL_DIR}"
+CONFIG_CHECK="PPP PPPOE"
+MODULESD_PPTP_ALIASES=("net-pf-24 pptp")
+PREFIX="/"
+MODULE_NAMES="pptp(extra:${S}/driver/)"
+
+src_prepare() {
+ sed -i -e "/mkdir/d" "${S}/accel-pppd/CMakeLists.txt"
+ sed -i -e "/echo/d" "${S}/accel-pppd/CMakeLists.txt"
+ sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt"
+}
+
+src_configure() {
+ if use debug; then
+ mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" )
+ fi
+
+ if use postgres; then
+ mycmakeargs+=( "-DLOG_PGSQL=TRUE" )
+ fi
+
+ if use shaper; then
+ mycmakeargs+=( "-DSHAPER=TRUE" )
+ fi
+
+ if ! use radius; then
+ mycmakeargs+=( "-DRADIUS=FALSE" )
+ fi
+
+ mycmakeargs+=( "-DCMAKE_INSTALL_PREFIX=/usr" )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use pptp_driver; then
+ cd ${S}/driver
+ #convert_to_m Makefile
+ linux-mod_src_compile || die "failed to build driver"
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use pptp_driver; then
+ cd ${S}/driver
+ linux-mod_src_install
+ fi
+
+ exeinto /etc/init.d
+ newexe "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init" accel-pppd
+
+ insinto /etc/conf.d
+ newins "${S}/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-confd" accel-pppd
+
+ dodir /var/log/accel-ppp
+ dodir /var/run/accel-ppp
+ dodir /var/run/radattr
+}