mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-block/flashbench: initial commit
Based on the ebuild from bug 441610 by James Le Cuirot <chewi@gentoo.org>. Package-Manager: portage-2.2.27 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
This commit is contained in:
1
sys-block/flashbench/Manifest
Normal file
1
sys-block/flashbench/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST flashbench-20120606.tar.xz 17720 SHA256 c7822a19086d5b049f440eba95752641fdfaeaf836f601e6fd545e8a9bf53fcc SHA512 5ae0c38da7a7d7321157eb892e186e665b2dbacad98ffd7f00a72cce985b4ccd2a63c99c00d681cfeb02cce8c1e00f3a3095716c22f7893299f3c24077ad43ce WHIRLPOOL 9e6614f8edcc88a2d5b79b9be3e8eeedb7ed760a370adea2646e992f55d19c4b3269eb32121bb8f1adcd15e8d115636c16818cff2ff2828b8d074f4d04a36a6d
|
||||
@@ -0,0 +1,23 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f83b220..ffe20fa 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
-CC := gcc
|
||||
-CFLAGS := -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -g2
|
||||
-LDFLAGS := -lrt
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
|
||||
+LIBS := -lrt
|
||||
|
||||
all: flashbench erase
|
||||
|
||||
@@ -9,7 +9,7 @@ vm.o: vm.c vm.h dev.h
|
||||
flashbench.o: flashbench.c vm.h dev.h
|
||||
|
||||
flashbench: flashbench.o dev.o vm.o
|
||||
- $(CC) -o $@ flashbench.o dev.o vm.o $(LDFLAGS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ flashbench.o dev.o vm.o $(LIBS)
|
||||
|
||||
|
||||
erase: erase.o
|
||||
20
sys-block/flashbench/flashbench-20120606.ebuild
Normal file
20
sys-block/flashbench/flashbench-20120606.ebuild
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Tool for benchmarking and classifying flash memory drives"
|
||||
HOMEPAGE="http://git.linaro.org/people/arnd.bergmann/flashbench.git"
|
||||
SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
PATCHES=( ${FILESDIR}/${P}-Makefile.patch )
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
newbin erase "${PN}-erase" # erase is too ambiguous.
|
||||
dodoc README
|
||||
}
|
||||
10
sys-block/flashbench/metadata.xml
Normal file
10
sys-block/flashbench/metadata.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>bircoph@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">ksokoban</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user