Сравнение accel-ppp-1.12.0_p20220830-r1 с accel-ppp-1.12.0_p20230609
/usr/portage/net-dialup/accel-ppp/accel-ppp-1.12.0_p20230609.ebuild 2023-10-09 14:52:33.348368447 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 | 6 |
LUA_COMPAT=( lua5-1 ) |
7 | ||
8 |
inherit cmake flag-o-matic linux-info linux-mod lua-single |
|
7 |
MODULES_OPTIONAL_IUSE="ipoe" |
|
8 |
inherit cmake flag-o-matic linux-mod-r1 lua-single |
|
9 | 9 | |
10 | 10 |
DESCRIPTION="High performance PPTP, PPPoE and L2TP server" |
11 | 11 |
HOMEPAGE="https://sourceforge.net/projects/accel-ppp/" |
... | ... | |
14 | 14 |
LICENSE="GPL-2" |
15 | 15 |
SLOT="0" |
16 | 16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="debug doc ipoe libtomcrypt lua postgres radius shaper snmp valgrind" |
|
17 |
IUSE="debug doc libtomcrypt lua postgres radius shaper snmp valgrind" |
|
18 | 18 | |
19 | 19 |
RDEPEND="!libtomcrypt? ( dev-libs/openssl:0= ) |
20 | 20 |
libtomcrypt? ( dev-libs/libtomcrypt:0= ) |
... | ... | |
40 | 40 |
S="${WORKDIR}" |
41 | 41 | |
42 | 42 |
pkg_setup() { |
43 |
if use ipoe; then |
|
44 |
linux-mod_pkg_setup |
|
45 |
set_arch_to_kernel |
|
46 |
else |
|
47 |
linux-info_pkg_setup |
|
48 |
fi |
|
43 |
linux-mod-r1_pkg_setup |
|
44 |
set_arch_to_kernel |
|
49 | 45 |
use lua && lua-single_pkg_setup |
50 | 46 |
} |
51 | 47 | |
... | ... | |
90 | 86 |
} |
91 | 87 | |
92 | 88 |
src_compile() { |
89 |
local modlist=( ipoe=accel-ppp:drivers/ipoe vlan_mon=accel-ppp:drivers/vlan_mon ) |
|
90 |
MODULES_MAKEARGS+=( |
|
91 |
KDIR="${KV_OUT_DIR}" |
|
92 |
) |
|
93 |
linux-mod-r1_src_compile |
|
93 | 94 |
cmake_src_compile |
94 | 95 |
} |
95 | 96 | |
96 | 97 |
src_install() { |
97 |
if use ipoe; then |
|
98 |
local MODULE_NAMES="ipoe(accel-ppp:${BUILD_DIR}/drivers/ipoe/driver) vlan_mon(accel-ppp:${BUILD_DIR}/drivers/vlan_mon/driver)" |
|
99 |
linux-mod_src_install |
|
100 |
fi |
|
101 | ||
98 |
linux-mod-r1_src_install |
|
102 | 99 |
cmake_src_install |
103 | 100 | |
104 | 101 |
use doc && dodoc -r rfc |