summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2013-10-19 02:56:03 +0400
committerAlexey Shvetsov <alexxy@gentoo.org>2013-10-19 02:56:03 +0400
commite6c1237e260f180e96847bbf8a3875c5b26def81 (patch)
tree369c55015446437d1fe041021d342f27d1221796
parentbitfury branch now merged to master (diff)
downloadalexxy-e6c1237e260f180e96847bbf8a3875c5b26def81.zip
alexxy-e6c1237e260f180e96847bbf8a3875c5b26def81.tar.gz
alexxy-e6c1237e260f180e96847bbf8a3875c5b26def81.tar.bz2
Add flashcache
Package-Manager: portage-2.2.7
-rw-r--r--sys-block/flashcache/flashcache-9999.ebuild44
-rw-r--r--sys-block/flashcache/metadata.xml11
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-block/flashcache/flashcache-9999.ebuild b/sys-block/flashcache/flashcache-9999.ebuild
new file mode 100644
index 0000000..44e863d
--- /dev/null
+++ b/sys-block/flashcache/flashcache-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit eutils git-r3 linux-mod udev
+
+DESCRIPTION="FlashCache is a general purpose writeback block cache for Linux"
+HOMEPAGE="https://github.com/facebook/flashcache"
+EGIT_REPO_URI="https://github.com/facebook/flashcache.git"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dracut"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+CONFIG_CHECK="BLK_DEV_DM"
+
+MODULE_NAMES="
+ flashcache(kernel/drivers/block:${S}:${S}/src)"
+
+src_compile() {
+ set_arch_to_kernel
+ emake KERNEL_TREE="${KERNEL_DIR}" || die
+}
+
+src_install() {
+ linux-mod_src_install
+
+ cd "${S}/src/utils"
+ dosbin flashcache_create flashcache_destroy flashcache_load || die
+ dodoc README* doc/* || die
+ if use dracut; then
+ cd src/dracut-flashcache-0.3
+ insinto /usr/lib/dracut/modules.d
+ doins -r 90flashcache
+ dosbin fc_scan
+ udev_dorules 10-flashcache.rules
+ fi
+}
diff --git a/sys-block/flashcache/metadata.xml b/sys-block/flashcache/metadata.xml
new file mode 100644
index 0000000..540081f
--- /dev/null
+++ b/sys-block/flashcache/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <use>
+ <flag name='dracut'>Enable dracut integartion</flag>
+ </use>
+</pkgmetadata>