From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sys-block/scsiadd/Manifest | 1 + sys-block/scsiadd/metadata.xml | 12 +++++++ sys-block/scsiadd/scsiadd-1.97.ebuild | 60 +++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 sys-block/scsiadd/Manifest create mode 100644 sys-block/scsiadd/metadata.xml create mode 100644 sys-block/scsiadd/scsiadd-1.97.ebuild (limited to 'sys-block/scsiadd') diff --git a/sys-block/scsiadd/Manifest b/sys-block/scsiadd/Manifest new file mode 100644 index 000000000000..2d8b90607f9f --- /dev/null +++ b/sys-block/scsiadd/Manifest @@ -0,0 +1 @@ +DIST scsiadd-1.97.tar.gz 43574 SHA256 7edbb0b2c9f0705b7ede7423f2e76bcf24ec533bdf7ea522b6495989e6c41cf1 diff --git a/sys-block/scsiadd/metadata.xml b/sys-block/scsiadd/metadata.xml new file mode 100644 index 000000000000..e9e266426e29 --- /dev/null +++ b/sys-block/scsiadd/metadata.xml @@ -0,0 +1,12 @@ + + + + + maintainer-needed@gentoo.org + + + 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. + + diff --git a/sys-block/scsiadd/scsiadd-1.97.ebuild b/sys-block/scsiadd/scsiadd-1.97.ebuild new file mode 100644 index 000000000000..8367682506e2 --- /dev/null +++ b/sys-block/scsiadd/scsiadd-1.97.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} -- cgit v1.2.3-65-gdbad