|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $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 $ | # $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 $ |
| |
inherit libtool eutils gnuconfig |
IUSE="static pic" |
|
|
|
inherit libtool eutils gnuconfig 64-bit |
| |
DESCRIPTION="FAM, the File Alteration Monitor" | DESCRIPTION="FAM, the File Alteration Monitor" |
HOMEPAGE="http://oss.sgi.com/projects/fam/" | HOMEPAGE="http://oss.sgi.com/projects/fam/" |
|
|
LICENSE="GPL-2 LGPL-2.1" | LICENSE="GPL-2 LGPL-2.1" |
SLOT="0" | SLOT="0" |
KEYWORDS="~x86 ~ppc ~alpha ~sparc hppa amd64 ~ia64 ~mips ppc64" | KEYWORDS="~x86 ~ppc ~alpha ~sparc hppa amd64 ~ia64 ~mips ppc64" |
IUSE="" |
|
| |
DEPEND=">=net-nds/portmap-5b-r6" | DEPEND=">=net-nds/portmap-5b-r6" |
| |
src_unpack() { | src_unpack() { |
unpack ${A} |
unpack ${A}; cd ${S} |
|
|
|
# patch some config defaults |
|
sed -i "s/^local_only.*$/local_only = true/g" conf/fam.conf |
| |
cd ${S} |
|
# dnotify patch #43027 | # dnotify patch #43027 |
epatch ${FILESDIR}/${P}-dnotify.patch | epatch ${FILESDIR}/${P}-dnotify.patch |
| |
|
|
} | } |
| |
src_compile() { | src_compile() { |
|
local myconf=`use_enable static` |
|
|
|
if 64-bit; then |
|
myconf="${myconf} --with-pic" |
|
else |
|
myconf="${myconf} `use_with pic`" |
|
fi |
|
|
gnuconfig_update | gnuconfig_update |
econf || die "econf failed" |
econf $myconf || die "econf failed" |
emake || die "emake failed" | emake || die "emake failed" |
} | } |
| |
src_install() { | src_install() { |
einstall || die | einstall || die |
| |
dosed "s:local_only = false:local_only = true:g" conf/fam.conf |
|
|
|
exeinto /etc/init.d | exeinto /etc/init.d |
doexe ${FILESDIR}/famd | doexe ${FILESDIR}/famd |
| |
|
|
} | } |
| |
pkg_postinst() { | pkg_postinst() { |
einfo "To enable fam on boot you will have to add it to the" |
einfo "To enable fam on boot you will have to add it to the" |
einfo "default profile, issue the following command as root to do so." | einfo "default profile, issue the following command as root to do so." |
echo | echo |
einfo "rc-update add famd default" | einfo "rc-update add famd default" |
| |
# temporary warning for people upgrading | # temporary warning for people upgrading |
# 6-12-03 foser <foser@gentoo.org> | # 6-12-03 foser <foser@gentoo.org> |
echo |
if [ -e /etc/init.d/fam ] |
echo |
then |
ewarn "IMPORTANT INFO FOR USERS UPGRADING FROM OLDER (<2.7.0) FAM VERSIONS :" |
echo |
echo |
echo |
einfo "With the 2.7.0 version the fam daemon moved to sbin and was" |
ewarn "IMPORTANT INFO FOR USERS UPGRADING FROM OLDER (<2.7.0) FAM VERSIONS :" |
einfo "renamed from 'fam' to 'famd'. These changes are for consistency" |
echo |
einfo "reasons also applied to the Gentoo init script. This means you" |
einfo "With the 2.7.0 version the fam daemon moved to sbin and was" |
einfo "will have to remove fam from the default runlevel and add famd." |
einfo "renamed from 'fam' to 'famd'. These changes are for consistency" |
einfo "This can be done by issueing the following commands :" |
einfo "reasons also applied to the Gentoo init script. This means you" |
echo |
einfo "will have to remove fam from the default runlevel and add famd." |
einfo "rc-update del fam" |
einfo "This can be done by issueing the following commands :" |
einfo "rc-update add famd default" |
echo |
einfo "rm /etc/init.d/fam" |
einfo "rc-update del fam" |
echo |
einfo "rc-update add famd default" |
einfo "The last command removes the old init script." |
einfo "rm /etc/init.d/fam" |
|
echo |
|
einfo "The last command removes the old init script." |
|
fi |
} | } |