Diff tw_cli-10.2.2.1 with a tw_cli-10.2.2.1-r1

/usr/portage/sys-block/tw_cli/tw_cli-10.2.2.1-r1.ebuild 2019-10-07 22:09:00.000000000 +0300
11 11

  
12 12
SRC_URI_BASE="http://www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/"
13 13
SRC_URI_A_linux="CLI_linux-from_the_${PV}_${ThreeDM2_PV}_codesets.zip"
14
SRC_URI_A_fbsd="CLI_freebsd-from_the_${PV}_${ThreeDM2_PV}_codesets.zip"
15
SRC_URI="kernel_linux? ( ${SRC_URI_BASE}/${SRC_URI_A_linux} )
16
		 kernel_FreeBSD? ( ${SRC_URI_BASE}/${SRC_URI_A_fbsd} )
17
		 https://gitweb.gentoo.org/repo/gentoo.git/plain/licenses/LSI-tw_cli"
14
#SRC_URI_A_fbsd="CLI_freebsd-from_the_${PV}_${ThreeDM2_PV}_codesets.zip"
15
# 10.2.2.1 special case:
16
# Newer kernels cause a segmentation fault, and a special build is available for Linux only.
17
# https://www.broadcom.com/support/knowledgebase/1211161501805/debian-8-twcli-causes-fault-segment-failure
18
EXTRA_linux="https://docs.broadcom.com/docs-and-downloads/kb-documents/lsi/368_tw_cli_debian8_beta.tgz"
19
EXTRA_fbsd=""
20
[ -n "${SRC_URI_A_linux}${EXTRA_linux}" ] && SRC_URI+=" kernel_linux? ( ${SRC_URI_A_linux:+${SRC_URI_BASE}/}${SRC_URI_A_linux} ${EXTRA_linux} )"
21
[ -n "${SRC_URI_A_fbsd}${EXTRA_fbsd}" ] && SRC_URI+=" kernel_FreeBSD? ( ${SRC_URI_A_fbsd:+${SRC_URI_BASE}/}${SRC_URI_A_fbsd} ${EXTRA_fbsd} )"
18 22
# The license is not available easily from upstream (embedded in a textbox),
19 23
# nor in the upstream tarball, but needs to be installed, and can't be
20 24
# referenced via PORTDIR per bug #373349.
25
SRC_URI+=" https://gitweb.gentoo.org/repo/gentoo.git/plain/licenses/LSI-tw_cli"
26

  
21 27
# the minor ver on the end changes...
22 28
RELNOTES="${SRC_URI_BASE}/${PV}_Release_Notes.pdf"
23 29

  
......
50 56

  
51 57
# This package can never enter stable, it can't be mirrored and upstream
52 58
# can remove the distfiles from their mirror anytime.
53
KEYWORDS="-* ~amd64 ~x86"
59
KEYWORDS="-* amd64 x86"
54 60
IUSE=""
55 61

  
56 62
RESTRICT="strip"
......
67 73
pkg_nofetch() {
68 74
	einfo "Upstream has implemented a mandatory clickthrough EULA for distfile download"
69 75
	einfo "Please visit ${SRC_URI}"
70
	einfo "And place ${A} into your DISTDIR directory"
76
	einfo "And place ${A} into your DISTDIR directory."
71 77
}
72 78

  
73 79
src_install() {
74 80
	case ${ARCH} in
75
		amd64) CLI_BIN=x86_64/tw_cli;;
76
		x86) CLI_BIN=x86/tw_cli;;
81
		# Special case per 10.2.2.1 segfault
82
		amd64) CLI_BIN=debian8/x86_64/tw_cli ;;
83
		x86) CLI_BIN=debian8/x86/tw_cli ;;
84
		#amd64) CLI_BIN=x86_64/tw_cli;;
85
		#x86) CLI_BIN=x86/tw_cli;;
77 86
		*) die "unsupported ARCH";;
78 87
	esac
79 88
	exeinto /opt/tw_cli
80 89
	# The names have varied in the past, sometimes there is a suffix
81 90
	newexe ${CLI_BIN} tw_cli
82
	dosym /opt/tw_cli/tw_cli /usr/sbin/tw_cli
91
	dosym ../../opt/tw_cli/tw_cli /usr/sbin/tw_cli
83 92

  
84 93
	newman ${PN}.8.nroff ${PN}.8
85 94
	dohtml *.html
......
87 96

  
88 97
	# to comply with license requirement 3.1.b, per upstream request.
89 98
	insinto /opt/tw_cli
90
	newins ${DISTDIR}/${LICENSE} LICENSE
99
	newins "${DISTDIR}"/"${LICENSE}" LICENSE
91 100
}
92 101

  
93 102
pkg_postinst() {
Thank you!