diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:03:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:03:33 +0000 |
commit | c9388864702fdd7b0b56c049eddb41bdb9054dcb (patch) | |
tree | 3595822471cd11e6f9f92565ab81ab9c5ee39c3f /net-dialup/accel-ppp | |
parent | a41f630aea0b4b71a6c9a088571f1eaaf8413d53 (diff) |
gentoo auto-resync : 30:10:2022 - 15:03:33
Diffstat (limited to 'net-dialup/accel-ppp')
-rw-r--r-- | net-dialup/accel-ppp/Manifest | 2 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.12.0_p20220830.ebuild | 113 |
2 files changed, 115 insertions, 0 deletions
diff --git a/net-dialup/accel-ppp/Manifest b/net-dialup/accel-ppp/Manifest index ab130550ab7e..863a34419a14 100644 --- a/net-dialup/accel-ppp/Manifest +++ b/net-dialup/accel-ppp/Manifest @@ -2,6 +2,8 @@ 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_p20210430.tar.bz2 1662172 BLAKE2B 7c9da06ca704d63afb16bc8d2bc64541e25d31a062a948c3014f340684a38c7ba55d15eba3458ced90b088788228f97553105fd5d0aebbb1e61fb1b1075ae521 SHA512 de690a44ebaad31c63ec604c306e3d5bc63bd02ea2c17a435c2166ddcc8a3c06b86d72d6ebd88d906093583345962569493231e1657f222d4e66d93bf1d0ca41 +DIST accel-ppp-1.12.0_p20220830.tar.bz2 1667889 BLAKE2B a6432e29953214202dc67822f358c12ade36eda3e1aaa24e8a2f427ac00ae8192216c76620f3c2946bcf88c95f6167ae9c27ce4a1895c36232110cd73c575a36 SHA512 f6e0baf7dcbf66d3d9eadffeb33216d73d6aa9eef461487d51a3811f042229b38bfec5f192742eb51cc7cfedd0a64ad02a3431bfac91ae37a9aab8c910fdcfa4 EBUILD accel-ppp-1.12.0_p20210430.ebuild 2665 BLAKE2B 1a9ae46cd9a56dab6fbec578f6fbe7243a52fd244e28aa4c13f88aeaa78399a7b3b3a8a2c54ec2b95aad376defa9001b7c1788672d03bf6cad2390c46e18f121 SHA512 a1be07406114c7031877fa58265cdc6c28e47c9ba84a5081cfa29c96ef37e627a387f20a564124e976fab3d3353ac838f10474d2485ee5513d63f7619834ef24 +EBUILD accel-ppp-1.12.0_p20220830.ebuild 2665 BLAKE2B a6e164b697b49dd09eeaf9a8b2d0cd37c9884ae6a77d0a8d9a4c2c1b8d09900c653f562cf697477e1ef0b339b18c7736fb5875867398ebb7ac0631dd633b9cc4 SHA512 4412afa163461adf672009d4e0734a5b1bf8f34dbd7af6f8eaa6bf9ee437f74dea88554b952f9102d345684fbf5e007c262d7624ba5b6ba4f22d82df375db557 EBUILD accel-ppp-9999.ebuild 2452 BLAKE2B de8383e3fa9034b498e9eea830e00f60c500cadbf2e2aaa6d219cd5c6402774399b128a40232594c72d84141235e399657837c276710c54d182fb6bd1ed6e2cd SHA512 2d76eccbf71df64704a5793dab3f1635073d6f3a16d47268bdd93e6d7ebbe87f9c779c57e8769437b3cc9f7d0c9f0f94fae7d9e7bb607e28cf2ccc8e86f9ba6c MISC metadata.xml 701 BLAKE2B aa498e4c221a3daaa140abbc420470d4d9bd9ab3d3e46fe0a0ebace31cbc9badd67b430d485fe779bb5ab6b247b841ba6278bbe42f31cfa8c67f969ef4ae585f SHA512 145afb29ca00faff5c22750b113c8e1891e81f91b552b05cc371477e94c33e349e1ca8086ee860b1773170ef25aa10025fb4f3ff4621b8dfcf7bba3f2db61a9a diff --git a/net-dialup/accel-ppp/accel-ppp-1.12.0_p20220830.ebuild b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20220830.ebuild new file mode 100644 index 000000000000..8ea237aff3e1 --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20220830.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 libtomcrypt lua postgres radius shaper snmp valgrind" + +RDEPEND="!libtomcrypt? ( dev-libs/openssl:0= ) + libtomcrypt? ( dev-libs/libtomcrypt:0= ) + lua? ( ${LUA_DEPS} ) + postgres? ( dev-db/postgresql:* ) + snmp? ( net-analyzer/net-snmp ) + dev-libs/libpcre" +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)" + local mycmakeargs=( + -DLIB_SUFFIX="${libdir#lib}" + -DBUILD_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO="$(usex libtomcrypt TOMCRYPT 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 +} |