diff options
Diffstat (limited to 'net-fs/shfs/shfs-0.31-r1.ebuild')
-rw-r--r-- | net-fs/shfs/shfs-0.31-r1.ebuild | 55 |
1 files changed, 33 insertions, 22 deletions
diff --git a/net-fs/shfs/shfs-0.31-r1.ebuild b/net-fs/shfs/shfs-0.31-r1.ebuild index abb5d28c47d1..a786b294d2d4 100644 --- a/net-fs/shfs/shfs-0.31-r1.ebuild +++ b/net-fs/shfs/shfs-0.31-r1.ebuild @@ -1,5 +1,8 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. +# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/shfs/shfs-0.31-r1.ebuild,v 1.1.1.1 2005/11/30 09:45:44 chriswhite Exp $ + +inherit eutils IUSE="amd doc" @@ -8,16 +11,24 @@ S=${WORKDIR}/${MY_P} DESCRIPTION="Secure Shell File System" HOMEPAGE="http://shfs.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -LICENSE="GPL-2" + SLOT="0" -KEYWORDS="x86 ppc" +LICENSE="GPL-2" +KEYWORDS="x86 ppc amd64" + DEPEND="virtual/linux-sources net-misc/openssh amd? ( net-fs/am-utils )" -src_compile() { +src_unpack() { + unpack ${A} + cd ${S} epatch ${FILESDIR}/shfs-gentoo-${PV}-makefile-root.diff use ppc && epatch ${FILESDIR}/shfs-gentoo-${PV}-ppc.diff + use amd64 && epatch ${FILESDIR}/shfs-amd64-makefile.patch +} + +src_compile() { emake || die } @@ -28,7 +39,7 @@ src_install() { cat Makefile.old | grep -v depmod > Makefile einfo " Installing kernel module..." make MODULESDIR=${D}/lib/modules/${KV} install || die - + # Install binaries cd ${S}/shfsmount dobin shfsmount @@ -43,13 +54,13 @@ src_install() { dodir /sbin einfo " Adding /sbin/mount.shfs symlink..." dosym /usr/bin/shfsmount /sbin/mount.shfs - + # Install docs doman ${S}/docs/manpages/shfsmount.8 ${S}/docs/manpages/shfsumount.8 use doc && dohtml -r ${S}/docs/html - + # Install automount support (if desired) - if [ -n "`use amd`" ] ; then + if use amd ; then einfo " Installing am-utils config files..." insinto /etc/amd doins ${FILESDIR}/amd.conf @@ -64,19 +75,19 @@ pkg_postinst() { echo "running depmod...." depmod -aq || die - echo " " + echo einfo " Use either 'shfsmount' or 'mount -t shfs' to mount remote" - einfo " filesystems to into your local filesystem. " - echo " " - echo " " - einfo " Note the following: " - einfo " " - einfo " 1. The shfs.o kernel module has to be loaded first " - einfo " before you can start mounting filesystems. " - einfo " Try: 'insmod shfs' as root. " - einfo " " - einfo " 2. When mounting, you must enter the absolute path of " - einfo " the remote filesystem without any special chars, " - einfo " such as tilde (~), for example. " - echo " " + einfo " filesystems to into your local filesystem." + echo + echo + einfo " Note the following:" + einfo + einfo " 1. The shfs.o kernel module has to be loaded first" + einfo " before you can start mounting filesystems." + einfo " Try: 'insmod shfs' as root." + einfo + einfo " 2. When mounting, you must enter the absolute path of" + einfo " the remote filesystem without any special chars," + einfo " such as tilde (~), for example." + echo } |