summaryrefslogtreecommitdiff
blob: 114d1ce28c87b6b9bd2bd88b596a787dec6896ef (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Joshua Pierre <joshua@swool.com>
# $Header: /var/cvsroot/gentoo-x86/app-admin/fam-oss/fam-oss-2.6.4-r1.ebuild,v 1.1 2001/12/08 13:31:09 hallski Exp $

S=${WORKDIR}/${P}
DESCRIPTION="fam, the File Alteration Monitor."
SRC_URI=ftp://oss.sgi.com/projects/fam/download/${P}.tar.gz""
HOMEPAGE="http://oss.sgi.com/projects/fam/"

DEPEND=">=sys-devel/perl-5.6.1"

RDEPEND=">=net-nds/portmap-5b-r6"

src_unpack() {

	unpack ${A}

	cd ${S}
	patch -p1 < ${FILESDIR}/${P}-gentoo.patch || die

	# Some patch I found in the SRPM, not sure what it's for
	patch -p1 < ${FILESDIR}/${P}-creds.patch || die

	# Patch that make FAM use dnotify which is present in 2.4 kernels
	patch -p1 < ${FILESDIR}/${P}-dnotify.patch || die
	libtoolize --force
	aclocal
	autoconf
	autoheader
	automake --add-missing
}

src_compile() {

	./configure --host=${CHOST} \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--localstatedir=/var/lib
		    
	emake || die 
}

src_install() {

	make DESTDIR=${D} \
		install || die
	     
	exeinto /etc/init.d
	doexe ${FILESDIR}/fam
	
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS TODO README*
}