diff options
Diffstat (limited to 'net-dialup/accel-ppp')
-rw-r--r-- | net-dialup/accel-ppp/Manifest | 13 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.11.0.ebuild | 98 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.11.1_p20170508.ebuild | 107 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-1.11.9999.ebuild | 101 | ||||
-rw-r--r-- | net-dialup/accel-ppp/accel-ppp-9999.ebuild | 100 | ||||
-rw-r--r-- | net-dialup/accel-ppp/files/accel-ppp-1.11.1-linux-4.10.patch | 80 | ||||
-rw-r--r-- | net-dialup/accel-ppp/files/accel-ppp-1.11.1-socklen.patch | 18 | ||||
-rw-r--r-- | net-dialup/accel-ppp/files/accel-ppp.confd | 10 | ||||
-rw-r--r-- | net-dialup/accel-ppp/files/accel-ppp.initd | 44 | ||||
-rw-r--r-- | net-dialup/accel-ppp/metadata.xml | 16 |
10 files changed, 587 insertions, 0 deletions
diff --git a/net-dialup/accel-ppp/Manifest b/net-dialup/accel-ppp/Manifest new file mode 100644 index 000000000000..098152c73be8 --- /dev/null +++ b/net-dialup/accel-ppp/Manifest @@ -0,0 +1,13 @@ +AUX accel-ppp-1.11.1-linux-4.10.patch 2373 SHA256 ad96baff69128adb8375e7462b5b7afdc9b6fa9e4857cbd7f594b822c8a43d38 SHA512 5915500f67aad2c956c7a65bc9716e2f32fca6bf51010d8905f025a0386578bcf63613f3b195b47c1a06c01ce68c88a69af2bfed94b3ca76fdb324279f8acfdb WHIRLPOOL 2bf331bcf955694fc6e6a38bb6e5a4f48df18a7e34655c6b539fbc089c053c93c0985bd874ae70764564ff0206b66d29589f1dec6c1131e375e587409dd81535 +AUX accel-ppp-1.11.1-socklen.patch 483 SHA256 ff430eab2e66dc440afde15eb12dc0ef54353afd36af4859eb09d124b8fae8ce SHA512 6561b95c8cc0ec642c12895426c5b0b8290da9c7e3c9207beb837e50218fec70ead92a680e131f2967d3281a273cc920ccfebbd66aed4579feec61a759b36dd5 WHIRLPOOL 7bb0f96b4ede93191c06b665bd9ef77e794c2ed39f9c22611e0bb5bd0a6a4f6ddd3599bdddbc4c0cf23b842232d5da5e951744c535fc40c9e0f5ae7bf455f7bb +AUX accel-ppp.confd 212 SHA256 aa59531b4fa11bf9a4224b70e4ef6570fd571e01108b30137fabe343cadd3a06 SHA512 39b3fa3e9dbbdfa2e4ea43cdff704924b5da7eef5881488df039b973e828dd08ca9329c4f81343db62f0bf6730ea902708398273dc73d23586bad50e5c0ae441 WHIRLPOOL b3e324fc0d62a5ced99cc07fe2d84a3cd362e2160f7b5faa51e100d0729e048eae7dd067b787e95341c0548bbba828a642540fffcff2610a31bea1c0f7951cea +AUX accel-ppp.initd 975 SHA256 3857162a8cfa70597b8a4f8ee1f7356cd9cec32fe41bdb018ed747fcd86beb20 SHA512 bb4a59f14bf254620925adef1822c8311bdb890f5f8ad296e4b8ee46a7bc6f49536da9e970f2171fe9f24a9b0d50801bc07b5912b44a14b00c4479eda6699c45 WHIRLPOOL 00445c3b27ef2948bd62e14b2db67a6e27cadaa9d3cd1018d5f97c22019c2084159ac1790dd418c1df3fec0a831035142f5045376a1e327e7e249b330c9ab8f0 +DIST accel-ppp-1.11.0.tar.bz2 1594327 SHA256 1b4f02fb0b264d7144c2b3f81c002983aae5b26bcf26af9cd2cd8492222efffe SHA512 907b484e73a4d70757a3991e6f33873aad5f10f6d5180307ee2f3eb0caacc576795d0e9c7666172a00842e6d31563503250f0e8165f6adb2bc88a1270814ea3c WHIRLPOOL 3975b076961c8ed7e3f207309e941785de26452f6ef5490f0668aca19e404e9f2b4ffa978b2af95897fdb339289d578c52f24493a8130ea38ccabe6846363587 +DIST accel-ppp-1.11.1_p20170508.tar.bz2 1609904 SHA256 672a32b990afd970e21188d65b68b1fa067cb272a35686808f21ac66d74e66c3 SHA512 79f928c9d07891957d12443eaf32e96e826d5bebf241dcfcb31a7777fbce2332078bf0c1dd1e1a55cf96154be1fec610f1afd088fc018f54ebd5d265c037c07a WHIRLPOOL 47faf7ee243385c135766a018a51f322b6a1ea2a522d4d0aad674e157ef86e9aa0c1feb1778f17e5c69e89b944652e45f7631fdae48161290fb1a7e4ee66ccd2 +EBUILD accel-ppp-1.11.0.ebuild 2282 SHA256 5d150d6bff6a59a27cf3f0819263752a4ee505a60e1a988bd290763c13c857d8 SHA512 200ab0e64d650ee47726dfbc0033a860316fbe7828defb5d725e23d0586a9016bc19f3929fe4d6a46e16a6dec60f79f47062a8fb9baa99e97114968bdaabfe94 WHIRLPOOL 763a32669b66d6df3401216226292121909e032ae65f5ce66556400811e695c2f5ac2b74bcdf005799117b8b66de95042eae7c42e036847cd9a1bc74736787a2 +EBUILD accel-ppp-1.11.1_p20170508.ebuild 2475 SHA256 c7ee33e8bba4830f2868d12042d5e3eec7a128007ddf174353ff2c55aa676136 SHA512 b624a2a986d5f08a8a7b1b1e0a215f1ea112979281ebe28e83690ffc3b9ec7c167b7763259eed3e2cd61949cbdd5e0c34e59ceee850c907fd21111993e7e55e4 WHIRLPOOL b42e3027f3a48a345054a805123322b72986fa8bd020eb7e599518a5079aa480ec27e4804da90973fa4db0320868922c563a9866b3151744d49b3724a4a9a194 +EBUILD accel-ppp-1.11.9999.ebuild 2342 SHA256 c9c747b3d9c2b4c906f8be8f04da3c0b9078d3dc4d12b7f2f623268036859bd6 SHA512 b8c749745acc321ee77b2b87eea1af70de2c60fc17288fed9998db7d55d773e0926dd24dce166371875a81f92e09251bdd4c9831ae01103eda1e9aadfe85452b WHIRLPOOL 1c325d02f7713c2586ffa7354fc01e8317564d9c32f20ad8fefd66cdf4097a6a27bbc92550982f3b65bfc75fc80de26195aa941ce758e4e2f4c060f9c69d95ea +EBUILD accel-ppp-9999.ebuild 2323 SHA256 1dacc184d6574d4a704e38f4c14b6a9647206611f9f2823e584abe78f4fbd503 SHA512 0978564d9ec8cd4870db60f2c269e291d62074eb755a2765ab43a9b7d2523bcf9606ff8b79cba74fdaccc2d5d00758ddec65bb40d30da56079d002a9391124fe WHIRLPOOL 39d13273aa68776ca2d2db3fa662e91465d890ecb83de1a6dc161366c23104704fefeccbacac4f71707f2a1ae937f8876c2173ff5ee51768414d847e1e06d13d +MISC ChangeLog 4613 SHA256 7dcd1e6907baf10fcab7e932b33102c09660b23608b864ed828132528723b3d5 SHA512 21b88e34cb4d2480dfa786fe8488bf2aef4a0686149ea7fdcd3b147baaf54367f453cb382ee7947b710da1150b25cf651f66d5f7beeddfc8c6d7122ed0eb2483 WHIRLPOOL 8c400501dc1e0db0213eb0db142c3fcd18f0de655ef8346edceff883c98e453aa4b7d9c190760bb319109945cf329d7d6620c1952176543d2a1d5965caa4a1be +MISC ChangeLog-2015 2460 SHA256 0ed7d8b9b44ad4eff4f8559c1503f7696357a03734505ba2c6815750c3ffce8c SHA512 b6b391342750eaccaa3b3908604751e072acb72d4137fdbcb15b9251bce03511f6e0e6c33dcafe6aa053e80fc63791b3a134ff0f037aa89b7a496e7712619d10 WHIRLPOOL 811ba3b0d75710f68908ebd282db36cf5751e89d501de0de8f841da3d1b6f1dbf254514eec94fd3ff845fbacd089a0903010f38337ebc8f1a9682def990dd1b5 +MISC metadata.xml 507 SHA256 e1a5d7d72e0ca0edb208f83a55a2c2c594dfacea5fe44054891328576eeddbb0 SHA512 6b60c890f172501225ed3da4a229298c2b05601606d047bbe46dbea88246bcce8c15695259063daf73574c9d24048b04d2422c83e2e934015768338120e9154e WHIRLPOOL 8b8bbd5e89cd20bd40aa931f52cb32cde1becc69131afbc40c64a5b1477b306fa179075d8853b73d5bbf081879600d90b100811d83d55532e68d45078b5e526e diff --git a/net-dialup/accel-ppp/accel-ppp-1.11.0.ebuild b/net-dialup/accel-ppp/accel-ppp-1.11.0.ebuild new file mode 100644 index 000000000000..03107ba307d5 --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.11.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic linux-info linux-mod + +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' + + # 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 + + # Bug #549918 + append-ldflags -Wl,-z,lazy + + cmake-utils_src_prepare +} + +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_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO=OPENSSL + -DLOG_PGSQL="$(usex postgres)" + -DMEMDEBUG="$(usex debug)" + -DNETSNMP="$(usex snmp)" + -DRADIUS="$(usex radius)" + -DSHAPER="$(usex shaper)" + -DVALGRIND="$(usex valgrind)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_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-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/accel-ppp-1.11.1_p20170508.ebuild b/net-dialup/accel-ppp/accel-ppp-1.11.1_p20170508.ebuild new file mode 100644 index 000000000000..e69b411d936d --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.11.1_p20170508.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic linux-info linux-mod + +DESCRIPTION="High performance PPTP, PPPoE and L2TP server" +HOMEPAGE="http://accel-ppp.sourceforge.net/" +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? ( dev-lang/lua:0 ) + 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 )" + +PATCHES=( + "${FILESDIR}/${PN}-1.11.1-linux-4.10.patch" + "${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 +} + +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' + + # 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 + + # Bug #549918 + append-ldflags -Wl,-z,lazy + + cmake-utils_src_prepare +} + +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_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO=OPENSSL + -DLOG_PGSQL="$(usex postgres)" + -DLUA="$(usex lua)" + -DMEMDEBUG="$(usex debug)" + -DNETSNMP="$(usex snmp)" + -DRADIUS="$(usex radius)" + -DSHAPER="$(usex shaper)" + -DVALGRIND="$(usex valgrind)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_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-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/accel-ppp-1.11.9999.ebuild b/net-dialup/accel-ppp/accel-ppp-1.11.9999.ebuild new file mode 100644 index 000000000000..f4c53dbb43ea --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-1.11.9999.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGIT_REPO_URI="git://git.code.sf.net/p/accel-ppp/code" +EGIT_BRANCH="1.11" +inherit cmake-utils flag-o-matic git-r3 linux-info linux-mod + +DESCRIPTION="High performance PPTP, PPPoE and L2TP server" +HOMEPAGE="http://accel-ppp.sourceforge.net/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind" + +RDEPEND="lua? ( dev-lang/lua:0 ) + 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' + + # 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 + + # Bug #549918 + append-ldflags -Wl,-z,lazy + + cmake-utils_src_prepare +} + +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_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO=OPENSSL + -DLOG_PGSQL="$(usex postgres)" + -DMEMDEBUG="$(usex debug)" + -DNETSNMP="$(usex snmp)" + -DRADIUS="$(usex radius)" + -DSHAPER="$(usex shaper)" + -DVALGRIND="$(usex valgrind)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_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-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/accel-ppp-9999.ebuild b/net-dialup/accel-ppp/accel-ppp-9999.ebuild new file mode 100644 index 000000000000..0630264eef34 --- /dev/null +++ b/net-dialup/accel-ppp/accel-ppp-9999.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGIT_REPO_URI="git://git.code.sf.net/p/accel-ppp/code" +inherit cmake-utils flag-o-matic git-r3 linux-info linux-mod + +DESCRIPTION="High performance PPTP, PPPoE and L2TP server" +HOMEPAGE="http://accel-ppp.sourceforge.net/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind" + +RDEPEND="lua? ( dev-lang/lua:0 ) + 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' + + # 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 + + # Bug #549918 + append-ldflags -Wl,-z,lazy + + cmake-utils_src_prepare +} + +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_IPOE_DRIVER="$(usex ipoe)" + -DBUILD_PPTP_DRIVER=no + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)" + -DCRYPTO=OPENSSL + -DLOG_PGSQL="$(usex postgres)" + -DMEMDEBUG="$(usex debug)" + -DNETSNMP="$(usex snmp)" + -DRADIUS="$(usex radius)" + -DSHAPER="$(usex shaper)" + -DVALGRIND="$(usex valgrind)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_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-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/files/accel-ppp-1.11.1-linux-4.10.patch b/net-dialup/accel-ppp/files/accel-ppp-1.11.1-linux-4.10.patch new file mode 100644 index 000000000000..568a405fd69c --- /dev/null +++ b/net-dialup/accel-ppp/files/accel-ppp-1.11.1-linux-4.10.patch @@ -0,0 +1,80 @@ +--- ./drivers/ipoe/ipoe.c.orig 2016-11-28 14:28:33.000000000 +0300 ++++ ./drivers/ipoe/ipoe.c 2017-05-17 11:27:42.030000000 +0300 +@@ -52,6 +52,27 @@ + #define DEFINE_SEMAPHORE(name) struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0) ++static inline int ++_genl_register_family_with_ops_grps(struct genl_family *family, ++ const struct genl_ops *ops, size_t n_ops, ++ const struct genl_multicast_group *mcgrps, ++ size_t n_mcgrps) ++{ ++ family->module = THIS_MODULE; ++ family->ops = ops; ++ family->n_ops = n_ops; ++ family->mcgrps = mcgrps; ++ family->n_mcgrps = n_mcgrps; ++ return genl_register_family(family); ++} ++ ++#define genl_register_family_with_ops_groups(family, ops, grps) \ ++ _genl_register_family_with_ops_grps((family), \ ++ (ops), ARRAY_SIZE(ops), \ ++ (grps), ARRAY_SIZE(grps)) ++#endif ++ + struct ipoe_stats { + struct u64_stats_sync sync; + u64 packets; +@@ -1668,7 +1689,9 @@ + }; + + static struct genl_family ipoe_nl_family = { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0) + .id = GENL_ID_GENERATE, ++#endif + .name = IPOE_GENL_NAME, + .version = IPOE_GENL_VERSION, + .hdrsize = 0, +--- ./drivers/vlan_mon/vlan_mon.c.orig 2017-05-17 11:28:23.320000000 +0300 ++++ ./drivers/vlan_mon/vlan_mon.c 2017-05-17 11:29:41.660000000 +0300 +@@ -39,6 +39,27 @@ + #define vlan_tx_tag_present(skb) skb_vlan_tag_present(skb) + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0) ++static inline int ++_genl_register_family_with_ops_grps(struct genl_family *family, ++ const struct genl_ops *ops, size_t n_ops, ++ const struct genl_multicast_group *mcgrps, ++ size_t n_mcgrps) ++{ ++ family->module = THIS_MODULE; ++ family->ops = ops; ++ family->n_ops = n_ops; ++ family->mcgrps = mcgrps; ++ family->n_mcgrps = n_mcgrps; ++ return genl_register_family(family); ++} ++ ++#define genl_register_family_with_ops_groups(family, ops, grps) \ ++ _genl_register_family_with_ops_grps((family), \ ++ (ops), ARRAY_SIZE(ops), \ ++ (grps), ARRAY_SIZE(grps)) ++#endif ++ + struct vlan_dev { + unsigned int magic; + int ifindex; +@@ -660,7 +681,9 @@ + }; + + static struct genl_family vlan_mon_nl_family = { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0) + .id = GENL_ID_GENERATE, ++#endif + .name = VLAN_MON_GENL_NAME, + .version = VLAN_MON_GENL_VERSION, + .hdrsize = 0, diff --git a/net-dialup/accel-ppp/files/accel-ppp-1.11.1-socklen.patch b/net-dialup/accel-ppp/files/accel-ppp-1.11.1-socklen.patch new file mode 100644 index 000000000000..79f76cae98a3 --- /dev/null +++ b/net-dialup/accel-ppp/files/accel-ppp-1.11.1-socklen.patch @@ -0,0 +1,18 @@ +commit 68008248259dfaa2fde91f8697db889971056bb3 +Author: lmwangi <lmwangi@gmail.com> +Date: Tue Jun 7 13:55:04 2016 +0300 + + fix build issue where socketlen is not found + +diff --git a/accel-pppd/logs/log_pgsql.c b/accel-pppd/logs/log_pgsql.c +index e4b5a9e..78fa72d 100644 +--- a/accel-pppd/logs/log_pgsql.c ++++ b/accel-pppd/logs/log_pgsql.c +@@ -1,6 +1,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <sys/socket.h> + + #include <postgresql/libpq-fe.h> + diff --git a/net-dialup/accel-ppp/files/accel-ppp.confd b/net-dialup/accel-ppp/files/accel-ppp.confd new file mode 100644 index 000000000000..41073c6529c6 --- /dev/null +++ b/net-dialup/accel-ppp/files/accel-ppp.confd @@ -0,0 +1,10 @@ +# Config file for accel-pppd + +# Pid file +ACCEL_PPPD_PID="/run/accel-ppp/accel-pppd.pid" + +# Directory for radius attributes +RADATTR_DIR="/run/radattr" + +# Daemon options +ACCEL_PPPD_OPTS="-d -c /etc/accel-ppp.conf" diff --git a/net-dialup/accel-ppp/files/accel-ppp.initd b/net-dialup/accel-ppp/files/accel-ppp.initd new file mode 100644 index 000000000000..abbc4286228a --- /dev/null +++ b/net-dialup/accel-ppp/files/accel-ppp.initd @@ -0,0 +1,44 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +extra_started_commands="reload" + +depend() { + need net +} + +start_pre() { + # Create directory for PID file + checkpath -d -q "$(dirname ${ACCEL_PPPD_PID})" + # Create default directory for radius attributes + checkpath -d -q "${RADATTR_DIR}" +} + +start() { + ebegin "Starting accel-pppd" + start-stop-daemon --start --quiet --exec /usr/sbin/accel-pppd -- ${ACCEL_PPPD_OPTS} -p ${ACCEL_PPPD_PID} + eend $? +} + +stop() { + ebegin "Stopping accel-pppd" + accel-cmd shutdown + [ $? -ne 0 ] && kill -9 $(pidof accel-pppd) + PID="$(cat ${ACCEL_PPPD_PID})" + while [ -n "${PID}" -a -d "/proc/${PID}" ]; do + sleep 1 + done + rm -f ${ACCEL_PPPD_PID} + eend 0 +} + +reload() { + if [ ! -f ${ACCEL_PPPD_PID} ]; then + eerror "accel-pppd isn't running" + return 1 + fi + ebegin "Reloading configuration" + start-stop-daemon --signal USR1 --pidfile ${ACCEL_PPPD_PID} + eend $? +} diff --git a/net-dialup/accel-ppp/metadata.xml b/net-dialup/accel-ppp/metadata.xml new file mode 100644 index 000000000000..138dfdc41815 --- /dev/null +++ b/net-dialup/accel-ppp/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pinkbyte@gentoo.org</email> + <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> + <upstream> + <remote-id type="sourceforge">accel-ppp</remote-id> + </upstream> +</pkgmetadata> |