2002-06-17 16:56:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2002/06/17 20:56:20 lebel Exp $
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
COMMENT= "reduce the amount of SPAM/UCE (junk-mail)"
|
|
|
|
|
2002-06-17 16:56:20 -04:00
|
|
|
VERSION= 0.57
|
2002-01-18 19:57:07 -05:00
|
|
|
DISTNAME= tmda-${VERSION}
|
|
|
|
CATEGORIES= mail
|
|
|
|
NEED_VERSION= 1.503
|
|
|
|
HOMEPAGE= http://tmda.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= David Lebel <lebel@openbsd.org>
|
|
|
|
|
|
|
|
# BSD-style
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-02-20 15:54:35 -05:00
|
|
|
MASTER_SITES= http://software.libertine.org/tmda/releases/ \
|
|
|
|
http://software.libertine.org/tmda/releases/old/
|
2002-01-18 19:57:07 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2002-02-15 14:53:42 -05:00
|
|
|
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2002-01-18 19:57:07 -05:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
PYTHON_VER= 2.1
|
|
|
|
PYTHON_LIBDIR= lib/python${PYTHON_VER}
|
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
|
|
|
|
do-build:
|
2002-04-07 18:30:23 -04:00
|
|
|
@cd ${WRKSRC} && ${LOCALBASE}/bin/python${PYTHON_VER} -c \
|
|
|
|
'import compileall; compileall.compile_dir(".", force=1)'
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${PYTHON_LIBDIR}/TMDA
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PREFIX}/${PYTHON_LIBDIR}/TMDA
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/tmda
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${PREFIX}/share/tmda
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/tmda-* ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tmda
|
2002-02-20 15:54:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tmda
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/sample.tmdarc ${PREFIX}/share/examples/tmda
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/htdocs/*.html ${PREFIX}/share/doc/tmda
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|