# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="Memlockd is a daemon that locks files into memory." HOMEPAGE="http://www.coker.com.au/memlockd/" SRC_URI="http://www.coker.com.au/memlockd/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} cd "${S}" sed -i -e '/#include /d' ${PN}.cpp } src_compile() { $(tc-getCXX) ${CFLAGS} ${PN}.cpp -o ${PN} } src_install() { dosbin ${PN} doman ${PN}.8 newinitd "${FILESDIR}"/memlockd.initd memlockd insinto /etc doins "${FILESDIR}"/memlockd.cfg }