# 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="net-misc/dhcp" RDEPEND="${DEPEND}" 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" make_desktop_entry gadmin-dhcpd GADMIN-DHCPD /usr/share/pixmaps/gadmin-dhcpd.png Settings || die "make desktop failed" }