stable/branches/experimental/net-fs/novell-novfs/novell-novfs-2.0.0_p2-r1.ebuild
2007-07-09 10:53:37 +00:00

75 lines
1.7 KiB
Bash

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm linux-mod
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/2JyMn7sWP_Q~/novell-client-1.2-SLE10.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources
!net-misc/novell-novfs"
RESTRICT="nomirror"
BUILD_PARAMS="-C $KERNEL_DIR SUBDIRS=${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/src"
MODULE_NAMES="novfs(novfs:${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/src:${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/src"
BUILD_TARGETS="modules"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ${WORKDIR}/ncl_build_711/NCL_disk/novell/i586/${PN}-1.2.0-17.i586.rpm
cd ${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src
epatch ${FILESDIR}/novell-novfs-1.2.0_to_2.0.0.patch
if kernel_is eq 2 6 15
then
epatch ${FILESDIR}/novell-novfs-2.0.0-2_6_15-compat.patch
fi
if kernel_is ge 2 6 17
then
epatch ${FILESDIR}/novell-novfs-2.0.0-config_h.patch
fi
if kernel_is ge 2 6 18
then
epatch ${FILESDIR}/novell-novfs-2.0.0-generic_file_read.patch
fi
if kernel_is ge 2 6 19
then
epatch ${FILESDIR}/novell-novfs-2.0.0-i_blksize.patch
epatch ${FILESDIR}/novell-novfs-2.0.0-u.generic_ip.patch
fi
epatch ${FILESDIR}/novell-novfs-2.0.0-dont_use_tasklist_lock.patch
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}