From b157937aeba02c6309428a313f3ae73bdc6325cc Mon Sep 17 00:00:00 2001 From: geos_one Date: Sun, 17 May 2009 21:40:58 +0000 Subject: [PATCH] add tux3 kernel module git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1222 6952d904-891a-0410-993b-d76249ca496b --- sys-fs/tux3/Manifest | 2 + .../tux3/files/tux3-TUX3_SUPER_MAGIC-1.patch | 21 +++++++ sys-fs/tux3/tux3-9999.ebuild | 61 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 sys-fs/tux3/Manifest create mode 100644 sys-fs/tux3/files/tux3-TUX3_SUPER_MAGIC-1.patch create mode 100644 sys-fs/tux3/tux3-9999.ebuild diff --git a/sys-fs/tux3/Manifest b/sys-fs/tux3/Manifest new file mode 100644 index 00000000..a3ec6229 --- /dev/null +++ b/sys-fs/tux3/Manifest @@ -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 diff --git a/sys-fs/tux3/files/tux3-TUX3_SUPER_MAGIC-1.patch b/sys-fs/tux3/files/tux3-TUX3_SUPER_MAGIC-1.patch new file mode 100644 index 00000000..bc733b1c --- /dev/null +++ b/sys-fs/tux3/files/tux3-TUX3_SUPER_MAGIC-1.patch @@ -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); diff --git a/sys-fs/tux3/tux3-9999.ebuild b/sys-fs/tux3/tux3-9999.ebuild new file mode 100644 index 00000000..0810911d --- /dev/null +++ b/sys-fs/tux3/tux3-9999.ebuild @@ -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." +}