# $Header: /magellan-cvs/smage/gconf/gconf-2.22.0-r1.smage2,v 1.1 2008/03/21 08:55:58 niro Exp $ PNAME="gconf" PVER="2.22.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.16 >= dev-libs/popt-1.10 >= dev-libs/libxml2-2.6.16 >= gnome-base/orbit-2.14.12 >= x11-libs/gtk2+-2.12" SDEPEND=">= dev-util/pkgconfig-0.23" # 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} ) 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 }