59 lines
1.5 KiB
Bash
59 lines
1.5 KiB
Bash
# Copyright 1999-2006 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}@cache.novell.com/prot/2JyMn7sWP_Q~/novell-client-1.2-SLE10.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="virtual/linux-sources
|
|
!net-misc/novell-novfs"
|
|
|
|
RESTRICT="nomirror fetch"
|
|
|
|
BUILD_PARAMS="-C $KERNEL_DIR SUBDIRS=${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/novfs"
|
|
MODULE_NAMES="novfs(novfs:${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/novfs:${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src/novfs"
|
|
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}-${MY_PV}.i586.rpm
|
|
cd ${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/src
|
|
epatch ${FILESDIR}/novell-novfs-1.2.0-dentry.patch
|
|
epatch ${FILESDIR}/novell-novfs-1.2.0-getsb.patch
|
|
epatch ${FILESDIR}/novell-novfs-1.2.0-getsb-fix.patch
|
|
epatch ${FILESDIR}/novell-novfs-1.2.0-dont_use_tasklist_lock.patch
|
|
epatch ${FILESDIR}/novell-novfs-1.2.0-license.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
|
|
}
|