summaryrefslogtreecommitdiff
path: root/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-08 15:37:08 +0400
committerKozlov Dmitry <dima@server>2010-10-08 15:37:08 +0400
commit9ff2e18d9428c373dc43a293b990a9863ae0144a (patch)
tree0452fd6dc24952ffdb86cf53c5fca970eed89ae7 /contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild
parent2774eb2f631e596dcd9278543abcc8a23a86beab (diff)
downloadaccel-ppp-9ff2e18d9428c373dc43a293b990a9863ae0144a.tar.gz
accel-ppp-9ff2e18d9428c373dc43a293b990a9863ae0144a.zip
contrib: updated gentoo ebuilds
Diffstat (limited to 'contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild')
-rw-r--r--contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild29
1 files changed, 19 insertions, 10 deletions
diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild
index 4a490afc..3f515382 100644
--- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild
+++ b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-9999.ebuild
@@ -27,30 +27,39 @@ BUILD_PARAMS="KDIR=${KERNEL_DIR}"
CONFIG_CHECK="PPP PPPOE"
MODULESD_PPTP_ALIASES=("net-pf-24 pptp")
PREFIX="/"
+MODULE_NAMES="pptp(extra:${S}/driver/)"
src_unpack() {
git_src_unpack
sed -i -e "/mkdir/d" "${S}/accel-pptpd/CMakeLists.txt"
sed -i -e "/INSTALL/d" "${S}/driver/CMakeLists.txt"
+
+ convert_to_m ${S}/driver/Makefile
}
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
+ if use debug; then
+ mycmakeargs+=( "-DCMAKE_BUILD_TYPE=Debug" )
+ fi
+
+ if use postgres; then
+ mycmakeargs+=( "-DLOG_PGSQL=TRUE" )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
- cmake-utils_src_configure
+ cd ${S}/driver
+ linux-mod_src_compile || die "failed to build driver"
}
src_install() {
cmake-utils_src_install
- MODULE_NAMES="pptp(extra:${CMAKE_BUILD_DIR}/driver/driver)"
+ cd ${S}/driver
linux-mod_src_install
exeinto /etc/init.d