From 9ff2e18d9428c373dc43a293b990a9863ae0144a Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 8 Oct 2010 15:37:08 +0400 Subject: contrib: updated gentoo ebuilds --- .../net-dialup/accel-pptp/accel-pptp-9999.ebuild | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'contrib') 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 -- cgit v1.2.3