aboutsummaryrefslogtreecommitdiff
path: root/mail/tmda
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-02-08 04:08:02 +0000
committerPatrick Li <pat@FreeBSD.org>2002-02-08 04:08:02 +0000
commit83b57cf8175a033c2d27f583838383667ae924de (patch)
treecebc2c3f1569c23ca7d0b1ebf31a4591c536978a /mail/tmda
parent186aa086032c24cb2993416c0a4252e654fe8369 (diff)
downloadports-83b57cf8175a033c2d27f583838383667ae924de.tar.gz
ports-83b57cf8175a033c2d27f583838383667ae924de.zip
Notes
Diffstat (limited to 'mail/tmda')
-rw-r--r--mail/tmda/Makefile9
-rw-r--r--mail/tmda/distinfo2
-rw-r--r--mail/tmda/pkg-plist2
-rw-r--r--mail/tmda/pkg-req17
4 files changed, 25 insertions, 5 deletions
diff --git a/mail/tmda/Makefile b/mail/tmda/Makefile
index d900ed51b536..746cb70ec85d 100644
--- a/mail/tmda/Makefile
+++ b/mail/tmda/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= tmda
-PORTVERSION= 0.44
+PORTVERSION= 0.46
CATEGORIES= mail python
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= tmda
+MASTER_SITES= http://software.libertine.org/tmda/releases/ \
+ http://software.libertine.org/tmda/releases/old/
EXTRACT_SUFX= .tgz
MAINTAINER= jason@mastaler.com
@@ -19,6 +19,9 @@ USE_PYTHON= yes
do-build:
(cd ${WRKSRC}; ${PYTHON_CMD} ./compileall)
+pre-install:
+ @${SH} ${PKGREQ} INSTALL
+
do-install:
${MKDIR} ${PYTHON_SITELIBDIR}/TMDA
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PYTHON_SITELIBDIR}/TMDA
diff --git a/mail/tmda/distinfo b/mail/tmda/distinfo
index 8287d74ecdbd..03ea7c294b0f 100644
--- a/mail/tmda/distinfo
+++ b/mail/tmda/distinfo
@@ -1 +1 @@
-MD5 (tmda-0.44.tgz) = 66c80120099b046ab1c5974748da36ed
+MD5 (tmda-0.46.tgz) = abdc1c160c74a92071fa586399ba02b7
diff --git a/mail/tmda/pkg-plist b/mail/tmda/pkg-plist
index de7c370b7032..390ca609b990 100644
--- a/mail/tmda/pkg-plist
+++ b/mail/tmda/pkg-plist
@@ -55,10 +55,10 @@ lib/%%PYTHON_VERSION%%/site-packages/TMDA/__init__.pyc
%%PORTDOCS%%share/doc/tmda/htdocs/index.html
%%PORTDOCS%%share/doc/tmda/htdocs/install.html
%%PORTDOCS%%share/doc/tmda/htdocs/inuse.html
-%%PORTDOCS%%share/doc/tmda/htdocs/lists.html
%%PORTDOCS%%share/doc/tmda/htdocs/requirements.html
%%PORTDOCS%%share/doc/tmda/htdocs/resources.html
%%PORTDOCS%%share/doc/tmda/htdocs/results.html
+%%PORTDOCS%%share/doc/tmda/htdocs/trouble.html
share/tmda/confirm_accept.txt
share/tmda/confirm_request.txt
@dirrm share/tmda
diff --git a/mail/tmda/pkg-req b/mail/tmda/pkg-req
new file mode 100644
index 000000000000..f2b70eeb6d6e
--- /dev/null
+++ b/mail/tmda/pkg-req
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PATH=$PATH:/usr/local/bin
+
+if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
+ PYTHON_GT=`python -c 'import string, sys; \
+ print string.split(sys.version)[0] >= "2.0"'`
+ if [ "x${PYTHON_GT}" = "x1" ]; then
+ exit 0
+ else
+ echo "-----------------------------------------------------------"
+ echo " TMDA requires Python version 2.0 or greater -"
+ echo " please update your Python installation before proceeding."
+ echo "-----------------------------------------------------------"
+ exit 1
+ fi
+fi