Сравнение dahdi-3.1.0-r3 с dahdi-3.1.0-r4

/usr/portage/net-misc/dahdi/dahdi-3.1.0-r4.ebuild 2023-10-09 14:52:34.640368480 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit flag-o-matic linux-mod linux-info toolchain-funcs
6
inherit flag-o-matic linux-mod toolchain-funcs
7 7

  
8 8
MY_P="${P/dahdi/dahdi-linux}"
9 9
JNET=1.0.14
10
GENTOO=3.1.0-r3
10
GENTOO_PATCHVERSION=3.1.0-r4
11
GENTOO_SOURCEVERSION=3.1.0-r4
11 12
S="${WORKDIR}/${MY_P}"
12 13

  
13 14
JNET_DRIVERS="cwain qozap ztgsm"
......
16 17
HOMEPAGE="https://www.asterisk.org"
17 18
SRC_URI="https://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/${MY_P}.tar.gz
18 19
	https://www.junghanns.net/downloads/jnet-dahdi-drivers-${JNET}.tar.gz
19
	https://downloads.uls.co.za/gentoo/dahdi/gentoo-dahdi-patchset-${GENTOO}.tar.bz2
20
	https://downloads.uls.co.za/gentoo/dahdi/gentoo-dahdi-patches-${GENTOO_PATCHVERSION}.tar.bz2
21
	https://downloads.uls.co.za/gentoo/dahdi/gentoo-dahdi-sources-${GENTOO_SOURCEVERSION}.tar.bz2
20 22
	https://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
21 23
	https://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a4a-a0017.tar.gz
22 24
	https://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a4b-d001e.tar.gz
......
38 40

  
39 41
LICENSE="LGPL-2.1"
40 42
SLOT="0"
41
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
43
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
42 44
IUSE="flash oslec"
43 45

  
44
PATCHES=( "${WORKDIR}/dahdi-patchset" )
46
PATCHES=( "${WORKDIR}/gentoo-dahdi-patches-${GENTOO_PATCHVERSION}" )
45 47

  
46 48
CONFIG_CHECK="MODULES PCI ~CRC_CCITT"
47 49

  
48
pkg_pretend() {
50
pkg_setup() {
49 51
	use oslec && CONFIG_CHECK+=" ECHO"
50
	check_extra_config
52
	linux-mod_pkg_setup
51 53
}
52 54

  
53 55
src_unpack() {
56
	local file drv
57

  
54 58
	unpack ${A}
55 59
	# Copy the firmware tarballs over, the makefile will try and download them otherwise
56 60
	for file in ${A} ; do
......
68 72
		ln "${WORKDIR}/jnet-dahdi-drivers-${JNET}/${drv}/${drv}.h" "${MY_P}/drivers/dahdi/" ||
69 73
			die "Error linking ${drv}.h from jnet to DAHDI."
70 74
	done
75

  
76
	# Find the stuff from gentoo-sources (ie, modules that has been removed by
77
	# upstream and we're re-adding).
78
	DAHDI_GENTOO_MODULES=""
79
	for file in "${WORKDIR}/gentoo-dahdi-sources-${GENTOO_SOURCEVERSION}"/*; do
80
		[[ -d "${file}" ]] && DAHDI_GENTOO_MODULES+=" $(basename "${file}")/"
81
		[[ -f "${file}" && "${file}" = *.c ]] && DAHDI_GENTOO_MODULES+=" $(basename "${file}" .c).o"
82
		mv -n "${file}" "${MY_P}/drivers/dahdi/" || die "Move of ${file} into dahdi-drivers failed."
83
	done
71 84
}
72 85

  
73 86
src_prepare() {
......
94 107
src_install() {
95 108
	einfo "Installing kernel module"
96 109
	emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" KSRC="${KV_OUT_DIR}" DESTDIR="${D}" \
97
		DAHDI_MODULES_EXTRA="${JNET_DRIVERS// /.o }.o$(usex oslec " dahdi_echocan_oslec.o" "")" \
110
		DAHDI_MODULES_EXTRA="${JNET_DRIVERS// /.o }.o$(usex oslec " dahdi_echocan_oslec.o" "")${DAHDI_GENTOO_MODULES}" \
98 111
		LDFLAGS="$(raw-ldflags)" install
99 112

  
100 113
	# Remove the blank "version" files (these files are all empty, and root owned).
Спасибо!