2003-04-30 10:37:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2003/04/30 14:37:37 lebel Exp $
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
COMMENT= "reduce the amount of SPAM/UCE (junk-mail)"
|
|
|
|
|
2003-04-30 10:37:37 -04:00
|
|
|
VERSION= 0.76
|
2002-01-18 19:57:07 -05:00
|
|
|
DISTNAME= tmda-${VERSION}
|
|
|
|
CATEGORIES= mail
|
2002-10-27 12:21:39 -05:00
|
|
|
|
2002-12-11 20:25:36 -05:00
|
|
|
HOMEPAGE= http://tmda.net/
|
|
|
|
MAINTAINER= Jim Geovedi <jim@corebsd.or.id>
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
# BSD-style
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-07-22 16:26:34 -04:00
|
|
|
MASTER_SITES= http://tmda.net/releases/ \
|
|
|
|
http://tmda.net/releases/old/
|
2002-01-18 19:57:07 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-04-30 10:37:37 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
2002-01-18 19:57:07 -05:00
|
|
|
|
2003-04-30 10:37:37 -04:00
|
|
|
PYTHON_VER= 2.2
|
|
|
|
|
|
|
|
.if ${FLAVOR} != "no_x11"
|
|
|
|
RUN_DEPENDS= :python-tkinter-${PYTHON_VER}*:lang/python/${PYTHON_VER},-tkinter
|
|
|
|
.endif
|
|
|
|
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
PYTHON_LIBDIR= lib/python${PYTHON_VER}/site-packages
|
2002-12-11 20:25:36 -05:00
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
NO_REGRESS= Yes
|
2002-01-18 19:57:07 -05:00
|
|
|
|
2003-04-30 10:37:37 -04:00
|
|
|
CONTRIB_FILES= collectaddys printcdb sample.config sendit.sh \
|
|
|
|
def2html printdbm tmda.el vadduser-tmda
|
|
|
|
|
2002-01-18 19:57:07 -05:00
|
|
|
do-build:
|
2003-04-30 10:37:37 -04:00
|
|
|
@cd ${WRKSRC} && ${LOCALBASE}/bin/python${PYTHON_VER} ./compileall
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
do-install:
|
2003-02-04 09:42:59 -05:00
|
|
|
@perl -pi -e 's:htdocs:${TRUEPREFIX}/share/doc/tmda:' ${WRKSRC}/INSTALL
|
2002-12-11 20:25:36 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${PYTHON_LIBDIR}/TMDA/pythonlib/email
|
2002-01-18 19:57:07 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PREFIX}/${PYTHON_LIBDIR}/TMDA
|
2002-12-11 20:25:36 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
|
|
|
|
${PREFIX}/${PYTHON_LIBDIR}/TMDA/pythonlib/email
|
2002-01-18 19:57:07 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/tmda
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${PREFIX}/share/tmda
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/tmda-* ${PREFIX}/bin
|
2003-04-30 10:37:37 -04:00
|
|
|
.if ${FLAVOR} == "no_x11"
|
|
|
|
@rm -f ${PREFIX}/bin/tmda-gui
|
|
|
|
.endif
|
2002-12-11 20:25:36 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tmda/contrib
|
2002-02-20 15:54:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tmda
|
2002-12-11 20:25:36 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/sample.config \
|
|
|
|
${PREFIX}/share/examples/tmda
|
2003-04-30 10:37:37 -04:00
|
|
|
.for f in ${CONTRIB_FILES}
|
2002-12-11 20:25:36 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/$f ${PREFIX}/share/doc/tmda/contrib
|
|
|
|
.endfor
|
2002-02-20 15:54:35 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/htdocs/*.html ${PREFIX}/share/doc/tmda
|
2002-12-11 20:25:36 -05:00
|
|
|
.for f in CRYPTO INSTALL README UPGRADE
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/tmda
|
|
|
|
.endfor
|
2002-01-18 19:57:07 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|