diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2015-12-07 12:27:23 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2015-12-07 12:27:49 +0300 |
commit | 2f6251cbebab6b635d579260ff3a07e6fda8a06b (patch) | |
tree | 4dba15f28896723c0230b441813dac0a094e0b48 /net-dialup | |
parent | Mask "ipoe" USE flag for net-dialup/accel-ppp (diff) | |
download | gentoo-2f6251cbebab6b635d579260ff3a07e6fda8a06b.tar.gz gentoo-2f6251cbebab6b635d579260ff3a07e6fda8a06b.tar.bz2 gentoo-2f6251cbebab6b635d579260ff3a07e6fda8a06b.zip |
net-dialup/accel-ppp: version bump
Package-Manager: portage-2.2.23
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/accel-ppp/Manifest | 1 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.10.0.ebuild | 86 | ||||
-rw-r--r-- | net-dialup/accel-ppp/metadata.xml | 1 |
3 files changed, 88 insertions, 0 deletions
diff --git a/net-dialup/accel-ppp/Manifest b/net-dialup/accel-ppp/Manifest index 89bbc9247957..d1570a79736b 100644 --- a/net-dialup/accel-ppp/Manifest +++ b/net-dialup/accel-ppp/Manifest @@ -1 +1,2 @@ +DIST accel-ppp-1.10.0.tar.bz2 1585702 SHA256 c990cc195e286d3c0f8063881489608e14f3f826d25ca4c0a4812c261fd9ef14 SHA512 140ff3cf9fb684624c1419946010701d902125ba02a1e931fd5a0083d706ffd32a88d491400e82661a17bd4aacfa07ad620acea0cf4f49816c1060ae184f1084 WHIRLPOOL 749b821e1fc3189f4e2a6979e3ee6e00890a3b72311502a42142f75d5f5afe7c913d2ac7b7bcff39de2b4e3c451c783d42a04be72fe37bec8803f8159845f4e2 DIST accel-ppp-1.8.0.tar.bz2 1566401 SHA256 a90becf1d8a579b55a95d927a35f6f83ce9a3ee1f6a6d67128a29b2fa4fd71b7 SHA512 d78c0ed4a3c51ae5f07c580b813694376fc42484a907d65164bb14409392365e2d8a876b16b15e55a7a7178cf9e573d42e578e6739f1fe9d62887e7316c816c0 WHIRLPOOL cfeb6807e2b8734a263ad3450dce07859e12783015d6f315e09d6868c06dc8680da55df8e06a4b5ddb3c014f8423ca0b08b877f465a2649167955b7c4790f648 diff --git a/net-dialup/accel-ppp/accel-ppp-1.10.0.ebuild b/net-dialup/accel-ppp/accel-ppp-1.10.0.ebuild new file mode 100644 index 000000000000..99772b58e979 --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.10.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils linux-info linux-mod multilib + +DESCRIPTION="High performance PPTP, PPPoE and L2TP server" +HOMEPAGE="http://accel-ppp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc ipoe postgres radius shaper snmp valgrind" + +RDEPEND="postgres? ( dev-db/postgresql:* ) + snmp? ( net-analyzer/net-snmp ) + dev-libs/libpcre + dev-libs/openssl:0" +DEPEND="${RDEPEND} + valgrind? ( dev-util/valgrind )" +PDEPEND="net-dialup/ppp-scripts" + +DOCS=( README ) + +CONFIG_CHECK="~L2TP ~PPPOE ~PPTP" + +REQUIRED_USE="valgrind? ( debug )" + +pkg_setup() { + if use ipoe; then + linux-mod_pkg_setup + set_arch_to_kernel + else + linux-info_pkg_setup + fi +} + +src_prepare() { + sed -i -e "/mkdir/d" \ + -e "/echo/d" \ + -e "s: RENAME accel-ppp.conf.dist::" accel-pppd/CMakeLists.txt || die 'sed on accel-pppd/CMakeLists.txt failed' + + epatch_user +} + +src_configure() { + local libdir="$(get_libdir)" + # There must be also dev-libs/tomcrypt (TOMCRYPT) as crypto alternative to OpenSSL + local mycmakeargs=( + -DLIB_PATH_SUFFIX="${libdir#lib}" + -DBUILD_PPTP_DRIVER=FALSE + -DCRYPTO=OPENSSL + $(cmake-utils_use debug MEMDEBUG) + $(cmake-utils_use ipoe BUILD_IPOE_DRIVER) + $(cmake-utils_use postgres LOG_PGSQL) + $(cmake-utils_use radius RADIUS) + $(cmake-utils_use shaper SHAPER) + $(cmake-utils_use snmp NETSNMP) + $(cmake-utils_use valgrind VALGRIND) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + use doc && dodoc -r rfc + + if use snmp; then + insinto /usr/share/snmp/mibs + doins accel-pppd/extra/net-snmp/ACCEL-PPP-MIB.txt + fi + + newinitd "${FILESDIR}"/${PN}.initd ${PN}d + newconfd "${FILESDIR}"/${PN}.confd ${PN}d + + dodir /var/log/accel-ppp +} diff --git a/net-dialup/accel-ppp/metadata.xml b/net-dialup/accel-ppp/metadata.xml index 6890878e999f..3b02d59255ab 100644 --- a/net-dialup/accel-ppp/metadata.xml +++ b/net-dialup/accel-ppp/metadata.xml @@ -7,6 +7,7 @@ <name>Sergey Popov</name> </maintainer> <use> + <flag name="ipoe">Build IPoE kernel module</flag> <flag name="shaper">Support for traffic shaping</flag> <flag name="valgrind">Compile in valgrind hints</flag> </use> |