Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/accel-ppp/
Date: Thu, 05 May 2016 15:16:20
Message-Id: 1462461364.939d514e835ffd0f82ab4727407368df872d7025.pinkbyte@gentoo
1 commit: 939d514e835ffd0f82ab4727407368df872d7025
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 5 15:14:26 2016 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Thu May 5 15:16:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=939d514e
7
8 net-dialup/accel-ppp: add live ebuilds for 1.10 and master branches
9
10 Package-Manager: portage-2.2.28
11
12 net-dialup/accel-ppp/Manifest | 1 -
13 net-dialup/accel-ppp/accel-ppp-1.10.9999.ebuild | 96 +++++++++++++++++++++++
14 net-dialup/accel-ppp/accel-ppp-9999.ebuild | 100 ++++++++++++++++++++++++
15 3 files changed, 196 insertions(+), 1 deletion(-)
16
17 diff --git a/net-dialup/accel-ppp/Manifest b/net-dialup/accel-ppp/Manifest
18 index fe9feea..087a6ea 100644
19 --- a/net-dialup/accel-ppp/Manifest
20 +++ b/net-dialup/accel-ppp/Manifest
21 @@ -1,2 +1 @@
22 -DIST accel-ppp-1.10.1.tar.bz2 1587117 SHA256 2333897563925d719b1b5e6fd05238fe769b967a9bac73d3b1daa1b8ff274b7d SHA512 43dc01992a8298970911d202736af0dcd3b46744d18ecce5d4987bab8d312cfb75d5a72a6f5c1b91ad7943c2c66371063402688cce57106db116b407205f142b WHIRLPOOL 0ce66a3a0daf6f4902baf7bf8ace545c1a2e8e9105bb62dc7dad96d3da131a215da17d6e722488fc9388acfb4a7f028bf9904e62c8c7a43fa7d2cb3aa9a7ca81
23 DIST accel-ppp-1.10.2.tar.bz2 1587850 SHA256 ffd339ff1589c8b9e306028844e7156ee6d2b019b1219f1b8b62314c835e8a7d SHA512 6cc1d5f0786196fbbebc0f04830f780c1f2d2995bc7fb6384729b64820c74d0fb53f052bdaa71fa3b6165ab13cd7c137bfdc3ef717f6e866a329b893d7375ce1 WHIRLPOOL 050a5fe5eafba1e90f7b200a476e2edfbb878039a8e4ac5d06fdc195ad72720d7382267b7181e2a8ec47c2db8da4664b1315dff75ffcbc087c0e7e035577862c
24
25 diff --git a/net-dialup/accel-ppp/accel-ppp-1.10.9999.ebuild b/net-dialup/accel-ppp/accel-ppp-1.10.9999.ebuild
26 new file mode 100644
27 index 0000000..1f8c989
28 --- /dev/null
29 +++ b/net-dialup/accel-ppp/accel-ppp-1.10.9999.ebuild
30 @@ -0,0 +1,96 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +EGIT_REPO_URI="git://git.code.sf.net/p/accel-ppp/code"
38 +EGIT_BRANCH="1.10"
39 +inherit cmake-utils flag-o-matic git-r3 linux-info linux-mod
40 +
41 +DESCRIPTION="High performance PPTP, PPPoE and L2TP server"
42 +HOMEPAGE="http://accel-ppp.sourceforge.net/"
43 +SRC_URI=""
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS=""
48 +IUSE="debug doc ipoe postgres radius shaper snmp valgrind"
49 +
50 +RDEPEND="postgres? ( dev-db/postgresql:* )
51 + snmp? ( net-analyzer/net-snmp )
52 + dev-libs/libpcre
53 + dev-libs/openssl:0"
54 +DEPEND="${RDEPEND}
55 + valgrind? ( dev-util/valgrind )"
56 +PDEPEND="net-dialup/ppp-scripts"
57 +
58 +DOCS=( README )
59 +
60 +CONFIG_CHECK="~L2TP ~PPPOE ~PPTP"
61 +
62 +REQUIRED_USE="valgrind? ( debug )"
63 +
64 +pkg_setup() {
65 + if use ipoe; then
66 + linux-mod_pkg_setup
67 + set_arch_to_kernel
68 + else
69 + linux-info_pkg_setup
70 + fi
71 +}
72 +
73 +src_prepare() {
74 + sed -i -e "/mkdir/d" \
75 + -e "/echo/d" \
76 + -e "s: RENAME accel-ppp.conf.dist::" accel-pppd/CMakeLists.txt || die 'sed on accel-pppd/CMakeLists.txt failed'
77 + sed -i -e '/modules_install/d' drivers/ipoe/CMakeLists.txt || die 'sed on drivers/ipoe/CMakeLists.txt failed'
78 +
79 + # Bug #549918
80 + append-ldflags -Wl,-z,lazy
81 +
82 + cmake-utils_src_prepare
83 +}
84 +
85 +src_configure() {
86 + local libdir="$(get_libdir)"
87 + # There must be also dev-libs/tomcrypt (TOMCRYPT) as crypto alternative to OpenSSL
88 + local mycmakeargs=(
89 + -DLIB_PATH_SUFFIX="${libdir#lib}"
90 + -DBUILD_IPOE_DRIVER="$(usex ipoe)"
91 + -DBUILD_PPTP_DRIVER=no
92 + -DCRYPTO=OPENSSL
93 + -DLOG_PGSQL="$(usex postgres)"
94 + -DMEMDEBUG="$(usex debug)"
95 + -DNETSNMP="$(usex snmp)"
96 + -DRADIUS="$(usex radius)"
97 + -DSHAPER="$(usex shaper)"
98 + -DVALGRIND="$(usex valgrind)"
99 + )
100 + cmake-utils_src_configure
101 +}
102 +
103 +src_compile() {
104 + cmake-utils_src_compile
105 +}
106 +
107 +src_install() {
108 + if use ipoe; then
109 + local MODULE_NAMES="ipoe(accel-ppp:${BUILD_DIR}/drivers/ipoe/driver)"
110 + linux-mod_src_install
111 + fi
112 +
113 + cmake-utils_src_install
114 +
115 + use doc && dodoc -r rfc
116 +
117 + if use snmp; then
118 + insinto /usr/share/snmp/mibs
119 + doins accel-pppd/extra/net-snmp/ACCEL-PPP-MIB.txt
120 + fi
121 +
122 + newinitd "${FILESDIR}"/${PN}.initd ${PN}d
123 + newconfd "${FILESDIR}"/${PN}.confd ${PN}d
124 +
125 + dodir /var/log/accel-ppp
126 +}
127
128 diff --git a/net-dialup/accel-ppp/accel-ppp-9999.ebuild b/net-dialup/accel-ppp/accel-ppp-9999.ebuild
129 new file mode 100644
130 index 0000000..c8b5751
131 --- /dev/null
132 +++ b/net-dialup/accel-ppp/accel-ppp-9999.ebuild
133 @@ -0,0 +1,100 @@
134 +# Copyright 1999-2016 Gentoo Foundation
135 +# Distributed under the terms of the GNU General Public License v2
136 +# $Id$
137 +
138 +EAPI=6
139 +
140 +EGIT_REPO_URI="git://git.code.sf.net/p/accel-ppp/code"
141 +inherit cmake-utils flag-o-matic git-r3 linux-info linux-mod
142 +
143 +DESCRIPTION="High performance PPTP, PPPoE and L2TP server"
144 +HOMEPAGE="http://accel-ppp.sourceforge.net/"
145 +SRC_URI=""
146 +
147 +LICENSE="GPL-2"
148 +SLOT="0"
149 +KEYWORDS=""
150 +IUSE="debug doc ipoe postgres radius shaper snmp valgrind"
151 +
152 +RDEPEND="postgres? ( dev-db/postgresql:* )
153 + snmp? ( net-analyzer/net-snmp )
154 + dev-libs/libpcre
155 + dev-libs/openssl:0"
156 +DEPEND="${RDEPEND}
157 + valgrind? ( dev-util/valgrind )"
158 +PDEPEND="net-dialup/ppp-scripts"
159 +
160 +DOCS=( README )
161 +
162 +CONFIG_CHECK="~L2TP ~PPPOE ~PPTP"
163 +
164 +REQUIRED_USE="valgrind? ( debug )"
165 +
166 +pkg_setup() {
167 + if use ipoe; then
168 + linux-mod_pkg_setup
169 + set_arch_to_kernel
170 + else
171 + linux-info_pkg_setup
172 + fi
173 +}
174 +
175 +src_prepare() {
176 + sed -i -e "/mkdir/d" \
177 + -e "/echo/d" \
178 + -e "s: RENAME accel-ppp.conf.dist::" accel-pppd/CMakeLists.txt || die 'sed on accel-pppd/CMakeLists.txt failed'
179 +
180 + # Do not install kernel modules like that - breaks sandbox!
181 + sed -i -e '/modules_install/d' \
182 + drivers/ipoe/CMakeLists.txt \
183 + drivers/vlan_mon/CMakeLists.txt || die
184 +
185 + # Bug #549918
186 + append-ldflags -Wl,-z,lazy
187 +
188 + cmake-utils_src_prepare
189 +}
190 +
191 +src_configure() {
192 + local libdir="$(get_libdir)"
193 + # There must be also dev-libs/tomcrypt (TOMCRYPT) as crypto alternative to OpenSSL
194 + local mycmakeargs=(
195 + -DLIB_PATH_SUFFIX="${libdir#lib}"
196 + -DBUILD_IPOE_DRIVER="$(usex ipoe)"
197 + -DBUILD_PPTP_DRIVER=no
198 + -DBUILD_VLAN_MON_DRIVER="$(usex ipoe)"
199 + -DCRYPTO=OPENSSL
200 + -DLOG_PGSQL="$(usex postgres)"
201 + -DMEMDEBUG="$(usex debug)"
202 + -DNETSNMP="$(usex snmp)"
203 + -DRADIUS="$(usex radius)"
204 + -DSHAPER="$(usex shaper)"
205 + -DVALGRIND="$(usex valgrind)"
206 + )
207 + cmake-utils_src_configure
208 +}
209 +
210 +src_compile() {
211 + cmake-utils_src_compile
212 +}
213 +
214 +src_install() {
215 + if use ipoe; then
216 + local MODULE_NAMES="ipoe(accel-ppp:${BUILD_DIR}/drivers/ipoe/driver) vlan_mon(accel-ppp:${BUILD_DIR}/drivers/vlan_mon/driver)"
217 + linux-mod_src_install
218 + fi
219 +
220 + cmake-utils_src_install
221 +
222 + use doc && dodoc -r rfc
223 +
224 + if use snmp; then
225 + insinto /usr/share/snmp/mibs
226 + doins accel-pppd/extra/net-snmp/ACCEL-PPP-MIB.txt
227 + fi
228 +
229 + newinitd "${FILESDIR}"/${PN}.initd ${PN}d
230 + newconfd "${FILESDIR}"/${PN}.confd ${PN}d
231 +
232 + dodir /var/log/accel-ppp
233 +}