add tux3 kernel module

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1222 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-05-17 21:40:58 +00:00
parent 70b8614151
commit b157937aeb
3 changed files with 84 additions and 0 deletions

2
sys-fs/tux3/Manifest Normal file
View File

@ -0,0 +1,2 @@
AUX tux3-TUX3_SUPER_MAGIC-1.patch 556 RMD160 4558feb1b799eac56984c5fac8302135750fb31a SHA1 54f79816d0437d962bbf3a46df7d335a991adb84 SHA256 725ddcca0415b2979e185ff3dfc89604f7070d654a31aaddf67a086663b45a08
EBUILD tux3-9999.ebuild 1350 RMD160 7e3ae326c050f615a68ad580f77dc3781ba32e1c SHA1 11f2d8077606b3d42b254411ff2746d4bf9b4a66 SHA256 07271938abf173e47f0f95fd4fef9d466634b6a817d8752687230d89cb586b85

View File

@ -0,0 +1,21 @@
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-05-17
Initial Package Version: changeset cb5655728089
Origin: hirofumi
Upstream Status: accepted
Description: add missing DEFINE
diff -Naur super.c.orig super.c
--- super.c.orig 2009-05-17 20:08:53.666087715 +0000
+++ super.c 2009-05-17 21:26:12.939916308 +0000
@@ -10,6 +10,10 @@
#define trace trace_on
+#ifndef TUX3_SUPER_MAGIC
+#define TUX3_SUPER_MAGIC 0x74757833
+#endif
+
/* FIXME: this should be mount option? */
int tux3_trace;
module_param(tux3_trace, bool, 0644);

View File

@ -0,0 +1,61 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod mercurial
DESCRIPTION="Standard tux3 filesystem"
HOMEPAGE="http://tux3.org/"
EHG_REPO_URI="http://hg.tux3.org/tux3/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="${DEPEND}"
DEPEND=""
S="${WORKDIR}/tux3/user/kernel"
src_unpack() {
mercurial_src_unpack
cd ${S}
epatch "${FILESDIR}"/tux3-TUX3_SUPER_MAGIC-1.patch
}
pkg_setup()
{
linux-mod_pkg_setup
BUILD_TARGETS="all"
BUILD_PARAMS="KERNELDIR=${KV_OUT_DIR}"
MODULE_NAMES="tux3(fs:${S})"
if ! kernel_is gt 2 6 26; then
eerror "Need a >=2.6.27 kernel to compile against!"
die "Need a >=2.6.27 kernel to compile against!"
fi
}
src_install()
{
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
ewarn "WARNING: tux3 is under heavy development and is not suitable for"
ewarn " any uses other than benchmarking and review."
ewarn " The tux3 disk format is not yet finalized."
ewarn
ewarn " Also, it is highly recommended that the versions of"
ewarn " tux3 and tux3progs match."
ewarn
ewarn "Note: This version is installed from a live ebuild, so the disk"
ewarn " format can change from install to install as the upstream"
ewarn " source changes."
}