Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 58161
Collapse All | Expand All

(-)/usr/portage/app-admin/fam/fam-2.7.0-r1.ebuild (-27 / +42 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/fam/fam-2.7.0-r1.ebuild,v 1.7 2004/06/24 21:25:22 agriffis Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/fam/fam-2.7.0-r1.ebuild,v 1.7 2004/06/24 21:25:22 agriffis Exp $
4
4
5
inherit libtool eutils gnuconfig
5
IUSE="static pic"
6
7
inherit libtool eutils gnuconfig 64-bit
6
8
7
DESCRIPTION="FAM, the File Alteration Monitor"
9
DESCRIPTION="FAM, the File Alteration Monitor"
8
HOMEPAGE="http://oss.sgi.com/projects/fam/"
10
HOMEPAGE="http://oss.sgi.com/projects/fam/"
Lines 11-73 Link Here
11
LICENSE="GPL-2 LGPL-2.1"
13
LICENSE="GPL-2 LGPL-2.1"
12
SLOT="0"
14
SLOT="0"
13
KEYWORDS="~x86 ~ppc ~alpha ~sparc hppa amd64 ~ia64 ~mips ppc64"
15
KEYWORDS="~x86 ~ppc ~alpha ~sparc hppa amd64 ~ia64 ~mips ppc64"
14
IUSE=""
15
16
16
DEPEND=">=net-nds/portmap-5b-r6"
17
DEPEND=">=net-nds/portmap-5b-r6"
17
18
18
src_unpack() {
19
src_unpack() {
19
	unpack ${A}
20
	unpack "${A}"
21
	cd "${S}"
22
23
	# patch some config defaults
24
	sed -i "s/^local_only.*$/local_only = true/g" conf/fam.conf
20
25
21
	cd ${S}
22
	# dnotify patch #43027
26
	# dnotify patch #43027
23
	epatch ${FILESDIR}/${P}-dnotify.patch
27
	epatch ${FILESDIR}/${P}-dnotify.patch
24
28
25
	# Fix permission problems with user* in FEATURES (#35307)
29
	# Fix permission problems with user* in FEATURES (#35307)
26
	chmod u+w ${S}/configure
30
	chmod u+w "${S}/configure"
27
31
28
	# Please do not remove this again - fixes $S and $D in libtool linker
32
	# Please do not remove this again - fixes $S and $D in libtool linker
29
	# scripts (.la files)
33
	# scripts (.la files)
30
	cd ${S}; elibtoolize
34
	cd "${S}"
35
	cp /usr/share/libtool/ltmain.sh .  # FIXME: dirty hack!
36
	elibtoolize
31
}
37
}
32
38
33
src_compile() {
39
src_compile() {
40
	local myconf=`use_enable static`
41
42
	if 64-bit; then
43
		myconf="${myconf} --with-pic"
44
	else
45
		myconf="${myconf} `use_with pic`"
46
	fi
47
34
	gnuconfig_update
48
	gnuconfig_update
35
	econf || die "econf failed"
49
	econf $myconf || die "econf failed"
36
	emake || die "emake failed"
50
	emake || die "emake failed"
37
}
51
}
38
52
39
src_install() {
53
src_install() {
40
	einstall || die
54
	einstall || die
41
55
42
	dosed "s:local_only = false:local_only = true:g" conf/fam.conf
43
44
	exeinto /etc/init.d
56
	exeinto /etc/init.d
45
	doexe ${FILESDIR}/famd
57
	doexe "${FILESDIR}/famd"
46
58
47
	dodoc AUTHORS ChangeLog INSTALL NEWS TODO README
59
	dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
48
}
60
}
49
61
50
pkg_postinst() {
62
pkg_postinst() {
51
	einfo "To enable fam on  boot you will have to add it to the"
63
	einfo "To enable fam on boot you will have to add it to the"
52
	einfo "default profile, issue the following command as root to do so."
64
	einfo "default profile, issue the following command as root to do so."
53
	echo
65
	echo
54
	einfo "rc-update add famd default"
66
	einfo "rc-update add famd default"
55
67
56
	# temporary warning for people upgrading
68
	# temporary warning for people upgrading
57
	# 6-12-03 foser <foser@gentoo.org>
69
	# 6-12-03 foser <foser@gentoo.org>
58
	echo
70
	if [ -e /etc/init.d/fam ]
59
	echo
71
	then
60
	ewarn "IMPORTANT INFO FOR USERS UPGRADING FROM OLDER (<2.7.0) FAM VERSIONS :"
72
		echo
61
	echo
73
		echo
62
	einfo "With the 2.7.0 version the fam daemon moved to sbin and was"
74
		ewarn "IMPORTANT INFO FOR USERS UPGRADING FROM OLDER (<2.7.0) FAM VERSIONS :"
63
	einfo "renamed from 'fam' to 'famd'. These changes are for consistency"
75
		echo
64
	einfo "reasons also applied to the Gentoo init script. This means you"
76
		einfo "With the 2.7.0 version the fam daemon moved to sbin and was"
65
	einfo "will have to remove fam from the default runlevel and add famd."
77
		einfo "renamed from 'fam' to 'famd'. These changes are for consistency"
66
	einfo "This can be done by issueing the following commands :"
78
		einfo "reasons also applied to the Gentoo init script. This means you"
67
	echo
79
		einfo "will have to remove fam from the default runlevel and add famd."
68
	einfo "rc-update del fam"
80
		einfo "This can be done by issueing the following commands :"
69
	einfo "rc-update add famd default"
81
		echo
70
	einfo "rm /etc/init.d/fam"
82
		einfo "rc-update del fam"
71
	echo
83
		einfo "rc-update add famd default"
72
	einfo "The last command removes the old init script."
84
		einfo "rm /etc/init.d/fam"
85
		echo
86
		einfo "The last command removes the old init script."
87
	fi
73
}
88
}

Return to bug 58161