# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools DESCRIPTION="GADMIN-SAMBA is an easy to use GTK+ frontend for the SAMBA file and print server." 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-fs/samba virtual/krb5 " src_unpack() { if [ "${A}" != "" ]; then unpack ${A} fi cd "${S}" epatch "${FILESDIR}/${P}-log_path.patch" epatch "${FILESDIR}/${P}-examples_install.patch" einfo "Regenerating autotools files..." eautoconf || die "eautoconf failed" eautomake || die "automake failed" } src_compile() { if [ -x ./configure ]; then econf || die 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/doc/${PN}/Netlogon doins scripts/example.bat doins scripts/gadmin-samba-pdf insinto /etc/pam.d/ doins etc/pam.d/${PN} insinto /etc/security/console.apps/ doins etc/security/console.apps/${PN} insinto /usr/share/applications/ doins desktop/${PN}.desktop } pkg_postinst() { elog "Netlogon example files installed to " elog "/usr/share/doc/gadmin-samba/Netlogon" elog "" elog "For winbind use Samba need to have winbind useflag" }