Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=b079eb58b4dcbb129ba868147a6cda3e368a5e12

commit b079eb58b4dcbb129ba868147a6cda3e368a5e12
Author: bouleetbil <[email protected]>
Date:   Wed Sep 28 15:42:27 2011 +0200

mail-notification
*dead
*to pain to maintain it => trash

diff --git a/source/gnome-extra/mail-notification/FrugalBuild 
b/source/gnome-extra/mail-notification/FrugalBuild
deleted file mode 100644
index 38e4e85..0000000
--- a/source/gnome-extra/mail-notification/FrugalBuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Compiling Time: 0.32 SBU
-# Maintainer: bouleetbil <[email protected]>
-# Contributor: TranzeManiaC <[email protected]>
-
-pkgname=mail-notification
-pkgver=5.4
-pkgrel=7
-pkgdesc="Mail Notification monitors your mailboxes for new mail."
-url="http://www.nongnu.org/mailnotify/";
-depends=('gmime>=2.4.3' 'nautilus>=2.30.1' 'dbus-glib>=0.76' \
-       'cyrus-sasl' 'libnotify>=0.7' 'libgnomeui>=2.24.3-3')
-up2date="lynx -dump http://download.savannah.gnu.org/releases/mailnotify | 
grep $pkgname | Flasttar"
-makedepends=('intltool')
-archs=('i686' 'x86_64')
-_F_gnome_schemas=('/etc/gconf/schemas/mail-notification.schemas')
-options=('scriptlet')
-_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')
-build() {
-       Fcd
-       Fpatchall
-       ./jb configure destdir="${Fdestdir}" prefix="/usr" libdir=/usr/lib \
-               sysconfdir="/etc" localstatedir="/var" \
-               cflags="${CFLAGS}" cppflags="${CXXFLAGS}" ldflags="${LDFLAGS}" 
|| Fdie
-       ./jb build || Fdie
-       ./jb install || Fdie
-       #Fbuild
-       Fbuild_gnome_scriptlet
-       Fmkdir /usr/share/gnome/autostart
-       Fmv /etc/xdg/autostart/$pkgname.desktop /usr/share/gnome/autostart/
-       Frm /etc/xdg
-}
-
-# optimization OK
diff --git 
a/source/gnome-extra/mail-notification/mail-notification-5.4-gmime.diff 
b/source/gnome-extra/mail-notification/mail-notification-5.4-gmime.diff
deleted file mode 100644
index 0d16357..0000000
--- a/source/gnome-extra/mail-notification/mail-notification-5.4-gmime.diff
+++ /dev/null
@@ -1,63 +0,0 @@
-diff -Nrbu mail-notification-5.4/build/src/mn-base-mbox-mailbox-backend.c 
mail-notification-5.4-OK/build/src/mn-base-mbox-mailbox-backend.c
---- mail-notification-5.4/build/src/mn-base-mbox-mailbox-backend.c     
2008-12-23 14:48:49.000000000 +0300
-+++ mail-notification-5.4-OK/build/src/mn-base-mbox-mailbox-backend.c  
2008-12-23 14:48:28.000000000 +0300
-@@ -265,7 +265,7 @@
-           mime_message = g_mime_parser_construct_message(parser);
-           if (mime_message)
-             {
--              if (g_mime_message_get_header(mime_message, "X-Mozilla-Status"))
-+              if (g_mime_object_get_header(mime_message, "X-Mozilla-Status"))
-                 {
- #if WITH_MOZILLA
-                   type = MN_TYPE_MOZILLA_MAILBOX_BACKEND;
-diff -Nrbu mail-notification-5.4/build/src/mn-mozilla-mailbox-backend.c 
mail-notification-5.4-OK/build/src/mn-mozilla-mailbox-backend.c
---- mail-notification-5.4/build/src/mn-mozilla-mailbox-backend.c       
2008-12-23 14:48:49.000000000 +0300
-+++ mail-notification-5.4-OK/build/src/mn-mozilla-mailbox-backend.c    
2008-12-23 14:46:47.000000000 +0300
-@@ -167,7 +167,7 @@
-
-     const char *header;
-
--    header = g_mime_message_get_header(mime_message, header_name);
-+    header = g_mime_object_get_header(mime_message, header_name);
-     if (header && mn_str_ishex(header))
-       return strtol(header, NULL, 16);
-     else
-diff -Nrbu mail-notification-5.4/jbsrc/jb.c mail-notification-5.4-OK/jbsrc/jb.c
---- mail-notification-5.4/jbsrc/jb.c   2008-05-22 19:47:04.000000000 +0400
-+++ mail-notification-5.4-OK/jbsrc/jb.c        2008-12-23 14:43:09.000000000 
+0300
-@@ -166,7 +166,7 @@
-   jb_require_packages("GNOME", "gnome", "glib-2.0 >= 2.14 gthread-2.0 
gconf-2.0 >= 2.4.0 gtk+-2.0 >= 2.12 libgnomeui-2.0 >= 2.14.0 gnome-vfs-2.0 
libglade-2.0 libxml-2.0 libnotify >= 0.4.1");
-   jb_require_packages("D-Bus", "dbus", "dbus-glib-1");
-
--  jb_check_packages_for_options("GMime", "gmime", "gmime-2.0 >= 2.2.7",
-+  jb_check_packages_for_options("GMime", "gmime", "gmime-2.4",
-                               "hotmail",
-                               "imap",
-                               "maildir",
-diff -Nrbu mail-notification-5.4/src/mn-message-mime.c 
mail-notification-5.4-OK/src/mn-message-mime.c
---- mail-notification-5.4/src/mn-message-mime.c        2008-05-22 
19:45:35.000000000 +0400
-+++ mail-notification-5.4-OK/src/mn-message-mime.c     2008-12-23 
14:46:35.000000000 +0300
-@@ -33,12 +33,12 @@
-   g_return_val_if_fail(GMIME_IS_MESSAGE(mime_message), FALSE);
-
-   /* SpamAssassin */
--  spam = g_mime_message_get_header(mime_message, "X-Spam-Status");
-+  spam = g_mime_object_get_header(mime_message, "X-Spam-Status");
-   if (spam && mn_ascii_str_case_has_prefix(spam, "yes"))
-     return TRUE;
-
-   /* bogofilter */
--  spam = g_mime_message_get_header(mime_message, "X-Bogosity");
-+  spam = g_mime_object_get_header(mime_message, "X-Bogosity");
-   if (spam && mn_ascii_str_case_has_prefix(spam, "yes"))
-     return TRUE;
-
-@@ -89,7 +89,7 @@
-     {
-       const char *status;
-
--      status = g_mime_message_get_header(mime_message, "Status");
-+      status = g_mime_object_get_header(mime_message, "Status");
-       if (status && strchr(status, 'R'))
-       return NULL;            /* the message was read */
-       else if (status && strchr(status, 'O'))
diff --git a/source/gnome-extra/mail-notification/mail-notification.install 
b/source/gnome-extra/mail-notification/mail-notification.install
deleted file mode 100644
index cbf275a..0000000
--- a/source/gnome-extra/mail-notification/mail-notification.install
+++ /dev/null
@@ -1,132 +0,0 @@
-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 "${schemas[@]}" ; 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 "${entries[@]}" ; 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 "${schemas[@]}" ; 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 "${entries[@]}" ; 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
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to