1 |
commit: 0a2705096d402a6f12adcdf60e3b6f64bf90715a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 13 08:17:17 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 13 08:18:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a270509 |
7 |
|
8 |
sys-apps/sg3_utils: Bump to version 1.44 |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
sys-apps/sg3_utils/Manifest | 1 + |
13 |
.../sg3_utils/files/sg3_utils-1.26-stdint.patch | 8 ++-- |
14 |
sys-apps/sg3_utils/sg3_utils-1.44.ebuild | 44 ++++++++++++++++++++++ |
15 |
3 files changed, 49 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/sg3_utils/Manifest b/sys-apps/sg3_utils/Manifest |
18 |
index 8b9347c1576..786e00243ea 100644 |
19 |
--- a/sys-apps/sg3_utils/Manifest |
20 |
+++ b/sys-apps/sg3_utils/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST sg3_utils-1.42.tgz 1219231 BLAKE2B dd9ea2c324cb6f4c0ce770c90b7980da5e998bddc3a2be43a0aa9bea88dfe34291d0f58b393b2a5ac680c05dc673802ec9fae1ead37107bc49fa33bc7c4df503 SHA512 d16b65e36b2bccb4fc4c189f97e71fa38e6619f37d668a4ddd74a52c715fa62325288d9737812ed19c80547059dbd27be5a20565e27e1aabb571e8f5f8ac53ad |
23 |
DIST sg3_utils-1.43.tar.gz 1180760 BLAKE2B 20475d974f9f4c0f275499a63f921b587df76e1b8addcd5201fd5db95e100eb0b4c8c97aba7e9651ae069c43e30cd7b780643212307dec6d53e5b91cd2c653e8 SHA512 5f2eea6f61300e288ce32ca613179a944de34576fd6e596c4c3aa6cc2c0ef397cf5bfd2c148b737f678aac0c574321994525486430ea14ae8e7cb1c02184636f |
24 |
+DIST sg3_utils-1.44.tar.xz 922152 BLAKE2B 8596ef78fbb7ade5a969f485b0f4ff63863dc8a5ff58fe630cffa91900ba9946b47ddf857346aa3904da8502afa4928f54baf99428344d2e561a90e52c8533ed SHA512 4f4d5536ebed62f2c81c55741043d9ac3f4610a4dd6ef2e3125f041afd57aae03a32c2affe84a960c9f61fb6f84784bc901c756a8c36c1bc97082fa61e73ae8d |
25 |
|
26 |
diff --git a/sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch b/sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch |
27 |
index a82ab6add9a..62fb30240e1 100644 |
28 |
--- a/sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch |
29 |
+++ b/sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch |
30 |
@@ -7,8 +7,8 @@ Signed-off-by: Robin H. Johnson <robbat2@g.o> |
31 |
For uint64_t to be available, <stdint.h> must be included: |
32 |
http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html |
33 |
|
34 |
---- include/sg_cmds_basic.h 2008/06/26 23:27:40 1.1 |
35 |
-+++ include/sg_cmds_basic.h 2008/06/26 23:28:06 |
36 |
+--- a/include/sg_cmds_basic.h |
37 |
++++ b/include/sg_cmds_basic.h |
38 |
@@ -30,6 +30,8 @@ |
39 |
* |
40 |
*/ |
41 |
@@ -18,8 +18,8 @@ http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html |
42 |
#ifdef __cplusplus |
43 |
extern "C" { |
44 |
#endif |
45 |
---- include/sg_cmds_extra.h 2008/06/26 23:27:40 1.1 |
46 |
-+++ include/sg_cmds_extra.h 2008/06/26 23:29:02 |
47 |
+--- a/include/sg_cmds_extra.h |
48 |
++++ b/include/sg_cmds_extra.h |
49 |
@@ -30,6 +30,8 @@ |
50 |
* |
51 |
*/ |
52 |
|
53 |
diff --git a/sys-apps/sg3_utils/sg3_utils-1.44.ebuild b/sys-apps/sg3_utils/sg3_utils-1.44.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..d98714db0ff |
56 |
--- /dev/null |
57 |
+++ b/sys-apps/sg3_utils/sg3_utils-1.44.ebuild |
58 |
@@ -0,0 +1,44 @@ |
59 |
+# Copyright 1999-2018 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=6 |
63 |
+ |
64 |
+inherit multilib |
65 |
+ |
66 |
+DESCRIPTION="Apps for querying the sg SCSI interface" |
67 |
+HOMEPAGE="http://sg.danny.cz/sg/" |
68 |
+#SRC_URI="https://github.com/hreinecke/sg3_utils/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
69 |
+SRC_URI="http://sg.danny.cz/sg/p/${P}.tar.xz" |
70 |
+ |
71 |
+LICENSE="GPL-2" |
72 |
+SLOT="0" |
73 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
74 |
+IUSE="static-libs" |
75 |
+ |
76 |
+DEPEND="sys-devel/libtool" |
77 |
+RDEPEND="" |
78 |
+PDEPEND=">=sys-apps/rescan-scsi-bus-1.24" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${PN}-1.26-stdint.patch #580236 |
82 |
+) |
83 |
+ |
84 |
+src_configure() { |
85 |
+ econf $(use_enable static-libs static) |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ default |
90 |
+ dodoc COVERAGE doc/README examples/*.txt |
91 |
+ newdoc scripts/README README.scripts |
92 |
+ |
93 |
+ # Better fix for bug 231089; some packages look for sgutils2 |
94 |
+ local path lib |
95 |
+ path="/usr/$(get_libdir)" |
96 |
+ for lib in "${ED%/}/"${path}/libsgutils2.*; do |
97 |
+ lib=${lib##*/} |
98 |
+ dosym "${lib}" "${path}/${lib/libsgutils2/libsgutils}" |
99 |
+ done |
100 |
+ |
101 |
+ find "${ED}" -name "*.la" -delete || die |
102 |
+} |