add ebuilds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2464 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-10-04 19:24:16 +00:00
parent 53d472c69f
commit 677e030bbd
69 changed files with 3569 additions and 0 deletions

3
sys-fs/zfs/Manifest Normal file
View File

@@ -0,0 +1,3 @@
AUX zfs-0.4.9-kernel-2-6-33-1.patch 975 RMD160 f7df0e219912b8e8be0fdd3bea35386009721222 SHA1 e074bfb57f802ccde53e7e3827b3e4d340c89708 SHA256 79f5b8331606cb3693f39df69d7f29b59e0bd8a0fbac239e705b19dc69a2a1ba
DIST zfs-0.4.9.tar.gz 1581976 RMD160 9355ba1efe61cb4f4be50c4b1eebb28f8d60dfa4 SHA1 8b8f3540fdfa85dd9c5e3e6cf9dc80eced4606fe SHA256 4e301d1d6b124c8465807155c4c25011e80fdee2e10947ffc83d9e5394b261de
EBUILD zfs-0.4.9.ebuild 2252 RMD160 bc4ee734c15c10c86cf85df29a6debb201039902 SHA1 bae4b63a7586ea13d34493c4b72e8a54898cb03f SHA256 fb7d815eabb747a2b91f7b509fab1f667606b5aa12aa32689cc271b8611e438f

View File

@@ -0,0 +1,25 @@
Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
Date: 2010-06-11
Initial Package Version: 0.4.9
Origin: me
Upstream Status: unknown
Description: make it build with 2.6.33 and greater
diff -Naur zfs-0.4.9.orig/config/kernel.m4 zfs-0.4.9/config/kernel.m4
--- zfs-0.4.9.orig/config/kernel.m4 2010-06-11 11:41:37.716096278 +0000
+++ zfs-0.4.9/config/kernel.m4 2010-06-11 11:42:59.524095064 +0000
@@ -129,6 +129,14 @@
echo "kernsrcver=UTS_RELEASE") |
cpp -I $kernelbuild/include |
grep "^kernsrcver=" | cut -d \" -f 2`
+
+ elif test -r $kernelbuild/include/generated/utsrelease.h &&
+ fgrep -q UTS_RELEASE $kernelbuild/include/generated/utsrelease.h; then
+
+ kernsrcver=`(echo "#include <generated/utsrelease.h>";
+ echo "kernsrcver=UTS_RELEASE") |
+ cpp -I $kernelbuild/include |
+ grep "^kernsrcver=" | cut -d \" -f 2`
fi
if test -z "$kernsrcver"; then

View File

@@ -0,0 +1,90 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/fuse-2.7.4.ebuild,v 1.7 2009/05/18 14:08:43 jer Exp $
EAPI="2"
#WANT_AUTOCONF="2.5"
WANT_AUTOMAKE="1.11"
inherit linux-mod eutils autotools
MY_P=${P/_/-}
DESCRIPTION="Native ZFS for Linux"
HOMEPAGE="http://wiki.github.com/behlendorf/zfs/"
SRC_URI="http://github.com/downloads/behlendorf/zfs/${MY_P}.tar.gz"
LICENSE="CCDL"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="kernel_linux"
S=${WORKDIR}/${MY_P}
pkg_setup() {
MODULE_NAMES="avl(fs/zfs:${S}/module/avl) \
nvpair(fs/zfs:${S}/module/nvpair) \
unicode(fs/zfs:${S}/module/unicode) \
zcommon(fs/zfs:${S}/module/zcommon) \
zfs(fs/zfs:${S}/module/zfs) \
zpios(fs/zfs:${S}/module/zpios)"
linux-mod_pkg_setup
# BUILD_PARAMS="majver=${KV_MAJOR}.${KV_MINOR} \
# fusemoduledir=\"${ROOT}\"/lib/modules/${KV_FULL/\ }/fs"
BUILD_TARGETS="all"
# ECONF_PARAMS="--with-kernel=${KV_DIR} --with-kernel-build=${KV_OUT_DIR}"
}
src_prepare() {
epatch "${FILESDIR}"/zfs-0.4.9-kernel-2-6-33-1.patch
#AT_M4DIR="config" eautoreconf
sh autogen.sh
}
src_compile() {
econf \
--with-linux=${KERNEL_DIR} \
|| die "econf failed for fuse userland"
emake || die "emake failed"
# if use kernel_linux ; then
# cd "${S}"
# sed -i -e 's/.*depmod.*//g' kernel/Makefile.in
# convert_to_m kernel/Makefile.in
# linux-mod_src_compile
# fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog Filesystems README \
README.NFS NEWS doc/how-fuse-works \
doc/kernel.txt FAQ
docinto example
dodoc example/*
if use kernel_linux ; then
linux-mod_src_install
newinitd ${FILESDIR}/fuse.init fuse
else
insinto /usr/include/fuse
doins include/fuse_kernel.h
newinitd ${FILESDIR}/fuse-fbsd.init fuse
fi
rm -rf "${D}/dev"
dodir /etc
cat > ${D}/etc/fuse.conf <<EOF
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#
#mount_max = 1000
# Allow non-root users to specify the 'allow_other' or 'allow_root'
# mount options.
#
#user_allow_other
EOF
}
pkg_postinst() {
use kernel_linux && linux-mod_pkg_postinst
}