diff options
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/Manifest.gz | bin | 5884 -> 5887 bytes | |||
-rw-r--r-- | net-dialup/accel-ppp/Manifest | 3 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild | 113 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-9999.ebuild | 10 |
4 files changed, 122 insertions, 4 deletions
diff --git a/net-dialup/Manifest.gz b/net-dialup/Manifest.gz Binary files differindex 5dacf8857cd7..2565f3b74b7a 100644 --- a/net-dialup/Manifest.gz +++ b/net-dialup/Manifest.gz diff --git a/net-dialup/accel-ppp/Manifest b/net-dialup/accel-ppp/Manifest index c2a50e0bdbc3..7fb55483323e 100644 --- a/net-dialup/accel-ppp/Manifest +++ b/net-dialup/accel-ppp/Manifest @@ -2,6 +2,7 @@ AUX accel-ppp-1.11.1-socklen.patch 483 BLAKE2B efdcc5b2826ab2d45bcd6914efbc65a3e AUX accel-ppp.confd 437 BLAKE2B 6b418f528877a46b4b8aba3728405459a567c264b5bb73da79a08649f604f99f6b9d5a665599836b902c554b9fa5c62b8e399cb60bf4e0bcf85e21a0d4959b54 SHA512 66dad6b7b4497c5768206e7990e4034f1de03d9608e1470888e061ba0ff6be934f1dd329336fd3978a43a99a8e3971a00be4da327bfc01a64dadfe91da2cea30 AUX accel-ppp.initd 998 BLAKE2B 974407e0e974fb79b3ea17bd1526d1f6343d7284cb10a93bcb2713f955244a91a664fd7187287a7b090edee340f76181f88645b2d4bf0e5470d825407ddebe83 SHA512 ebee03f6c448f1158831bb563568ce027b2824c185852d380f079456f25dcb69e0fe5c6d6235eed33f028825786f091853c05fcba5eb3c287790353629823764 DIST accel-ppp-1.12.0_p20200913.tar.bz2 1661195 BLAKE2B 6ffdb140486e98c19c981999873f94e767682bec1a2bea1f2feb7bed6ce9d8b15a824605da0b60897501773f4ece9d71612385dd1eff61483fff5daadad9713d SHA512 ecf325774507a8ddb1c6fe3c90aa2e25c72d006e9d96eabf66c7f1b67cfa70fc1073cf120c195d0823ad2532fa3504f6ab482d1842eb8b3e3dbafdb8b16a2ac6 +EBUILD accel-ppp-1.12.0_p20200913-r100.ebuild 2646 BLAKE2B 71066002c7ce8823e26f0bf54973d4603f922e34cf9253b2fa6e67aad320a466bb82bcad20a6ad657a338dcc9cea704953fc327a286f7d2489f04a54b10a1717 SHA512 90d880f0053d0208757734f2400a69c262b7e7c26223107533f6fdec5ac616611b3bd3f11159a0f3a3ee17241c7938cc61ab33db737bb7117363904312f910a7 EBUILD accel-ppp-1.12.0_p20200913.ebuild 2552 BLAKE2B 65b6d290ba6cf136b0fc6e4c3c99737c951303054b882bd00cbcade908ceaa0a5b9e1135ebbd326e8517ae6333c63353b63fb504a36c3d52b8b20ee630fc7187 SHA512 383e8599243b59125fe1a0063511244235130e91dbb207a9ccaab80fb3b54fde7ca9bd94f9549bdd1d54bc424c599b180e9b7fc0791a5e86520b6f0a71712e37 -EBUILD accel-ppp-9999.ebuild 2339 BLAKE2B 50c5f3d4a5daf59e5af62580c4ccd6ebc24d7754d69b1c58096c02b46204519706de7bba1bf0e6214b968f0ca37220e25c54e03417ba37d5eca95eca76c4c2d9 SHA512 998b01a8b96f2371a0dfe669830b994030dd2bd3fb2cad787ada047b32c87f689548a9a972d834c7b266454ed728a0408872d03e191f3e11b5dba14d179344f5 +EBUILD accel-ppp-9999.ebuild 2433 BLAKE2B 84ded7583d6ea94280eeb642adc46804a996bfebe61e1067cab8c3c3a2b30199af62ddd4bd7ee86fc63e2a76c4ced93efb0ca82e6202b6f7d89cf2b2a3222222 SHA512 90547337a4466cf4916c296149f7e7f59a82ee507dfb30bf292a798cb9712f9f8600e7cd3825b47892bf33793e6a126cd50a13f66253999a10239d19eafc1b4c MISC metadata.xml 507 BLAKE2B 7c0a985830c791f5fe40ed8b624f366eb8e39505fe128b46153740f77ce9c5bd05bf8bf7ffb8939aa42550c9ea08de8f2498d444ef2e930121bbe7f404bf88dd SHA512 6b60c890f172501225ed3da4a229298c2b05601606d047bbe46dbea88246bcce8c15695259063daf73574c9d24048b04d2422c83e2e934015768338120e9154e diff --git a/net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild new file mode 100644 index 000000000000..7443db976804 --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) + +inherit cmake flag-o-matic linux-info linux-mod lua-single + +DESCRIPTION="High performance PPTP, PPPoE and L2TP server" +HOMEPAGE="https://sourceforge.net/projects/accel-ppp/" +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind" + +RDEPEND="lua? ( ${LUA_DEPS} ) + 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="lua? ( ${LUA_REQUIRED_USE} ) + valgrind? ( debug )" + +PATCHES=( + "${FILESDIR}/${PN}-1.11.1-socklen.patch" +) + +S="${WORKDIR}" + +pkg_setup() { + if use ipoe; then + linux-mod_pkg_setup + set_arch_to_kernel + else + linux-info_pkg_setup + fi + use lua && lua-single_pkg_setup +} + +src_prepare() { + sed -i -e "/mkdir/d" \ + -e "s: RENAME accel-ppp.conf.dist::" accel-pppd/CMakeLists.txt || die 'sed on accel-pppd/CMakeLists.txt failed' + + # Do not install kernel modules like that - breaks sandbox! + sed -i -e '/modules_install/d' \ + drivers/ipoe/CMakeLists.txt \ + drivers/vlan_mon/CMakeLists.txt || die + + # Fix version + sed -i -e "s/1.11/${PV}/" drivers/ipoe/ipoe.c || die + sed -i -e "s/1.11/${PV}/" drivers/vlan_mon/vlan_mon.c || die + + # Bug #549918 + append-ldflags -Wl,-z,lazy + + cmake_src_prepare +} + +src_configure() { + local libdir="$(get_libdir)" + # There must be also dev-libs/tomcrypt (TOMCRYPT) as crypto alternative to OpenSSL + local mycmakeargs=( + -DLIB_SUFFIX="${libdir#lib}" + -DBUILD_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO=OPENSSL + -DLOG_PGSQL="$(usex postgres)" + -DLUA="$(usex lua TRUE FALSE)" + -DMEMDEBUG="$(usex debug)" + -DNETSNMP="$(usex snmp)" + -DRADIUS="$(usex radius)" + -DSHAPER="$(usex shaper)" + $(use debug && echo "-DVALGRIND=$(usex valgrind)") + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile +} + +src_install() { + if use ipoe; then + local MODULE_NAMES="ipoe(accel-ppp:${BUILD_DIR}/drivers/ipoe/driver) vlan_mon(accel-ppp:${BUILD_DIR}/drivers/vlan_mon/driver)" + linux-mod_src_install + fi + + cmake_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 + + keepdir /var/log/accel-ppp +} diff --git a/net-dialup/accel-ppp/accel-ppp-9999.ebuild b/net-dialup/accel-ppp/accel-ppp-9999.ebuild index 3f8aec7348a9..fd43b44ecd20 100644 --- a/net-dialup/accel-ppp/accel-ppp-9999.ebuild +++ b/net-dialup/accel-ppp/accel-ppp-9999.ebuild @@ -3,8 +3,10 @@ EAPI=7 +LUA_COMPAT=( lua5-1 ) + EGIT_REPO_URI="https://github.com/accel-ppp/accel-ppp.git" -inherit cmake flag-o-matic git-r3 linux-info linux-mod +inherit cmake flag-o-matic git-r3 linux-info linux-mod lua-single DESCRIPTION="High performance PPTP, PPPoE and L2TP server" HOMEPAGE="https://sourceforge.net/projects/accel-ppp/" @@ -15,7 +17,7 @@ SLOT="0" KEYWORDS="" IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind" -RDEPEND="lua? ( dev-lang/lua:0 ) +RDEPEND="lua? ( ${LUA_DEPS} ) postgres? ( dev-db/postgresql:* ) snmp? ( net-analyzer/net-snmp ) dev-libs/libpcre @@ -28,7 +30,8 @@ DOCS=( README ) CONFIG_CHECK="~L2TP ~PPPOE ~PPTP" -REQUIRED_USE="valgrind? ( debug )" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) + valgrind? ( debug )" pkg_setup() { if use ipoe; then @@ -37,6 +40,7 @@ pkg_setup() { else linux-info_pkg_setup fi + use lua && lua-single_pkg_setup } src_prepare() { |