# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lsof/lsof-4.71.ebuild,v 1.6 2004/06/30 02:49:27 vapier Exp $ inherit flag-o-matic DESCRIPTION="Creates swap files when memory is low" HOMEPAGE="http://www.rkeene.org/files/oss/" SRC_URI="http://www.rkeene.org/files/oss/${PN}/source/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" #KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha arm hppa ~amd64 ~ia64 s390" KEYWORDS="~x86 ~amd64" DEPEND="virtual/libc" #This pkg appears to be highly kernel-dependent. src_compile() { cd ${S} sed -e "s/@sbindir@/\\\${DESTDIR}\/@sbindir@/g" -i Makefile.in sed -e "s/@sysconfdir@/\\\${DESTDIR}\/@sysconfdir@/g" -i Makefile.in sed -e "s/@mandir@/\\\${DESTDIR}\/@mandir@/g" -i Makefile.in ./configure --prefix=/usr || die "Configure failed" make all || die "Configure failed" } src_install() { make DESTDIR=${D} install || die "Could not install" keepdir /var/lib/swapd insinto /etc/conf.d newins ${FILESDIR}/swapd.conf.d swapd exeinto /etc/init.d newexe ${FILESDIR}/swapd.init.d swapd }