summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2007-08-11 14:52:54 +0000
committerschmonz <schmonz@pkgsrc.org>2007-08-11 14:52:54 +0000
commit4d83dcd1ed6c0a96805d5b07ca539e1e77773f71 (patch)
tree444d7a4183a0a84a1d99a637ee87d99a6b7e444c /mail
parent5a7320b452d71a58ecb63190007890b4ab10eaed (diff)
downloadpkgsrc-4d83dcd1ed6c0a96805d5b07ca539e1e77773f71.tar.gz
Precompile Python modules at post-install. Bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/tmda/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/tmda/Makefile b/mail/tmda/Makefile
index a8e00a34837..647c976386e 100644
--- a/mail/tmda/Makefile
+++ b/mail/tmda/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2007/07/31 04:44:01 schmonz Exp $
+# $NetBSD: Makefile,v 1.41 2007/08/11 14:52:54 schmonz Exp $
#
DISTNAME= tmda-1.1.12
+PKGREVISION= 1
CATEGORIES= mail python
MASTER_SITES= http://tmda.sourceforge.net/ftp/releases/
MASTER_SITES+= ftp://tmda.net/pub/tmda/releases/
@@ -11,13 +12,13 @@ MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://tmda.net/
COMMENT= Python-based SPAM reduction system
-PY_PATCHPLIST= yes
+PYTHON_VERSIONS_ACCEPTED= 24 23
PYTHON_PATCH_SCRIPTS= ${TMDA_PROGRAMS}
+PY_PATCHPLIST= yes
+PYCOMPILEALL= ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py
PKG_SYSCONFSUBDIR= ${PKGBASE}
-PYTHON_VERSIONS_ACCEPTED= 24 23
-
PKG_GROUPS= tofmipd
PKG_USERS= tofmipd:tofmipd
PKG_GECOS.tofmipd= TMDA ofmipd User
@@ -91,7 +92,10 @@ do-install:
cp -Rp ${WRKSRC}/doc/html/* ${PREFIX}/${HTMLDIR}
post-install:
- ${PREFIX}/bin/tmda-ofmipd -V >/dev/null 2>&1
+ ${PYTHONBIN} ${PYCOMPILEALL} ${PREFIX}/${PYSITELIB}/TMDA \
+ ${PREFIX}/${PYSITELIB}/TMDA/Queue \
+ ${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email \
+ ${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email/mime
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"