[Fedora-packaging] Re: GConf schema packaging guidelines

Toshio toshio at tiki-lounge.com
Wed Mar 16 01:03:46 UTC 2005


Okay -- this set of scripts seems to work and has the added benefit of
sending a HUP to have gconfd-2 reload per Mark McLoughlin's suggestion
on fedora-maintainers.  (I don't know how gcond responded to HUP prior
to 2.7.3 FC2 and earlier though.)

I don't know if there's anyway to work around the previous broken
scripts, though....

%pre
if [ "$1" -gt 1 ]; then
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  gconftool-2 --makefile-uninstall-rule \
    %{_syscondir}/gconf/schemas/CURRENTSCHEMA.schemas > /dev/null || :
  # If applicable:
  # gconftool-2 --makefile-uninstall-rule \
  #  %{_sysconfdir}/gconf/schemas/OLDSCHEMA.schemas > /dev/null || :
  killall -HUP gconfd-2
fi

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
  /etc/gconf/schemas/CURRENTSCHEMA.schemas > /dev/null || :
killall -HUP gconfd-2

%preun
if [ "$1" -eq 0 ]; then
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  gconftool-2 --makefile-uninstall-rule \
    /etc/gconf/schemas/CURRENTSCHEMA.schemas > /dev/null || :
  killall -HUP gconfd-2
fi

-Toshio
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20050315/b862300c/attachment.sig>


More information about the Fedora-packaging mailing list