summaryrefslogtreecommitdiff
path: root/sys-block/scsiadd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/scsiadd
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/scsiadd')
-rw-r--r--sys-block/scsiadd/Manifest5
-rw-r--r--sys-block/scsiadd/metadata.xml10
-rw-r--r--sys-block/scsiadd/scsiadd-1.97.ebuild59
3 files changed, 74 insertions, 0 deletions
diff --git a/sys-block/scsiadd/Manifest b/sys-block/scsiadd/Manifest
new file mode 100644
index 000000000000..ab0f83c0a9d9
--- /dev/null
+++ b/sys-block/scsiadd/Manifest
@@ -0,0 +1,5 @@
+DIST scsiadd-1.97.tar.gz 43574 SHA256 7edbb0b2c9f0705b7ede7423f2e76bcf24ec533bdf7ea522b6495989e6c41cf1 SHA512 16ffd700d09b27d50f2cb04ba913eb6c4e7f40779ff8037ef1bb24cc593ddb4465733006449c903f6b0f31e0fb8c14e043fba70ed98975f8e07751e0316faa7b WHIRLPOOL 942bbb526aa343152f837fc0d1b0dbf0c18b6f0ea75857ce242cf967f157e55cca67afb7991647cdcbcafa21353c55a2db438f2adfb8a77ddad1dcd73c9e4056
+EBUILD scsiadd-1.97.ebuild 1329 SHA256 bb10a8f47a2b408e173a3d222cb2d8fdbd7185b5e822b4b4206f311726cfee69 SHA512 ba1c75b37310fef4f185878ff0a59d726d0f9cfbb9880a1487e180b28dc0916c3c69eb388d7502ce23b8fa728ceb3d462103cc5bc8525f3b52628718e911d305 WHIRLPOOL 8180263779370569fb5cbf927f795c95477bb644a8e4e8545fc25f9c1b9ac5a8bb80f8f5bcc4700ecb372288737392b777fa6f565b765fbf7041af330be12f6d
+MISC ChangeLog 2521 SHA256 f5ddb4b1e34dfc35ce65334f0c838e28f2bd901fc86b9f977a9164a4e8257ebc SHA512 97b87f1ce4b1c46ca6f8581d86a9eda53a4265426b67df7f2f5a2aa74a6b2d4482190fd3cd1163e78a096f80e9a5c2c83c0d187c2de4ba0a083d08fbfed1cf74 WHIRLPOOL 4baab560dd98d34390b74d16f7b2fa660851e180e544733b5f9f0a314a2f14c551036343d00fde07ce6357c73aa4ae636714b5b83d3e4bd0c33c0683ec267dfd
+MISC ChangeLog-2015 864 SHA256 4ddd487581c7f812b122669adc421c9c021b93a0774d6dab62986327a94f951d SHA512 8f7648233411ac6bcb5ffc72362c0909cc8c5ac26fce1f2a303f61a126250c4e90ab734fcae2b7ee493135ea9a41217e3fcdfafafb589ca91456c08f214d5eae WHIRLPOOL 04526f0357dc51310f6f605f4daf29f156057c319cfe615391876b27a89db65f518ff4f1f4f45d345fc4d10d4b4f18f5cfbb04178a1ab8fd62bf376d3d224f36
+MISC metadata.xml 374 SHA256 17903f0f3669f8066903dfc1644758095c994d1360eb4b22966ba39ae764515b SHA512 a24d00fd29179c54fc61081c35898e7414af891b3b25cbf0d9bbf0a15a8dd030672995488181f48886fa41b28debcf8735c6363300c8658094efbba497648ebb WHIRLPOOL dc0207149e565cc4bf6f93c8a42292b93883d6ef391bf2a64bef20aebbb0f1b0652c101056048343511704255647e575a84b4e46ae24b5d898c5bd3838469f4c
diff --git a/sys-block/scsiadd/metadata.xml b/sys-block/scsiadd/metadata.xml
new file mode 100644
index 000000000000..ced4877eab35
--- /dev/null
+++ b/sys-block/scsiadd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Add and remove SCSI devices from your Linux system during runtime.
+ No need to reboot your system, just because you have switched on
+ an external device.
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-block/scsiadd/scsiadd-1.97.ebuild b/sys-block/scsiadd/scsiadd-1.97.ebuild
new file mode 100644
index 000000000000..9c8688882342
--- /dev/null
+++ b/sys-block/scsiadd/scsiadd-1.97.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit user toolchain-funcs flag-o-matic
+
+DESCRIPTION="Add and remove SCSI devices from your Linux system during runtime"
+HOMEPAGE="http://llg.cubic.org/tools/"
+SRC_URI="http://llg.cubic.org/tools/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="suid"
+DEPEND=""
+
+pkg_setup() {
+ use suid && enewgroup scsi
+}
+
+src_prepare() {
+ # remove 'strip' command
+ sed -i -e "s:^\(.*strip.*\):#\1:g" Makefile.in
+
+ # 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}" || rm -f "${X}~"
+ done
+ fi
+}
+
+src_compile() {
+ # extra safety for suid
+ append-ldflags -Wl,-z,now
+
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dosbin scsiadd || die "install failed"
+ if use suid; then
+ fowners root:scsi /usr/sbin/scsiadd
+ fperms 4710 /usr/sbin/scsiadd
+ fi
+ dodoc NEWS README TODO
+ doman scsiadd.8
+}
+
+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
+}