# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/resmgr/resmgr-1.0.ebuild,v 1.4 2007/04/28 16:25:53 swegener Exp $ inherit multilib DESCRIPTION="Resource manager that will provide unprivileged users access to device files" HOMEPAGE="http://rechner.lst.de/~okir/resmgr/" SRC_URI="ftp://ftp.lst.de/pub/people/okir/resmgr/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" DEPEND="sys-apps/hotplug sys-libs/pam" IUSE="" src_compile() { emake CFLAGS="$CFLAGS" || die } src_install() { make LIBDIR="${D}/$(get_libdir)" PAMDIR="${D}/$(get_libdir)" DESTDIR="${D}" install || die dosym $(basename ${D}/$(get_libdir)/libresmgr.so.*) /$(get_libdir)/libresmgr.so newinitd "${FILESDIR}/resmgrd.rc" resmgrd newconfd "${FILESDIR}/resmgrd.confd" resmgrd exeinto /etc/hotplug/usb newexe "${FILESDIR}/desktopdev" desktopdev dodoc ANNOUNCE COPYING INSTALL README TODO dodoc "${FILESDIR}/README.gentoo" } pkg_postinst() { ewarn "You need to define access control lists in /etc/resmgr.conf" ewarn "For a start, it is probably a good idea to add a rule such as" ewarn " allow desktop tty=:0" ewarn "which will give everyone logged in via kdm/gdm access to" ewarn "resource class desktop." echo ewarn "Then start the daemon by running /etc/init.d/resmgrd start" ewarn "and add pam_resmgr.so to the PAM configuration file that" ewarn "controls your graphical login. Depending on your desktop," ewarn "this will be /etc/pam.d/xdm, /etc/pam.d/gdm, /etc/pam.d/kdm," ewarn "or /etc/pam.d/kde." }