# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools EAPI="1" DESCRIPTION="Gadmin-bind is an easy to use GTK+ administration tool for ISC BIND." HOMEPAGE="http://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-dns/bind sys-apps/sed " src_unpack() { if [ "${A}" != "" ]; then unpack ${A} fi cd "${S}" epatch "${FILESDIR}/${P}-default_paths.patch" || die "patch failed" einfo "Regenerating autotools files..." eautoconf || die "autoconf failed" } src_compile() { if [ -x ./configure ]; then econf --localstatedir=/var fi if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then emake || die "emake failed" fi } src_install() { emake DESTDIR="${D}" install || die "Install failed" insinto /usr/share/applications/ doins desktop/gadmin-bind.desktop insinto /etc/pam.d/ doins etc/pam.d/gadmin-bind insinto /etc/security/console.apps/ doins etc/security/console.apps/gadmin-bind }