public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] procmail ebuild
@ 2001-07-31 14:27 Craig Joly
  2001-07-31 14:32 ` Dan Armak
  0 siblings, 1 reply; 2+ messages in thread
From: Craig Joly @ 2001-07-31 14:27 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

I found that the supplied procmail ebuild didn't work for me with
postfix and maildir and I definitely wanted a working mail filter
before I subscribed to this mailing list, so I've modified Jerry's
ebuild to work with maildir in $HOME/.maildir and procmail-3.21.

Craig

[-- Attachment #2: procmail-3.21.ebuild --]
[-- Type: text/plain, Size: 1197 bytes --]

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry Alexandratos <jerry@gentoo.org>
# Modified by $HOME/.maildir by Craig Joly <craig@taipan.mudshark.org>
# $Header$

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Mail delivery agent/filter"
SRC_URI="http://www.procmail.org/${A}"
HOMEPAGE="http://www.procmail.org/"

DEPEND="virtual/glibc
        virtual/mta"

src_compile() {

    cp Makefile Makefile.orig
    sed -e "s:CFLAGS0 = -O:CFLAGS0 = ${CFLAGS}:" \
        -e "s:LOCKINGTEST=__defaults__:#LOCKINGTEST=__defaults__:" \
        -e "s:#LOCKINGTEST=/tmp:LOCKINGTEST=/tmp:" Makefile.orig > Makefile
	cd ${S}/src
	cp authenticate.c authenticate.c.orig
	sed -e "s:/\*#define MAILSPOOLHOME \"/.mail\":#define MAILSPOOLHOME \"/.maildir/\":" authenticate.c.orig > authenticate.c
	cd ${S}
    try make
}

src_install () {
    cd ${S}/new
    insinto /usr/bin
    insopts -m 6755
    doins procmail

    insopts -m 2755
    doins lockfile

    dobin formail mailstat

    doman *.1 *.5

    cd ${S}
    dodoc Artistic COPYING FAQ FEATURES HISTORY INSTALL KNOWN_BUGS README

	docinto examples
	dodoc examples/*
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-31 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-31 14:27 [gentoo-dev] procmail ebuild Craig Joly
2001-07-31 14:32 ` Dan Armak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox