pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/qmail-qfilter Update to 2.0. From the changelog:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8f1347c322a
branches:  trunk
changeset: 485998:f8f1347c322a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Dec 21 00:14:13 2004 +0000

description:
Update to 2.0. From the changelog:

- Added support for modifying the message envelope as well as the body.

- If either the body or envelope output is empty, the input is reused
  as-is.

- Export the envelope size, the message size, and the number of
  recipients to filters through environment variables $ENVSIZE,
  $MSGSIZE, and $NUMRCPTS respectively.

pkgsrc changes:

* As suggested by the install docs, use a temporary directory
    writable only by user qmaild (the user as whom qmail-qfilter
    typically runs). This can be changed by setting QMAIL_QFILTER_TMPDIR
    in mk.conf.

* Find the qmail-queue binary even if QMAILDIR isn't "/var/qmail".

* Add dependency on bglibs.

diffstat:

 mail/qmail-qfilter/Makefile |  21 +++++++++++++++++----
 mail/qmail-qfilter/distinfo |   6 +++---
 2 files changed, 20 insertions(+), 7 deletions(-)

diffs (69 lines):

diff -r 2634106a654d -r f8f1347c322a mail/qmail-qfilter/Makefile
--- a/mail/qmail-qfilter/Makefile       Tue Dec 21 00:13:21 2004 +0000
+++ b/mail/qmail-qfilter/Makefile       Tue Dec 21 00:14:13 2004 +0000
@@ -1,32 +1,44 @@
-# $NetBSD: Makefile,v 1.7 2004/08/23 03:30:20 schmonz Exp $
+# $NetBSD: Makefile,v 1.8 2004/12/21 00:14:13 schmonz Exp $
 #
 
-DISTNAME=              qmail-qfilter-1.5
-PKGREVISION=           2
+DISTNAME=              qmail-qfilter-2.0
 CATEGORIES=            mail
 MASTER_SITES=          ${HOMEPAGE}
 
 MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              http://untroubled.org/qmail-qfilter/
-COMMENT=               qmail-queue multi-filter front end
+COMMENT=               Multi-filter front end for qmail-queue
 
 DEPENDS+=              qmail>=1.03nb9:../../mail/qmail
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
 USE_BUILDLINK3=                yes
+USE_PKGINSTALL=                yes
+OWN_DIRS_PERMS+=       ${QMAIL_QFILTER_TMPDIR} qmaild ${ROOT_GROUP} 700
 
 REPLACE_PERL=          samples/block-long-dates                        \
                        samples/deny-filetypes                          \
                        samples/rename-filetypes
 
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     do-configure
+SUBST_FILES.paths=     qmail-qfilter.c
+SUBST_SED.paths=       -e 's|/tmp|${QMAIL_QFILTER_TMPDIR}|g'
+SUBST_SED.paths+=      -e 's|/var/qmail|${QMAILDIR}|g'
+SUBST_MESSAGE.paths=   "Fixing paths."
+
 INSTALLATION_DIRS=     bin man man/man1 share/examples/qmail-qfilter
 
+.include "../../mk/bsd.prefs.mk"
+
 do-configure:
        ${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
        ${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
        ${ECHO} ${PREFIX}/bin > ${WRKSRC}/conf-bin
        ${ECHO} ${PREFIX}/man > ${WRKSRC}/conf-man
+       ${ECHO} ${PREFIX}/include/bglibs > ${WRKSRC}/conf-bgincs
+       ${ECHO} ${PREFIX}/lib/bglibs > ${WRKSRC}/conf-bglibs
 
 do-install:
        cd ${WRKSRC} && ./installer && ./instcheck
@@ -36,4 +48,5 @@
                        ${PREFIX}/share/examples/qmail-qfilter;         \
        done
 
+.include "../../devel/bglibs/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2634106a654d -r f8f1347c322a mail/qmail-qfilter/distinfo
--- a/mail/qmail-qfilter/distinfo       Tue Dec 21 00:13:21 2004 +0000
+++ b/mail/qmail-qfilter/distinfo       Tue Dec 21 00:14:13 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/08/14 11:51:02 zuntum Exp $
+$NetBSD: distinfo,v 1.2 2004/12/21 00:14:13 schmonz Exp $
 
-SHA1 (qmail-qfilter-1.5.tar.gz) = 002fd83ac63bdeba7afe61d5198f76bd0bf1f98c
-Size (qmail-qfilter-1.5.tar.gz) = 17525 bytes
+SHA1 (qmail-qfilter-2.0.tar.gz) = 35c7ef9ebf11f75aab8f5b614546e2b432141364
+Size (qmail-qfilter-2.0.tar.gz) = 16251 bytes



Home | Main Index | Thread Index | Old Index