From 60d7dcf3dab5395b3e6551ce7308beac99c0959f Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 15 Oct 2010 07:05:42 +0400 Subject: updated gentoo ebuild --- .../net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild | 80 ++++++++++++++++++++++ .../net-dialup/accel-pptp/accel-pptp-1.1.ebuild | 80 ---------------------- 2 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild delete mode 100644 contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.ebuild (limited to 'contrib/gentoo/net-dialup/accel-pptp') diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild new file mode 100644 index 0000000..7555c18 --- /dev/null +++ b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.1.ebuild @@ -0,0 +1,80 @@ +# 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="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 l2tp shaper" + +DEPEND=">=sys-libs/glibc-2.8 + dev-libs/openssl + dev-libs/libaio + l2tp? ( =dev-libs/libnl-9999 ) + shaper? ( =dev-libs/libnl-9999 ) + postgres? ( >=dev-db/postgresql-base-8.1 )" + +RDEPEND="$DEPEND + 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-pptpd/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 l2tp; then + mycmakeargs+=( "-DL2TP=TRUE" ) + fi + + if use shaper; then + mycmakeargs+=( "-DSHAPER=TRUE" ) + fi + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + cd ${S}/driver + linux-mod_src_compile || die "failed to build driver" +} + +src_install() { + cmake-utils_src_install + + cd ${S}/driver + linux-mod_src_install + + exeinto /etc/init.d + newexe "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init" accel-pptpd + + insinto /etc/conf.d + newins "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd" accel-pptpd + + dodir /var/log/accel-pptp + dodir /var/run/radattr +} diff --git a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.ebuild b/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.ebuild deleted file mode 100644 index 7555c18..0000000 --- a/contrib/gentoo/net-dialup/accel-pptp/accel-pptp-1.1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# 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="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 l2tp shaper" - -DEPEND=">=sys-libs/glibc-2.8 - dev-libs/openssl - dev-libs/libaio - l2tp? ( =dev-libs/libnl-9999 ) - shaper? ( =dev-libs/libnl-9999 ) - postgres? ( >=dev-db/postgresql-base-8.1 )" - -RDEPEND="$DEPEND - 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-pptpd/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 l2tp; then - mycmakeargs+=( "-DL2TP=TRUE" ) - fi - - if use shaper; then - mycmakeargs+=( "-DSHAPER=TRUE" ) - fi - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - - cd ${S}/driver - linux-mod_src_compile || die "failed to build driver" -} - -src_install() { - cmake-utils_src_install - - cd ${S}/driver - linux-mod_src_install - - exeinto /etc/init.d - newexe "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init" accel-pptpd - - insinto /etc/conf.d - newins "${S}/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-confd" accel-pptpd - - dodir /var/log/accel-pptp - dodir /var/run/radattr -} -- cgit v1.2.3