Re: [Fedora-packaging] Re: GConf schema packaging guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux