summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2018-01-04 08:14:18 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2018-01-04 08:24:22 -0800
commitfccaf0ae53dc43de3b79968ce6bdf169e9dd0ddd (patch)
treec04b6387519bed176a0f8d0a6a2d11991f92da49 /sys-block/tw_cli
parentsys-kernel/gentoo-sources: genpatches-4.14-16 (diff)
downloadgentoo-fccaf0ae53dc43de3b79968ce6bdf169e9dd0ddd.tar.gz
gentoo-fccaf0ae53dc43de3b79968ce6bdf169e9dd0ddd.tar.bz2
gentoo-fccaf0ae53dc43de3b79968ce6bdf169e9dd0ddd.zip
sys-block/tw_cli: special version for >=3.8 kernel
TL;DR: if you run 3ware cards on a 3.8 or newer kernel, you need to upgrade the utility to correctly write card variables, as the old version will sometimes segfault. Tested on hardware models: 9750-4i, 9650SE-8LPML, 9690SA. Per email: > I've noticed recently that sys-block/tw_cli will segfault on modern > systems when setting variables on a card (at least on a 9750-4i). > ... > when you go to run a battery capacity test, it'll complete the capacity > test command, but segfault before it can update the timestamp on the > card to record the last capacity test date. That causes the date to > become "01-Jan-1970", and then dmesg will get flooded with "Battery > capacity test overdue" messages. That's what prompted me to open a case > with Broadcom, and then try to find some kind of workaround. Reported-by: Joshua Kinard <kumba@gentoo.org> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Package-Manager: Portage-2.3.16, Repoman-2.3.6 RepoMan-Options: --force
Diffstat (limited to 'sys-block/tw_cli')
-rw-r--r--sys-block/tw_cli/Manifest21
-rw-r--r--sys-block/tw_cli/tw_cli-10.2.2.1-r1.ebuild114
2 files changed, 125 insertions, 10 deletions
diff --git a/sys-block/tw_cli/Manifest b/sys-block/tw_cli/Manifest
index 4fa5ae6d937..435eb7959f4 100644
--- a/sys-block/tw_cli/Manifest
+++ b/sys-block/tw_cli/Manifest
@@ -1,21 +1,22 @@
+DIST 368_tw_cli_debian8_beta.tgz 1958337 BLAKE2B 5e10c253a36132c8ee74e555b7e9151e70dd126ab4e58a76465c6d198387d612f19bd121c1d4dee49ca6c6fc35aeef5ed19466f05d3ce59ac4c4ab2d6f488f65 SHA512 1a0e22bd59eed4d26957bf17dd191f842251e61c035973cfc0e4611b0f93d798e718bed2dcb54e3fbf9ac8bbc9f7aaf9b332c419210331c318fb507a9d34492c
DIST CLI_freebsd-from_the_10.2.2.1_9.5.5.1_codesets.zip 1531484 BLAKE2B 6bd1a5523a80c32f6251cf4e841f16f3a09ffe77eb452d7b40f37d9f476fec3f379454f4c05b15d4753dd12fd0d5b50acf07dbafbd4f80ca5a1ecb13605bab16 SHA512 04738e9bd644561cf33d2f687159a0bcaf1ab56f340d19d88ecd0b038b89d5dd136b462189452c0578b90e1b276f9d0edc3204e5baebfc2730f319147b636708
DIST CLI_linux-from_the_10.2.2.1_9.5.5.1_codesets.zip 1878621 BLAKE2B 628070e5f6dc4dbc75f029067298be278b696b84afb245d19761043183bc6232fcf48dfe46954ef61e027082d974905244f6b3e73b596fbbe8d7955375859be2 SHA512 e8a7f27401e7811d5f8533d839066bdf6d93eeb2cb1242b00af7fc559b0a34316f8e6dc80f68e869d97f44290ea32c9e65d1d857c1010009ad1a540252400e31
DIST LSI-tw_cli 35638 BLAKE2B 8267d311b7b09dd3f0e619fd7d5aadcaf5b24afa1958c99e838b9280b175b8f070dc58164622bf3ab54dc5ddfc24a4a4ea06971a919b17a3c2594541e43ea41f SHA512 1a1d35395ffccf70004b0c111d8c4a7e408cf0c57503bb4d1fdd608f9b71d6ea4d7488307dd6806eaf6557d65badd9c43aeea3e7c1ddae1c56962c85c2b868c9
-DIST cli_freebsd_10.1.zip 1500092 SHA256 f5f0eaf4ae90ec67837fa42e4e94a3f97b0b8a7b3efd88e980761c270f96fd85 SHA512 b5463919975c53e191540b4b7c58d8b08ef45ad06f82fe61960f65a46c82230486bf53bc8c535a9fd8ef3e0698cc6676696a319f5e30b904211d7b614dd7a49d WHIRLPOOL c09a606273df20368866261b68f56c153e4c45c46a652b2f4cb016dc34c1ccab3b759c2681edccf7e3979605033229899c1bff7319344dc1bb09955332e61507
+DIST cli_freebsd_10.1.zip 1500092 BLAKE2B 4e7d68a99cef9429aba1898a1b9340259e78a531a2b19140a05b1dc7fd031791fb1309a6196e746195bed9f18a7d12d890adc437ebd928b37a4b0db8e21a29ee SHA512 b5463919975c53e191540b4b7c58d8b08ef45ad06f82fe61960f65a46c82230486bf53bc8c535a9fd8ef3e0698cc6676696a319f5e30b904211d7b614dd7a49d
DIST cli_freebsd_10.2.zip 1467421 BLAKE2B e0f47087b7adf59e9bbfc4af46e7944a45a0af527951b4fe94e093eee9810580f8475f61201e85048452d3eb9510a8fb9c5820ec6404ac70bb16eb0761efe234 SHA512 2f47fd094b26415e71322ed1f1d0590988406a44fa5e7f09a45baae564ab1f391d3eb6f552a6d7c4e004ba10e707c8b415784445c379ad21ffc36ba2023006c8
-DIST cli_linux_10.1.zip 1845534 SHA256 ae89aef7a309d37de76e870fc56c0dd0f08e5849eb3388e3c05a1f8b134b2be3 SHA512 8e424042f8892d4fb77664a444f2ee2a55406929013d19c79612e4d0347338b68ebf9e11cdcb2895544b53705ec9401f35581d27e34e6465e06c16a5cb60096e WHIRLPOOL 3bbcd22546cec3bf4c286b106209485a2392f8bc8c084eedec4d8c9068152fb22e5be7042b2d6ede4b7fb78cbb1b67bc9061112ad162c20c8da8879db527e700
+DIST cli_linux_10.1.zip 1845534 BLAKE2B 41e9befd0cbc8e9cacccfa68f120eabe8959586728146863884dcf5027f1e831edf54b1a3b6ab38f176a5bea0f3b99be59525684a3545e66895879da9c594cb5 SHA512 8e424042f8892d4fb77664a444f2ee2a55406929013d19c79612e4d0347338b68ebf9e11cdcb2895544b53705ec9401f35581d27e34e6465e06c16a5cb60096e
DIST cli_linux_10.2.zip 1813781 BLAKE2B 10a3117e337b3fcdf42b8b8705fc43727116036fbf458be885e06b72702e2b34a28d11a035141c3900cdf479837787f9fa3e591e6bd96e31c71e7814ebba7d21 SHA512 ce3446c93405fd7fec69d6b982db678a08d083d7385f392c160c794ee40ec8ed329b16e85d03f69e547e6b4b9d40882e8852dc2463b945e344443cdf8654efaa
DIST tw_cli-freebsd-x86-9.5.2.tgz 785950 BLAKE2B dc8ab70f17446899dc7df8204a608e8809b2c33c7a6806d56181e2ea1d9f65c4ec58009917e741a47e0eb27ce7003330f9c8d8b459ef33a97c8fbe05c9c79440 SHA512 44181e6c2684637fe34cd4ad2143f713175d127bd2bc7fcf9c9a3563d939a3244da3e8b3620a123b2da173854bfc95bca91fe799261aee9913b5594a1569a8dd
DIST tw_cli-freebsd-x86-9.5.3.tgz 793534 BLAKE2B d5dd84dab83b3d2838941989351000c64199e9ce99dd7d0e897801a15f3176973ce932636e9fbb67898339f1a01cbd8a8f28e7d7df3f2ece1692e9c3dc0f5a20 SHA512 ceeb072f2501c78ac56666ec13bcf0edaf047be399b16cdbd5a29b68574e10070d91611c41eb36251ca924c7532ed9df3fa397fd90b251ebf8d8a1e0befbd4d6
-DIST tw_cli-linux-x86-9.2.1.1.tgz 709976 SHA256 10efc8892ce2bf68aec617449122316939435539793c53cca1fa3ab02395a46c SHA512 c706b8c710500f700736e161b8cefc821b91a9f726d1b07e74ab1114bb7d91300ebdcd59d2c0af40d98819fa9c839a03e3f4ee991e65550b0655d395a8cbb3b7 WHIRLPOOL 44851434702c5cd5e2744e114044be343b148c78ccef0a7aa7cb180e59109fa459d5401ca1a077431b2892cc326555e1f56c2668c6287e8588fd94d97c493686
-DIST tw_cli-linux-x86-9.3.0.4.tgz 794421 SHA256 86e8287d12c120f35a2d1e6a71b7f344c2d2750068cc4e1c9886a11b4efa235f SHA512 16539e9c486f583122a30c8dd1a7c6e5d05e7878a1ee44581f0109f8daf1a973c3549d163a4bea10b185d97b067a32f6b8c045db198e283581e949749b5588a3 WHIRLPOOL c3169d5b7cdeedca6e0e7b0c8469f41044c0e968e2962f857010afca5944457235827c62ef42d83287cf666f0d0dff48b9db59e23633edd717c130ef3c86d869
-DIST tw_cli-linux-x86-9.4.1.2.tgz 798925 SHA256 45863a216125af3a451ee50bd47c29dfb59d19deba487469e6aa7621fd39abca SHA512 5b307c79d3fe75bb99b536b4dfa77ccd2a2a4d063c5bf492e1b429c4f4894e66b895392a9504e811a8886bc615ad0d7a06e178865c8c9a102a381f2e9341ac7a WHIRLPOOL 0103fb118cc24efd18e743998710975ecdab520a4bc489daec575faaa0ef23cd3d1c717f0c20594ba85203fad463d763a61f3ad3da899818510f9ad7d208c886
-DIST tw_cli-linux-x86-9.4.2.tgz 806428 SHA256 5197768f6a3453d7c10fbde0b0ac9f920c475d0a5525fc7ef5a4ef93594b0791 SHA512 b4a30c7e79f7ce966ca08968682e20777f43c2cecd8001caf0e6e36e3efb3418b8887a90730d88b99f9854add771bbdb9c55a217551fcb2edf49792aba8b1338 WHIRLPOOL b4fd0c85c7a7c4d7d95d73fa74c416221a02d517fd97a315afe17537ae43b6b7e5de662d3a26f6441c17bf68632b0f8baab69788438288911e30a0c932ffa0a1
+DIST tw_cli-linux-x86-9.2.1.1.tgz 709976 BLAKE2B 9d3659bdcae50da62de0b97b1c049114a7198c8423fee6304253ded5c7027397d994ce6237cc3c053e8aed5ac3785e3b11030655d7eb7d7933ee9c6408b56c97 SHA512 c706b8c710500f700736e161b8cefc821b91a9f726d1b07e74ab1114bb7d91300ebdcd59d2c0af40d98819fa9c839a03e3f4ee991e65550b0655d395a8cbb3b7
+DIST tw_cli-linux-x86-9.3.0.4.tgz 794421 BLAKE2B b9eb07c062fecc680561d28e05e938da76085e2692ff60d79a12307e633bafc85eacbffcf95bf9b2ed9a3a84f9a29663d89f5f99c23815a6daf987504d40a661 SHA512 16539e9c486f583122a30c8dd1a7c6e5d05e7878a1ee44581f0109f8daf1a973c3549d163a4bea10b185d97b067a32f6b8c045db198e283581e949749b5588a3
+DIST tw_cli-linux-x86-9.4.1.2.tgz 798925 BLAKE2B 905d1707b20e1c5d90e6d6c6828543f61b3833ff85bfebc53470d5e038a971c8bb05f7b385b225457d18ec761a0289d0c593a44b86ebeddf43e0fa69aabada66 SHA512 5b307c79d3fe75bb99b536b4dfa77ccd2a2a4d063c5bf492e1b429c4f4894e66b895392a9504e811a8886bc615ad0d7a06e178865c8c9a102a381f2e9341ac7a
+DIST tw_cli-linux-x86-9.4.2.tgz 806428 BLAKE2B 07323b5a1ae495c587a11d67382c34781f060175fe8f37a50fca98c954adef940fee09f091d133ee05e0ea27d97f1710b45cab4eefaea9f0973bfebbc81b9bf9 SHA512 b4a30c7e79f7ce966ca08968682e20777f43c2cecd8001caf0e6e36e3efb3418b8887a90730d88b99f9854add771bbdb9c55a217551fcb2edf49792aba8b1338
DIST tw_cli-linux-x86-9.5.2.tgz 950535 BLAKE2B 1de7f7aee53de3e51cfebf9d873025d6ca1c85ef67ef7741bb36b2e66d161c76b5f5da2e2ac657ed5c9c67b03097a0f9a66ba35625c393be028b681e89176402 SHA512 c10dbce0472afcc65e8cdabbf90b78c9de2a7f960582c17af667e6561524d1a63dbaeaf24bcd25ab5e602da8a3be9a100ca01b54c3387452a1a80458f5b5c077
DIST tw_cli-linux-x86-9.5.3.tgz 958837 BLAKE2B a100d98b162c2f0852e8bf867002cf59cbad2e65bb6fec5e28d7542355554ff5dd96868f5142790a96905e7a00b67bcaa9bd2e87661ed76de582007664f69857 SHA512 8f773df497b273ddcba04bface949903fa25a099d4a2d94ddb11317ce092226dee9eddebfed6be6798bdb58ebe39438acb6ed56cee57ce72b7ce34d9ab2f8094
-DIST tw_cli-linux-x86_64-9.2.1.1.tgz 678634 SHA256 30fabb438c0f7e35a04a680a6bb1f17849d8d980278633dfb1538db9ffdeec85 SHA512 751a537c74383efaf004805e96c3f7edf29a18dab744f5531488ccc54b643e2929308bafea9f86751567120a803e1085315befe1b414d2eff6629e6bc0c8dab6 WHIRLPOOL 0f24d37b95a0655c0f04f271b21c55c3b46b1b614bab6cf8e03d342dbab8b94d896a0f90750c68c693afa60dc66347a29e90504a341e928f61e2ef34bae4c253
-DIST tw_cli-linux-x86_64-9.3.0.4.tgz 846293 SHA256 82cc7c4151f1fcf5b49666c2b439a992d531044c4ca590531fc27c66bc274716 SHA512 fde89108f347522487a4b47fd91332bb33566e6e3feb7818339f110c71ba89088acccbda47c4a081d04aa45e58a49483d82b4f2ab1296e1d9d8ebb178db58875 WHIRLPOOL 7a5471442be6875debd7a95c1ad5f8872ff1e1d2ec460cd859940fccd6c793731cbcaef0876cfc4015b0b77da09c4cbcdd6b5ec620f83cef2a5fecd27df6f876
-DIST tw_cli-linux-x86_64-9.4.1.2.tgz 831001 SHA256 a5dafa136b48c72a92043aa4ab6381063266cfc7188f0054a1c8cd953d7a30a2 SHA512 15ca392105662f9c59c643b351672e922992350b973cceb946127b0a285fc93b7d36b6e67483010043b0f945bb256d4380ef99a8c404368a4113a8e297a07e79 WHIRLPOOL af571818e4a835b507c019ea549d91c2a1f2ec5f0263c1c68318b296937360e8e6d79f052b532d6d0b227aec8073fbd5349932af647f5b0b0e7d600ae173fbed
-DIST tw_cli-linux-x86_64-9.4.2.tgz 837638 SHA256 488f1c1b497541f199ef2de7f168c56e9142ed74d59ad3ce52c20a890c5ac0c3 SHA512 bf6b571c4620618be2099df526ebf347881280bd6e60f5b38051b16cf61d88f265ac58604a6d58d4c6c37f960ec8cb370c060cdf1feabcbb0253a4b6dff54050 WHIRLPOOL 09be39e56a1aaf8fb7932e4ac847e10af83c33da4696185d6df824db77d0f5eb529055211ba693bf53b97113d8ad33f7b7685cfa835d33384eab37bb5bf55af7
+DIST tw_cli-linux-x86_64-9.2.1.1.tgz 678634 BLAKE2B d2b720f17094b3baba65731e7b47687f02d6bdab16626203ce7f9bdd2ef1a39c86ec3a967934bf1908d7a3ebcf6c7a0645733376742e466484dc8e261fa1535a SHA512 751a537c74383efaf004805e96c3f7edf29a18dab744f5531488ccc54b643e2929308bafea9f86751567120a803e1085315befe1b414d2eff6629e6bc0c8dab6
+DIST tw_cli-linux-x86_64-9.3.0.4.tgz 846293 BLAKE2B b875b9d6456a1eccdd23ad307e273541f20bbb436861d4304cc28bcf2d2e58bf515cc335dd01d00989259e816b8c9f18a94ef1d8c1ac67f998d758109031b2d7 SHA512 fde89108f347522487a4b47fd91332bb33566e6e3feb7818339f110c71ba89088acccbda47c4a081d04aa45e58a49483d82b4f2ab1296e1d9d8ebb178db58875
+DIST tw_cli-linux-x86_64-9.4.1.2.tgz 831001 BLAKE2B 2ac2e95b4438b16f769ad1a3b1b88e7f54d53249976fcb2623f594fe50979b53547c644548e57c5c3135f329c18168d33846fefd65e2819e661c202fee8945cd SHA512 15ca392105662f9c59c643b351672e922992350b973cceb946127b0a285fc93b7d36b6e67483010043b0f945bb256d4380ef99a8c404368a4113a8e297a07e79
+DIST tw_cli-linux-x86_64-9.4.2.tgz 837638 BLAKE2B a8a50dfc03e22d60d9b6edbc8d08bb6fa12230fcf16aadceca825c396b2dfa07c54da7d528b426e1d1c00cb56bf6b03bfdf663621071511b7e6bea98c2333fd6 SHA512 bf6b571c4620618be2099df526ebf347881280bd6e60f5b38051b16cf61d88f265ac58604a6d58d4c6c37f960ec8cb370c060cdf1feabcbb0253a4b6dff54050
DIST tw_cli-linux-x86_64-9.5.2.tgz 979071 BLAKE2B 5e875857c8155dddbc74ebfeecc29e09659b0ad656f7965b3f186a76167b395e609f7f9ce204476192a8bdd30064043b7671f9dd6ec38c8e69b86dc1f8f481f4 SHA512 de0c71769933e18a9f8e6b12875f97856051bb8c7ec1fe7a365c74b8ddf5773aba6c89628f677b6d5116d3f2933c38ad14a83c289e2fc9a6ae91391b4db36191
DIST tw_cli-linux-x86_64-9.5.3.tgz 986751 BLAKE2B 3457db45b7f6982e8323b8bc18ff460df37dc6c76a06d15de65f4188d539d0978ebb1874ae0ddab117adfd064b98328bba04342b01a95479c1ff9023391670f2 SHA512 5042c3b3499ae67ab0001212ee4906be2a4f8eeac55d1271f7a9880af656c5cb16b526c914b07993b950943eee677d814ee8c4dd9aabac2de8c213451ace5797
diff --git a/sys-block/tw_cli/tw_cli-10.2.2.1-r1.ebuild b/sys-block/tw_cli/tw_cli-10.2.2.1-r1.ebuild
new file mode 100644
index 00000000000..2f8be821fbb
--- /dev/null
+++ b/sys-block/tw_cli/tw_cli-10.2.2.1-r1.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="3ware SATA/PATA/SAS RAID controller Command Line Interface tool"
+HOMEPAGE="http://www.lsi.com/products/raid-controllers/pages/3ware-sas-9750-8i.aspx"
+
+# This is apparently what the upstream stuff was based on when LSI took over?
+ThreeDM2_PV="9.5.5.1"
+
+SRC_URI_BASE="http://www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/"
+SRC_URI_A_linux="CLI_linux-from_the_${PV}_${ThreeDM2_PV}_codesets.zip"
+#SRC_URI_A_fbsd="CLI_freebsd-from_the_${PV}_${ThreeDM2_PV}_codesets.zip"
+# 10.2.2.1 special case:
+# Newer kernels cause a segmentation fault, and a special build is available for Linux only.
+# https://www.broadcom.com/support/knowledgebase/1211161501805/debian-8-twcli-causes-fault-segment-failure
+EXTRA_linux="https://docs.broadcom.com/docs-and-downloads/kb-documents/lsi/368_tw_cli_debian8_beta.tgz"
+EXTRA_fbsd=""
+[ -n "${SRC_URI_A_linux}${EXTRA_linux}" ] && SRC_URI+=" kernel_linux? ( ${SRC_URI_A_linux:+${SRC_URI_BASE}/}${SRC_URI_A_linux} ${EXTRA_linux} )"
+[ -n "${SRC_URI_A_fbsd}${EXTRA_fbsd}" ] && SRC_URI+=" kernel_FreeBSD? ( ${SRC_URI_A_fbsd:+${SRC_URI_BASE}/}${SRC_URI_A_fbsd} ${EXTRA_fbsd} )"
+# The license is not available easily from upstream (embedded in a textbox),
+# nor in the upstream tarball, but needs to be installed, and can't be
+# referenced via PORTDIR per bug #373349.
+SRC_URI+=" https://gitweb.gentoo.org/repo/gentoo.git/plain/licenses/LSI-tw_cli"
+
+# the minor ver on the end changes...
+RELNOTES="${SRC_URI_BASE}/${PV}_Release_Notes.pdf"
+
+# Note: 3ware gave permission to redistribute the binaries before:
+# Ref: https://bugs.gentoo.org/show_bug.cgi?id=60690#c106
+#
+# Please note that the LSI-tw_cli license does allow redistribution, despite
+# being a EULA:
+# 2. Grant of Rights
+# 2.1 LSI Binary Code. Subject to the terms of this Agreement, LSI grants
+# to Licensee a non-exclusive, world-wide, revocable (for breach in
+# accordance with Section 7), non-transferable limited license, without
+# the right to sublicense except as expressly provided herein, solely to:
+# (c) Distribute the LSI Binary Code as incorporated in Licensee's
+# Products or for use with LSI Devices to its Subsequent Users;
+# (d) Distribute the Explanatory Materials related to LSI Binary Code only
+# for use with LSI Devices;
+#
+# 3. License Restrictions
+# 3.1. LSI Binary Code. The Licenses granted in Section 2.1 for LSI Binary
+# Code and related Explanatory Materials are subject to the following
+# restrictions:
+# (a) Licensee shall not use the LSI Binary Code and related Explanatory
+# Materials for any purpose other than as expressly provided in Article 2;
+# (b) Licensee shall reproduce all copyright notices and other proprietary
+# markings or legends contained within or on the LSI Binary Code and
+# related Explanatory Materials on any copies it makes; and
+LICENSE="LSI-tw_cli"
+SLOT="0"
+
+# This package can never enter stable, it can't be mirrored and upstream
+# can remove the distfiles from their mirror anytime.
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+RESTRICT="strip primaryuri"
+QA_PREBUILT="/opt/tw_cli/tw_cli"
+
+# binary packages
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}
+
+# If you want to fetch it yourself (not from the mirrors), there is an IP-based
+# clickthrough to accept the EULA.
+pkg_nofetch() {
+ einfo "Upstream has implement a mandatory clickthrough EULA for distfile download"
+ einfo "Please visit $SRC_URI in your browser. The clickthrough is IP-based,"
+ einfo "so no wget is possible."
+ einfo "And place $A in ${DISTDIR}"
+}
+
+src_install() {
+ case ${ARCH} in
+ # Special case per 10.2.2.1 segfault
+ amd64) CLI_BIN=debian8/x86_64/tw_cli ;;
+ x86) CLI_BIN=debian8/x86/tw_cli ;;
+ #amd64) CLI_BIN=x86_64/tw_cli;;
+ #x86) CLI_BIN=x86/tw_cli;;
+ *) die "unsupported ARCH";;
+ esac
+ exeinto /opt/tw_cli
+ # The names have varied in the past, sometimes there is a suffix
+ newexe ${CLI_BIN} tw_cli
+ dosym ../../opt/tw_cli/tw_cli /usr/sbin/tw_cli
+
+ newman ${PN}.8.nroff ${PN}.8
+ dohtml *.html
+ dodoc *.txt
+
+ # to comply with license requirement 3.1.b, per upstream request.
+ insinto /opt/tw_cli
+ newins "${DISTDIR}"/"${LICENSE}" LICENSE
+}
+
+pkg_postinst() {
+ elog "This binary supports should support ALL cards, including, but not"
+ elog "limited to the following series:"
+ elog ""
+ elog "PATA: 6xxx, 72xx, 74xx, 78xx, 7000, 7500, 7506"
+ elog "SATA: 8006, 8500, 8506, 9500S, 9550SX, 9590SE,"
+ elog " 9550SXU, 9650SE, 9650SE-{24M8,4LPME},"
+ elog " 9690SA, 9750"
+ elog ""
+ elog "Release notes for this version are available at:"
+ elog "${RELNOTES}"
+}