# 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 S=${WORKDIR}/${PN} DESCRIPTION="Creates swap files when memory is low" HOMEPAGE="http://sourceforge.net/projects/swapd/" SRC_URI="mirror://sourceforge/swapd/swapd-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" #KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha arm hppa ~amd64 ~ia64 s390" KEYWORDS="-* ~x86" 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 }