diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-08-31 01:35:19 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-08-31 01:35:19 +0000 |
commit | 22d56155a327b9227cce18ab6a2cfa2838e0868a (patch) | |
tree | cdf49e5b52e62227c1d4ea9d24f19f566c6be957 /x11-misc/bbmail | |
parent | migrated from app-misc (diff) | |
download | gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.tar.gz gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.tar.bz2 gentoo-2-22d56155a327b9227cce18ab6a2cfa2838e0868a.zip |
migrated from app-misc
Diffstat (limited to 'x11-misc/bbmail')
-rw-r--r-- | x11-misc/bbmail/bbmail-0.6.11.ebuild | 33 | ||||
-rw-r--r-- | x11-misc/bbmail/files/bbmail-qmail.patch | 35 | ||||
-rw-r--r-- | x11-misc/bbmail/files/digest-bbmail-0.6.11 | 1 |
3 files changed, 69 insertions, 0 deletions
diff --git a/x11-misc/bbmail/bbmail-0.6.11.ebuild b/x11-misc/bbmail/bbmail-0.6.11.ebuild new file mode 100644 index 000000000000..4374549a9f65 --- /dev/null +++ b/x11-misc/bbmail/bbmail-0.6.11.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Craig Joly <joly@ee.ualberta.ca> +# $Header: /var/cvsroot/gentoo-x86/x11-misc/bbmail/bbmail-0.6.11.ebuild,v 1.1 2001/08/31 01:35:19 woodchip Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="blackbox mail notification, patched for maildir" +SRC_URI="http://bbtools.thelinuxcommunity.org/sources/${P}.tar.gz" +HOMEPAGE="http://bbtools.thelinuxcommunity.org/available.phtml" + +DEPEND=">=x11-wm/blackbox-0.61" + +src_unpack () { + unpack ${A} + cd ${S} + # This is a patch for bbmail to support qmail style maildirs + patch -p1 < ${FILESDIR}/bbmail-qmail.patch || die +} + +src_compile() { + ./configure --prefix=/usr/X11R6 --host=${CHOST} || die + emake || die +} + +src_install () { + make DESTDIR=${D} install || die + dodoc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO data/README.bbmail +} + +pkg_postinst() { + cd ${ROOT}usr/X11R6/bin/wm + sed -e "s/.*blackbox/exec \/usr\/X11R6\/bin\/bbmail \&\n&/" blackbox | cat > blackbox +} diff --git a/x11-misc/bbmail/files/bbmail-qmail.patch b/x11-misc/bbmail/files/bbmail-qmail.patch new file mode 100644 index 000000000000..8e23afd63991 --- /dev/null +++ b/x11-misc/bbmail/files/bbmail-qmail.patch @@ -0,0 +1,35 @@ +--- bbmail-0.6.10.orig/bbmail.cc ++++ bbmail-0.6.10/bbmail.cc +@@ -55,7 +55,7 @@ + } + + bool Checkmail::CheckMHBox(int spoolno,bool force) { +- struct stat file_status; ++ struct stat file_status, maildir_status; + FILE *fp; + int num[2]={-1,-1}; + int number_of_values; +@@ -67,6 +67,23 @@ + bbtool->getResource()->spoolfile[spoolno].filename); + return(false); + } ++ ++ // check maildir new/ and cur/ directories ++ char *maildir = new ++ char[strlen (bbtool->getResource()->spoolfile[spoolno].filename) + 5]; ++ sprintf (maildir, "%s/new", bbtool->getResource()->spoolfile[spoolno].filename); ++ if (stat (maildir, &maildir_status) == 0 && ++ maildir_status.st_mtime > file_status.st_mtime) { ++ file_status.st_mtime = maildir_status.st_mtime; ++ } ++ ++ sprintf (maildir, "%s/cur", bbtool->getResource()->spoolfile[spoolno].filename); ++ if (stat (maildir, &maildir_status) == 0 && ++ maildir_status.st_mtime > file_status.st_mtime) { ++ file_status.st_mtime = maildir_status.st_mtime; ++ } ++ ++ delete [] maildir; + } + + if ((file_status.st_mtime != spoolfile[spoolno].last_mtime)&& diff --git a/x11-misc/bbmail/files/digest-bbmail-0.6.11 b/x11-misc/bbmail/files/digest-bbmail-0.6.11 new file mode 100644 index 000000000000..98e7288a0d76 --- /dev/null +++ b/x11-misc/bbmail/files/digest-bbmail-0.6.11 @@ -0,0 +1 @@ +MD5 26e442a09ceab67a39b73ad80ceafff9 bbmail-0.6.11.tar.gz |