summaryrefslogtreecommitdiff
path: root/sys-block/scsiadd
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/scsiadd')
-rw-r--r--sys-block/scsiadd/Manifest2
-rw-r--r--sys-block/scsiadd/scsiadd-1.97-r2.ebuild (renamed from sys-block/scsiadd/scsiadd-1.97-r1.ebuild)35
2 files changed, 21 insertions, 16 deletions
diff --git a/sys-block/scsiadd/Manifest b/sys-block/scsiadd/Manifest
index bd17a7f64035..4bb86e61aa6e 100644
--- a/sys-block/scsiadd/Manifest
+++ b/sys-block/scsiadd/Manifest
@@ -1,3 +1,3 @@
DIST scsiadd-1.97.tar.gz 43574 BLAKE2B 13f0875165f7d5ea2c87e4931d0d09104a971eaa126969ee5274ade5b337d2ba3edd920293ae2cc962fb841c0449523f68b4ce6b467835a1797174fe30b2eaa9 SHA512 16ffd700d09b27d50f2cb04ba913eb6c4e7f40779ff8037ef1bb24cc593ddb4465733006449c903f6b0f31e0fb8c14e043fba70ed98975f8e07751e0316faa7b
-EBUILD scsiadd-1.97-r1.ebuild 1299 BLAKE2B bac52ca0c2e8c7401ec326a81155cf00004d1a95e27c10ef6bb5e05c6d8f8b270ada6e3893d7815ab440fb0ef2799d81e75d1292186bc208e4d106bfe18f32fb SHA512 3fceb5c5c7e93ca98ab1059ef4dc8db6581aa612e81cd9a73bb895b58d1f3a00528ab4cfb61f88346b380a1a89a9025174fa1e3cbc57760992d6adc8ecec7fb2
+EBUILD scsiadd-1.97-r2.ebuild 1333 BLAKE2B 8b45b3bbdc53988fc3b8f8a07c9083372678a34c3e6a017ed656bf8fd0e3840ade1e1fd63c634f77cc466b29a72a7f4f5dcc41c3b4b7dbca53bbfdce7b96e56b SHA512 88d29cb64c853a0dd7ef91e7386cd23bf5b8f5ec495174b85ae56f8445de5decdcb33c7e867f5a3c5c912ebd2173b54622a8a76c2f4d2dff929e0e394dc52f4e
MISC metadata.xml 374 BLAKE2B 7edbe16375cf5b8401055290ccc1711f8d7b616a13b9c2952fbf45925e0939602c41259b58126fd8bf2ec7b6f1558a54881543033d03a0d2eeba62e41612a4b8 SHA512 a24d00fd29179c54fc61081c35898e7414af891b3b25cbf0d9bbf0a15a8dd030672995488181f48886fa41b28debcf8735c6363300c8658094efbba497648ebb
diff --git a/sys-block/scsiadd/scsiadd-1.97-r1.ebuild b/sys-block/scsiadd/scsiadd-1.97-r2.ebuild
index 718a26b6f7ac..112fdbce9ac4 100644
--- a/sys-block/scsiadd/scsiadd-1.97-r1.ebuild
+++ b/sys-block/scsiadd/scsiadd-1.97-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit user toolchain-funcs flag-o-matic
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Add and remove SCSI devices from your Linux system during runtime"
HOMEPAGE="https://llg.cubic.org/tools/"
@@ -14,47 +14,52 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="suid"
-pkg_setup() {
- use suid && enewgroup scsi
-}
+RDEPEND="suid? ( acct-group/scsi )"
+BDEPEND="${RDEPEND}"
src_prepare() {
default
- # remove 'strip' command
- sed -i -e "s:^\(.*strip.*\):#\1:g" Makefile.in || die
- # convert docs to utf-8
+ # Remove 'strip' command, as portage handles this
+ sed -e "s:^\(.*strip.*\):#\1:g" -i Makefile.in || die
+
+ # Convert docs to UTF-8
if [ -x "$(type -p iconv)" ]; then
for X in NEWS README; do
- iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f "${X}~" "${X}" \
+ iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" \
+ && mv -f "${X}~" "${X}" \
|| rm -f "${X}~" || die
done
fi
}
src_compile() {
- # extra safety for suid
+ # Extra safety for suid
append-ldflags -Wl,-z,now
- emake CC="$(tc-getCC)"
+ # Use system compiler
+ tc-export CC
+
+ default
}
src_install() {
dosbin scsiadd
+
if use suid; then
fowners root:scsi /usr/sbin/scsiadd
- fperms 4710 /usr/sbin/scsiadd
+ fperms 4710 /usr/sbin/scsiadd
fi
- dodoc NEWS README TODO
+
doman scsiadd.8
+
+ einstalldocs
}
pkg_postinst() {
if use suid; then
- ewarn
ewarn "You have chosen to install ${PN} with the binary setuid root. This"
ewarn "means that if there any undetected vulnerabilities in the binary,"
ewarn "then local users may be able to gain root access on your machine."
- ewarn
fi
}