# $Id$ PNAME="polkit" PVER="0.102" PBUILD="r1" PCATEGORIE="sys-apps" DESCRIPTION="PolicyKit is a framework for defining policy for system-wide components." HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal" DEPEND=">= dev-libs/glib2-2.28 >= dev-libs/eggdbus-0.6 >= sys-libs/pam-1.1 >= dev-libs/expat-2" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-util/intltool-0.41 >= dev-libs/libxslt-1.1.26 >= dev-libs/gobject-introspection-0.10 >= app-text/docbook-xml-dtd41-4.1.2 >= app-text/docbook-xsl-stylesheets-1.75" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools mbuild SRC_URI=( http://hal.freedesktop.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2TARBALL="${PNAME}-[0-9]" UP2DATE="updatecmd_freedesktop ${PNAME}" src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/PolicyKit \ --localstatedir=/var \ --with-polkit-user=polkit \ --with-authfw=pam \ --with-pam-module-dir=/$(mlibdir)/security \ --disable-dependency-tracking \ --enable-introspection \ --disable-ansi \ --enable-fast-install \ --enable-libtool-lock \ --enable-man-pages \ --disable-verbose \ --disable-gtk-doc \ --enable-nls \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # needed directories and permissions mkeepdir /var/run/polkit-1 || die mkeepdir /var/lib/polkit-1 || die mchown root:polkit /var/run/polkit-1 || die mchown root:polkit /var/lib/polkit-1 || die mchmod 0700 /var/run/polkit-1 || die mchmod 0700 /var/lib/polkit-1 || die # docs minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die } preinstall() { # adds pokit user ${MLIBDIR}/mgroupadd -o "-g 26" polkit ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit }