Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/rescan-scsi-bus: rescan-scsi-bus-1.57-r1.ebuild
Date: Tue, 01 Jul 2014 06:17:25
Message-Id: 20140701061721.BDC442004E@flycatcher.gentoo.org
1 robbat2 14/07/01 06:17:21
2
3 Added: rescan-scsi-bus-1.57-r1.ebuild
4 Log:
5 Bug #467210: missing dep for usleep binary.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.1 sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild?rev=1.1&content-type=text/plain
14
15 Index: rescan-scsi-bus-1.57-r1.ebuild
16 ===================================================================
17 # Copyright 1999-2014 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild,v 1.1 2014/07/01 06:17:21 robbat2 Exp $
20
21 EAPI=5
22
23 inherit eutils
24
25 DESCRIPTION="Script to rescan the SCSI bus without rebooting"
26 HOMEPAGE="http://www.garloff.de/kurt/linux/"
27 SCRIPT_NAME="${PN}.sh"
28 SRC_NAME="${SCRIPT_NAME}-${PV}"
29 SRC_URI="http://www.garloff.de/kurt/linux/${SRC_NAME}"
30
31 LICENSE="GPL-2"
32 SLOT="0"
33 KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~s390 ~sh ~x86" # alpha hppa ppc64 sparc
34
35 RDEPEND=">=sys-apps/sg3_utils-1.24
36 app-admin/killproc
37 virtual/modutils
38 app-shells/bash"
39
40 S=${WORKDIR}
41
42 src_unpack() {
43 cp -f "${DISTDIR}"/${SRC_NAME} "${WORKDIR}"/${SCRIPT_NAME}
44 }
45
46 src_install() {
47 into /usr
48 dosbin ${SCRIPT_NAME}
49 # Some scripts look for this without the trailing .sh
50 # Some look for it with the trailing .sh, so have a symlink
51 dosym ${SCRIPT_NAME} /usr/sbin/${PN}
52 }