summaryrefslogtreecommitdiff
blob: 2a31408ff0776b7fb5be396267f7f1aa730300f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Ryan Tolboom <ryan@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-fs/ftpfs/ftpfs-0.6.2-r2.ebuild,v 1.3 2002/04/27 23:34:20 bangert Exp $

A=${P}-k2.4.tar.gz
S=${WORKDIR}/${P}-k2.4
DESCRIPTION="A filesystem for mounting FTP volumes"
SRC_URI="http://ftp1.sourceforge.net/ftpfs/${A}"
HOMEPAGE="http://ftpfs.sourceforge.net"

DEPEND="virtual/glibc
        virtual/linux-sources"

src_compile() {
	cd ftpfs
	try make
	cd ../ftpmount
  	try make CFLAGS="${CFLAGS}"
}

src_install() {
	mv ftpfs/Makefile ftpfs/Makefile.old
	cat ftpfs/Makefile.old |sed s:"depmod -aq"::g > ftpfs/Makefile
	try make MODULESDIR=${D}/lib/modules/${KVERS} FTPMOUNT=${D}/usr/bin/ftpmount install
	dodoc CHANGELOG
	docinto html
	dodoc docs/*.html
	docinto html/img
	dodoc docs/img/*
}

pkg_postinst() {

	echo "running depmod...."
	try depmod -aq
}