summaryrefslogtreecommitdiff
path: root/mail/tmda/Makefile
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-02-14 13:00:25 +0000
committerdrochner <drochner@pkgsrc.org>2002-02-14 13:00:25 +0000
commit92ecbe5a01a88817c05efced552c8c445fe098af (patch)
tree9484a42f7302e3278e1627c8fff0bb0bb3659728 /mail/tmda/Makefile
parentb66588e93951c34e6e2274a4cb64dafb63dc3102 (diff)
downloadpkgsrc-92ecbe5a01a88817c05efced552c8c445fe098af.tar.gz
import of tmda-0.46, a Python-based SPAM reduction system, submitted by
Amitai Schlair per PR pkg/15075
Diffstat (limited to 'mail/tmda/Makefile')
-rw-r--r--mail/tmda/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/mail/tmda/Makefile b/mail/tmda/Makefile
new file mode 100644
index 00000000000..be26c22c756
--- /dev/null
+++ b/mail/tmda/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/02/14 13:00:25 drochner Exp $
+#
+
+DISTNAME= tmda-0.46
+CATEGORIES= mail python
+MASTER_SITES= http://software.libertine.org/tmda/releases/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= schmonz+netbsd@schmonz.com
+HOMEPAGE= http://tmda.sourceforge.net/
+COMMENT= Python-based SPAM reduction system
+
+PY_PATCHPLIST= # defined
+PYTHON_PATCH_SCRIPTS= ${TMDA_PROGRAMS}
+
+SHAREDIR= share/${PKGBASE}
+DOCDIR= share/doc/${PKGBASE}
+CONTRIBDIR= share/doc/${PKGBASE}/contrib
+HTMLDIR= share/doc/html/${PKGBASE}
+PLIST_SUBST+= SHAREDIR="${SHAREDIR}"
+PLIST_SUBST+= DOCDIR="${DOCDIR}"
+PLIST_SUBST+= CONTRIBDIR="${CONTRIBDIR}"
+PLIST_SUBST+= HTMLDIR="${HTMLDIR}"
+
+TMDA_PROGRAMS= bin/tmda-address
+TMDA_PROGRAMS+= bin/tmda-check-address
+TMDA_PROGRAMS+= bin/tmda-clean
+TMDA_PROGRAMS+= bin/tmda-filter
+TMDA_PROGRAMS+= bin/tmda-inject
+TMDA_PROGRAMS+= bin/tmda-keygen
+TMDA_PROGRAMS+= bin/tmda-rfilter
+TMDA_PROGRAMS+= bin/tmda-sendmail
+
+do-build:
+ cd ${WRKSRC}; ${PYTHONBIN} ./compileall
+
+do-install:
+ for file in ${TMDA_PROGRAMS}; do \
+ ${INSTALL_SCRIPT} ${WRKSRC}/$${file} ${PREFIX}/bin; \
+ done
+
+ ${INSTALL_SCRIPT_DIR} ${PREFIX}/${PYSITELIB}/TMDA
+ ${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PREFIX}/${PYSITELIB}/TMDA
+
+ ${INSTALL_DATA_DIR} ${PREFIX}/${SHAREDIR}
+ ${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${PREFIX}/${SHAREDIR}
+
+ ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
+ for file in ChangeLog COPYRIGHT CRYPTO INSTALL README THANKS UPGRADE; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${file} ${PREFIX}/${DOCDIR}; \
+ done
+
+ ${INSTALL_DATA_DIR} ${PREFIX}/${CONTRIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/contrib/* ${PREFIX}/${CONTRIBDIR}
+
+ ${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
+ ${INSTALL_DATA} ${WRKSRC}/htdocs/*.html ${PREFIX}/${HTMLDIR}
+
+.include "../../lang/python/extension.buildlink.mk"
+.include "../../lang/python/application.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"