Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/scsiadd/
Date: Tue, 23 Apr 2019 08:51:43
Message-Id: 1556009468.8b48d1017d08f93b99b60c8872edd618435af7ba.soap@gentoo
1 commit: 8b48d1017d08f93b99b60c8872edd618435af7ba
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Apr 22 11:31:50 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 23 08:51:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b48d101
7
8 sys-block/scsiadd: drop old (EAPI2)
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sys-block/scsiadd/scsiadd-1.97.ebuild | 59 -----------------------------------
14 1 file changed, 59 deletions(-)
15
16 diff --git a/sys-block/scsiadd/scsiadd-1.97.ebuild b/sys-block/scsiadd/scsiadd-1.97.ebuild
17 deleted file mode 100644
18 index 0ba63844322..00000000000
19 --- a/sys-block/scsiadd/scsiadd-1.97.ebuild
20 +++ /dev/null
21 @@ -1,59 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI="2"
26 -
27 -inherit user toolchain-funcs flag-o-matic
28 -
29 -DESCRIPTION="Add and remove SCSI devices from your Linux system during runtime"
30 -HOMEPAGE="https://llg.cubic.org/tools/"
31 -SRC_URI="https://llg.cubic.org/tools/${P}.tar.gz"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~x86"
36 -IUSE="suid"
37 -DEPEND=""
38 -
39 -pkg_setup() {
40 - use suid && enewgroup scsi
41 -}
42 -
43 -src_prepare() {
44 - # remove 'strip' command
45 - sed -i -e "s:^\(.*strip.*\):#\1:g" Makefile.in
46 -
47 - # convert docs to utf-8
48 - if [ -x "$(type -p iconv)" ]; then
49 - for X in NEWS README; do
50 - iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f "${X}~" "${X}" || rm -f "${X}~"
51 - done
52 - fi
53 -}
54 -
55 -src_compile() {
56 - # extra safety for suid
57 - append-ldflags -Wl,-z,now
58 -
59 - emake CC="$(tc-getCC)" || die "emake failed"
60 -}
61 -
62 -src_install() {
63 - dosbin scsiadd || die "install failed"
64 - if use suid; then
65 - fowners root:scsi /usr/sbin/scsiadd
66 - fperms 4710 /usr/sbin/scsiadd
67 - fi
68 - dodoc NEWS README TODO
69 - doman scsiadd.8
70 -}
71 -
72 -pkg_postinst() {
73 - if use suid; then
74 - ewarn
75 - ewarn "You have chosen to install ${PN} with the binary setuid root. This"
76 - ewarn "means that if there any undetected vulnerabilities in the binary,"
77 - ewarn "then local users may be able to gain root access on your machine."
78 - ewarn
79 - fi
80 -}