Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ffa029ca48cd4335cccd6fc503f1f4f5f53441c3
commit ffa029ca48cd4335cccd6fc503f1f4f5f53441c3 Author: bouleetbil <bouleet...@frogdev.info> Date: Sun Apr 12 10:50:21 2009 +0200 mail-notification-5.4-3-i686 *closed #3738 *use a manual gnome-scriptlet *delete this .install when we bump mail-notification diff --git a/source/gnome-extra/mail-notification/FrugalBuild b/source/gnome-extra/mail-notification/FrugalBuild index 7defcb7..e10e38c 100644 --- a/source/gnome-extra/mail-notification/FrugalBuild +++ b/source/gnome-extra/mail-notification/FrugalBuild @@ -1,13 +1,13 @@ # Compiling Time: 0.32 SBU # Maintainer: bouleetbil <bouleet...@frogdev.info> -# Contributor: TranzeManiaC <tranzeman...@clovermail.net> +# Contributor: TranzeManiaC <tranzeman...@jabberlive.org> pkgname=mail-notification pkgver=5.4 -pkgrel=2 +pkgrel=3 pkgdesc="Mail Notification monitors your mailboxes for new mail." url="http://www.nongnu.org/mailnotify/" -depends=('gmime>=2.4.3' 'eel>=2.24.1' 'dbus-glib>=0.76' 'cyrus-sasl') +depends=('gmime>=2.4.3' 'eel>=2.24.1' 'dbus-glib>=0.76' 'cyrus-sasl' 'libnotify') up2date="lynx -dump http://download.savannah.gnu.org/releases/mailnotify | grep $pkgname | Flasttar" makedepends=('intltool') archs=('i686' 'x86_64') @@ -17,6 +17,7 @@ _F_gnome_iconcache=y _F_gnome_desktop=y Finclude gnome-scriptlet groups=('gnome-extra') +install=$pkgname.install source=(http://savannah.nongnu.org/download/mailnotify/$pkgname-$pkgver.tar.bz2 mail-notification-5.4-gmime.diff) sha1sums=('c148449c5d2fd0a75571e4e42932da1f1ae013f6' \ '9e3de8a7a0a01effc2236826bf83bed20e52fdbf') diff --git a/source/gnome-extra/mail-notification/mail-notification.install b/source/gnome-extra/mail-notification/mail-notification.install new file mode 100644 index 0000000..cbf275a --- /dev/null +++ b/source/gnome-extra/mail-notification/mail-notification.install @@ -0,0 +1,132 @@ +schemas=('/etc/gconf/schemas/mail-notification.schemas') +entries=() + +post_install() +{ + echo "Removing mail-notification obsolete gconf settings..." + mail-notification --unset-obsolete-configuration > /dev/null 2>&1 + + if [ ${#schemas[*]} -gt 0 ]; then + echo -n "installing gconf schemas... " + for schema in "${schem...@]}" ; do + GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ + /usr/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1 + done + if [ -e /bin/pidof ]; then + kill -HUP `pidof /usr/libexec/gconfd-2` > /dev/null 2>&1 + fi + echo "done." + fi + if [ ${#entries[*]} -gt 0 ]; then + echo -n "loading gconf entries... " + for entry in "${entri...@]}" ; do + gconftool-2 --direct --config-source=`/usr/bin/gconftool-2 --get-default-source` --load $entry > /dev/null 2>&1 + done + if [ -e /bin/pidof ]; then + kill -HUP `pidof /usr/libexec/gconfd-2` > /dev/null 2>&1 + fi + echo "done." + fi + if [ -n "y" ]; then + echo -n "updating desktop database..." + if update-desktop-database > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "" ]; then + echo -n "updating rarian database..." + if rarian-sk-update -q > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "" ]; then + echo -n "updating mime database..." + if update-mime-database /usr/share/mime > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "y" ]; then + echo -n "updating hicolor icon cache..." + if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi +} + +post_upgrade() +{ + post_install $1 +} + +pre_remove() { + if [ ${#schemas[*]} -gt 0 ]; then + echo -n "updating gconf schemas... " + for schema in "${schem...@]}" ; do + GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ + /usr/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1 + done + if [ -e /bin/pidof ]; then + kill -HUP `pidof /usr/libexec/gconfd-2` > /dev/null 2>&1 + fi + echo "done." + fi + if [ ${#entries[*]} -gt 0 ]; then + echo -n "unloading gconf entries... " + for entry in "${entri...@]}" ; do + gconftool-2 --direct --config-source=`/usr/bin/gconftool-2 --get-default-source` --unload $entry > /dev/null 2>&1 + done + if [ -e /bin/pidof ]; then + kill -HUP `pidof /usr/libexec/gconfd-2` > /dev/null 2>&1 + fi + echo "done." + fi +} + +post_remove() +{ + if [ -n "y" ]; then + echo -n "updating desktop database..." + if update-desktop-database > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "" ]; then + echo -n "updating rarian database..." + if rarian-sk-update -q > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "" ]; then + echo -n "updating mime database..." + if update-mime-database /usr/share/mime > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi + if [ -n "y" ]; then + echo -n "updating hicolor icon cache..." + if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 2>&1 ; then + echo " done." + else + echo " failed." + fi + fi +} + +op=$1 +shift + +$op $* _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git