Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/accel-ppp/, profiles/
Date: Tue, 22 Dec 2020 19:56:25
Message-Id: 1608666972.292933c82b06f3a1a3a64716476ab1287846aafd.marecki@gentoo
1 commit: 292933c82b06f3a1a3a64716476ab1287846aafd
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 19:54:28 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 19:56:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=292933c8
7
8 net-dialup/accel-ppp: migrate to lua-single.eclass
9
10 Locked to lua5.1 by upstream build scripts.
11
12 Closes: https://bugs.gentoo.org/752792
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 ...uild => accel-ppp-1.12.0_p20200913-r100.ebuild} | 25 ++++++++++++++++------
16 net-dialup/accel-ppp/accel-ppp-9999.ebuild | 10 ++++++---
17 profiles/package.mask | 1 +
18 3 files changed, 27 insertions(+), 9 deletions(-)
19
20 diff --git a/net-dialup/accel-ppp/accel-ppp-9999.ebuild b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild
21 similarity index 80%
22 copy from net-dialup/accel-ppp/accel-ppp-9999.ebuild
23 copy to net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild
24 index 3f8aec7348a..7443db97680 100644
25 --- a/net-dialup/accel-ppp/accel-ppp-9999.ebuild
26 +++ b/net-dialup/accel-ppp/accel-ppp-1.12.0_p20200913-r100.ebuild
27 @@ -3,19 +3,20 @@
28
29 EAPI=7
30
31 -EGIT_REPO_URI="https://github.com/accel-ppp/accel-ppp.git"
32 -inherit cmake flag-o-matic git-r3 linux-info linux-mod
33 +LUA_COMPAT=( lua5-1 )
34 +
35 +inherit cmake flag-o-matic linux-info linux-mod lua-single
36
37 DESCRIPTION="High performance PPTP, PPPoE and L2TP server"
38 HOMEPAGE="https://sourceforge.net/projects/accel-ppp/"
39 -SRC_URI=""
40 +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.bz2"
41
42 LICENSE="GPL-2"
43 SLOT="0"
44 -KEYWORDS=""
45 +KEYWORDS="~amd64 ~x86"
46 IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind"
47
48 -RDEPEND="lua? ( dev-lang/lua:0 )
49 +RDEPEND="lua? ( ${LUA_DEPS} )
50 postgres? ( dev-db/postgresql:* )
51 snmp? ( net-analyzer/net-snmp )
52 dev-libs/libpcre
53 @@ -28,7 +29,14 @@ DOCS=( README )
54
55 CONFIG_CHECK="~L2TP ~PPPOE ~PPTP"
56
57 -REQUIRED_USE="valgrind? ( debug )"
58 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
59 + valgrind? ( debug )"
60 +
61 +PATCHES=(
62 + "${FILESDIR}/${PN}-1.11.1-socklen.patch"
63 +)
64 +
65 +S="${WORKDIR}"
66
67 pkg_setup() {
68 if use ipoe; then
69 @@ -37,6 +45,7 @@ pkg_setup() {
70 else
71 linux-info_pkg_setup
72 fi
73 + use lua && lua-single_pkg_setup
74 }
75
76 src_prepare() {
77 @@ -48,6 +57,10 @@ src_prepare() {
78 drivers/ipoe/CMakeLists.txt \
79 drivers/vlan_mon/CMakeLists.txt || die
80
81 + # Fix version
82 + sed -i -e "s/1.11/${PV}/" drivers/ipoe/ipoe.c || die
83 + sed -i -e "s/1.11/${PV}/" drivers/vlan_mon/vlan_mon.c || die
84 +
85 # Bug #549918
86 append-ldflags -Wl,-z,lazy
87
88
89 diff --git a/net-dialup/accel-ppp/accel-ppp-9999.ebuild b/net-dialup/accel-ppp/accel-ppp-9999.ebuild
90 index 3f8aec7348a..fd43b44ecd2 100644
91 --- a/net-dialup/accel-ppp/accel-ppp-9999.ebuild
92 +++ b/net-dialup/accel-ppp/accel-ppp-9999.ebuild
93 @@ -3,8 +3,10 @@
94
95 EAPI=7
96
97 +LUA_COMPAT=( lua5-1 )
98 +
99 EGIT_REPO_URI="https://github.com/accel-ppp/accel-ppp.git"
100 -inherit cmake flag-o-matic git-r3 linux-info linux-mod
101 +inherit cmake flag-o-matic git-r3 linux-info linux-mod lua-single
102
103 DESCRIPTION="High performance PPTP, PPPoE and L2TP server"
104 HOMEPAGE="https://sourceforge.net/projects/accel-ppp/"
105 @@ -15,7 +17,7 @@ SLOT="0"
106 KEYWORDS=""
107 IUSE="debug doc ipoe lua postgres radius shaper snmp valgrind"
108
109 -RDEPEND="lua? ( dev-lang/lua:0 )
110 +RDEPEND="lua? ( ${LUA_DEPS} )
111 postgres? ( dev-db/postgresql:* )
112 snmp? ( net-analyzer/net-snmp )
113 dev-libs/libpcre
114 @@ -28,7 +30,8 @@ DOCS=( README )
115
116 CONFIG_CHECK="~L2TP ~PPPOE ~PPTP"
117
118 -REQUIRED_USE="valgrind? ( debug )"
119 +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
120 + valgrind? ( debug )"
121
122 pkg_setup() {
123 if use ipoe; then
124 @@ -37,6 +40,7 @@ pkg_setup() {
125 else
126 linux-info_pkg_setup
127 fi
128 + use lua && lua-single_pkg_setup
129 }
130
131 src_prepare() {
132
133 diff --git a/profiles/package.mask b/profiles/package.mask
134 index 9aa573146ec..af34e5ed319 100644
135 --- a/profiles/package.mask
136 +++ b/profiles/package.mask
137 @@ -550,6 +550,7 @@ kde-apps/kdebase-meta:5
138 >=net-analyzer/suricata-6.0.1-r100
139 >=net-analyzer/tracebox-0.4.4-r100
140 >=net-analyzer/wireshark-3.4.2-r100
141 +>=net-dialup/accel-ppp-1.12.0_p20200913-r100
142 >=net-dns/dnsmasq-2.82-r100
143 >=net-im/prosody-0.11.7-r100
144 >=net-im/swift-4.0.2-r100