summaryrefslogtreecommitdiff
path: root/sys-block/eject-bsd
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/eject-bsd
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/eject-bsd')
-rw-r--r--sys-block/eject-bsd/Manifest7
-rw-r--r--sys-block/eject-bsd/eject-bsd-1.5.ebuild38
-rw-r--r--sys-block/eject-bsd/files/eject-bsd-1.5-devname.patch11
-rw-r--r--sys-block/eject-bsd/files/eject-bsd-1.5-manpage.patch11
-rw-r--r--sys-block/eject-bsd/metadata.xml8
5 files changed, 75 insertions, 0 deletions
diff --git a/sys-block/eject-bsd/Manifest b/sys-block/eject-bsd/Manifest
new file mode 100644
index 000000000000..b9a7bcf3a8e4
--- /dev/null
+++ b/sys-block/eject-bsd/Manifest
@@ -0,0 +1,7 @@
+AUX eject-bsd-1.5-devname.patch 330 SHA256 40834387d8982f5723d18a7e5bced2184d21d0abd39dc1d9ad2f39dfc81fa244 SHA512 0397fbeaed4b62ef1d76cabf768aa9f38d91abedcb4a26b34b98dae58a3c34172cfe742841e7de5aa236ffbbec455e7b5b9cf349441b2087e81ee8d0ef70dbf0 WHIRLPOOL fc6b151c2165a05b4c98854a6f1094d7b0f159119430762dddb328a2d8e3f66ffb7a0498490e2e8d6b0a2169c7289909a86d8af94f210f62c022a1eb31b7f93d
+AUX eject-bsd-1.5-manpage.patch 292 SHA256 5ca6c39f0387cad5128ebad949080ea9a963a810ac274c2f4c92bb5498d4c10d SHA512 46de6a9ccb16da90e4a9879468cf1162854c68918567f62ff233e2d1766ea730e3b871b523c4aef1e90e0373e4f8b8cf9e2bd95c91d84c5acd453f8e6d3699f0 WHIRLPOOL 67b0d53df24f6f34935694ea03b73e4beb99ac3b430d1e7ed2de487a78532bc5e29d540cc7e43c04791d6a4443c6e94b88f2d3f4651642e2d47252b7fdc0490d
+DIST eject-1.5.tar.gz 4928 SHA256 768d97568f4b893a093f66968cb4791f2b20f87585c6d38aeed203de3a3b2597 SHA512 d116aa1119cddb82b3b2ef3202ebdf6f02d1184746e1fe5f00fa9819bab4b90386bf9cbcb3b3796b03299c13c1730a020cf917f2c071982d10124d82cdda5ac3 WHIRLPOOL 3f521b74f3ab607d13835d6c0a8b0ccd4fb21480fa222cd8ff7863e4ce55c67ff2aa2ea87171ac7ff7829784de6abfb84fa70eb518865a71b3e4d8de26ceeed7
+EBUILD eject-bsd-1.5.ebuild 899 SHA256 2066cfd0e07dd5547cc35392415e147402fcd8749233da88bc97f2563ae5556f SHA512 e909973f9aa246390638ce60dd1f36497b5d95a0e19ee1f82fec718ee21538cb0e51e834195b418206bdb592b9845f27c8330c6781832cfd85e76de77044aeb6 WHIRLPOOL 82145273af3f23062b71b46d6312a91df7c1764e67dda48bf4fd9390f76c0949219a752cb1512796fb00e8e076015a25dc80f00162a957345d0a96c7693416af
+MISC ChangeLog 2504 SHA256 12422089650ba18d8c77a6d79cabdbe03e3cb2f7545c2c348a3db5e4ec139f96 SHA512 b3574134e2324212fd226d077ecb55bc4a20fb034ad97a5ff869f79b6190adb3e51c8af14c686dc5b143672eeb469863075cddfc5a2bc500f81e4bef105646ee WHIRLPOOL 4ce8c2414aa311207f8fd67a3b5a55977b3ad376e986d0d46937b90b0964ee2f763d97993c409c18b868a65a8a613b4c8457c64f328966b25c109a0534e81988
+MISC ChangeLog-2015 761 SHA256 0bac8848ee21496b13d7db30fad94cbd567b4067747f31a92e8a8a3a18ef9454 SHA512 33ea8eb017fc828c3513e074bd9a201be6a06da74c7167c726584e145e74e81272dccdb71406d2db301a9d683f05fab5a5291eb5dd8eedf1237d7e2ec5ce9952 WHIRLPOOL d9207e696e106420d88620fdb0d8638dc00c34915b22f8a4723eb9a151d0c969315b085b296a9484f16a5fbc0308e10bfb55956decce5ea51a245a4735fe6342
+MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a
diff --git a/sys-block/eject-bsd/eject-bsd-1.5.ebuild b/sys-block/eject-bsd/eject-bsd-1.5.ebuild
new file mode 100644
index 000000000000..c2c5c341e20a
--- /dev/null
+++ b/sys-block/eject-bsd/eject-bsd-1.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils portability toolchain-funcs
+
+MY_P=eject-${PV}
+
+DESCRIPTION="eject command for FreeBSD systems"
+HOMEPAGE="http://www.freshports.org/sysutils/eject/"
+SRC_URI="ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/OD/${MY_P}.tar.gz
+ ftp://ftp4.jp.FreeBSD.org/pub/FreeBSD-jp/OD/${MY_P}.tar.gz
+ ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/FreeBSD-jp/OD/${MY_P}.tar.gz
+ mirror://freebsd/ports/distfiles/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-manpage.patch
+ epatch "${FILESDIR}"/${P}-devname.patch
+}
+
+src_compile() {
+ $(get_bmake) CC="$(tc-getCC)" PREFIX=/usr eject || die
+}
+
+src_install() {
+ dobin "${S}"/eject || die
+ doman "${S}"/eject.1
+ dodoc "${S}"/README
+}
diff --git a/sys-block/eject-bsd/files/eject-bsd-1.5-devname.patch b/sys-block/eject-bsd/files/eject-bsd-1.5-devname.patch
new file mode 100644
index 000000000000..0f1efac8fed0
--- /dev/null
+++ b/sys-block/eject-bsd/files/eject-bsd-1.5-devname.patch
@@ -0,0 +1,11 @@
+--- eject.c.orig Tue May 3 14:59:19 2005
++++ eject.c Tue May 3 15:01:30 2005
+@@ -133,7 +133,7 @@
+ int sts;
+ struct stat sb;
+
+- if (asprintf(device, "/dev/%sc", name) == -1)
++ if (asprintf(device, "/dev/%s", name) == -1)
+ return sts;
+ if (vflag || nflag) {
+ printf("%s: using device %s\n", program, device);
diff --git a/sys-block/eject-bsd/files/eject-bsd-1.5-manpage.patch b/sys-block/eject-bsd/files/eject-bsd-1.5-manpage.patch
new file mode 100644
index 000000000000..3706f388e1e4
--- /dev/null
+++ b/sys-block/eject-bsd/files/eject-bsd-1.5-manpage.patch
@@ -0,0 +1,11 @@
+--- eject.1.orig Tue Jan 4 14:49:41 2000
++++ eject.1 Sun Feb 1 00:49:17 2004
+@@ -53,6 +53,8 @@
+ Not execute operation but print it.
+ .It Fl v
+ Verbose mode.
++.It Fl t
++Give drive tray close command.
+ .Sh ENVIRONMENT
+ If the following environment variable exists, it is used by
+ .Nm eject :
diff --git a/sys-block/eject-bsd/metadata.xml b/sys-block/eject-bsd/metadata.xml
new file mode 100644
index 000000000000..a00f3aeb1f81
--- /dev/null
+++ b/sys-block/eject-bsd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>bsd@gentoo.org</email>
+ <name>BSD Project</name>
+</maintainer>
+</pkgmetadata>