# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Dynamic swap manager for linux" HOMEPAGE="http://pqxx.org/development/swapspace/" SRC_URI="http://pqxx.org/download/software/swapspace/${P}.tar.gz" LICENSE="gpl" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="${DEPEND}" #S="${WORKDIR}/${P}" src_compile() { sed -i -e '/strip/d' -e '/swapspace.init/d' -e's/install: all/install:/' Makefile emake -C src VERSION="${PV}" DATE="$(< DATE)" || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" keepdir /var/lib/swapspace newinitd ${FILESDIR}/swapspace.initd swapspace || die "Error installing init script" }