# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools DESCRIPTION="Gadmin-DHCP is an easy to use GTK+ administration tool for ISC DHCPD." HOMEPAGE="www.gadmintools.org" SRC_URI="http://mange.dynalias.org/linux/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=" x11-libs/pango x11-libs/pixman media-libs/freetype >=x11-libs/gtk+-2 dev-libs/atk x11-libs/cairo media-libs/libpng >=dev-libs/glib-2 " RDEPEND="net-misc/dhcp" src_unpack() { if [ "${A}" != "" ]; then unpack ${A} fi cd "${S}" epatch "${FILESDIR}/${P}-dhcpd.conf-path.patch" einfo "Regenerating autotools files..." eautoconf || die "autoconf failed" } src_compile() { if [ -x ./configure ]; then econf || die fi if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then emake || die "make failed" fi } src_install() { emake DESTDIR="${D}" install || die "Install failed" insinto /etc/pam.d/ doins etc/pam.d/gadmin-dhcpd insinto /etc/security/console.apps/ doins etc/security/console.apps/gadmin-dhcpd insinto /usr/share/applications/ doins desktop/gadmin-dhcpd.desktop }