# $Id$ PNAME="gconf" PVER="2.28.0" PBUILD="r1" PCATEGORIE="gnome-base" STATE="unstable" DESCRIPTION="GConf is a 'registry' system, a library applications can use to store key-value pairs persistently." HOMEPAGE="http://www.gnome.org/" DEPEND=">= dev-libs/glib2-2.22 >= dev-libs/libxml2-2.7 >= gnome-base/orbit-2.14.17 >= x11-libs/gtk2+-2.18 >= sys-apps/dbus-1.3 >= dev-libs/dbus-glib-0.82 >= net-nds/openldap-2.4.19 >= sys-apps/polkit-0.94" SDEPEND=">= dev-util/pkgconfig-0.23 >= dev-util/intltool-0.40" # include kill_gconf() in mage file SPECIAL_FUNCTIONS="kill_gconf" SRCFILE="GConf-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/GConf-${PVER}" sminclude mtools gnome2 SRC_URI=( gnome://GConf/${PVER%.*}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_gnome GConf" src_compile() { cd ${SRCDIR} # defaults-service needs polkit gn2_configure --with-openldap --enable-defaults-service || die mmake || die } src_install() { cd ${SRCDIR} gn2_src_install || die # needed directories to run gconf minstalldir /etc/gconf/gconf.xml.mandatory || die minstalldir /etc/gconf/gconf.xml.defaults || die } kill_gconf() { # this function will kill all running gconfd that could be causing troubles if [ -x /usr/bin/gconftool ] then /usr/bin/gconftool --shutdown fi if [ -x /usr/bin/gconftool-1 ] then /usr/bin/gconftool-1 --shutdown fi if [ -x /usr/bin/gconftool-2 ] then /usr/bin/gconftool-2 --shutdown fi return 0 } preinstall() { kill_gconf # install -d /etc/env.d # echo 'CONFIG_PROTECT_MASK="/etc/gconf"' > /etc/env.d/50gconf install -d ${MROOT}/root/.gconfd } postinstall() { # gconf specific: kill_gconf # change the permissions to avoid some gconf bugs echo "changing permissions for gconf dirs" find ${MROOT}/etc/gconf/ -type d -exec chmod ugo+rx "{}" \; echo "changing permissions for gconf files" find ${MROOT}/etc/gconf/ -type f -exec chmod ugo+r "{}" \; # disable scrollkeeper SCROLLKEEPER_UPDATE="0" gn2_postinstall }