blob: 3da1f13f6492741f1dc4d63c8e4388dcc8d962f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
inherit git linux-mod cmake-utils
DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux"
SRC_URI="http://sourceforge.net/projects/accel-pptp/files/accel-pptp/${P}.tar.bz2"
HOMEPAGE="http://accel-pptp.sourceforge.net/"
SLOT="0"
LICENSE="GPL"
KEYWORDS="~amd64 ~x86"
IUSE="postgres debug"
DEPEND="dev-libs/openssl
dev-libs/libaio
postgres? ( >=dev-db/postgresql-base-8.1 )"
RDEPEND="virtual/modutils"
BUILD_TARGETS="default"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
CONFIG_CHECK="PPP PPPOE"
MODULESD_PPTP_ALIASES=("net-pf-24 pptp")
PREFIX="/"
src_prepare() {
sed -i -e "/mkdir/d" "${S}/accel-pptpd/CMakeLists.txt"
sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt"
}
src_configure() {
mycmakeargs+=( "-DBUILD_DRIVER=TRUE" )
if use debug; then
mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" )
fi
if use postgres; then
mycmakeargs+=( "-DLOG_PGSQL=TRUE" )
fi
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
MODULE_NAMES="pptp(extra:${CMAKE_BUILD_DIR}/driver/driver)"
linux-mod_src_install
exeinto /etc/init.d
newexe "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init" pptpd
insinto /etc/conf.d
newins "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd" pptpd
dodir /var/log/accel-pptp
dodir /var/run/radattr
}
|