blob: a75b1716ff8ec1fbe3d28399f5f0883f45c874c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# $NetBSD: Makefile,v 1.35 2007/02/02 13:08:20 schmonz Exp $
#
DISTNAME= tmda-1.1.10
CATEGORIES= mail python
MASTER_SITES= http://tmda.net/releases/
MASTER_SITES+= ftp://tmda.net/pub/tmda/releases/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://tmda.net/
COMMENT= Python-based SPAM reduction system
PY_PATCHPLIST= yes
PYTHON_PATCH_SCRIPTS= ${TMDA_PROGRAMS}
PKG_SYSCONFSUBDIR= ${PKGBASE}
PYTHON_VERSIONS_ACCEPTED= 24 23
PKG_GROUPS= tofmipd
PKG_USERS= tofmipd:tofmipd
PKG_GECOS.tofmipd= TMDA ofmipd User
RCD_SCRIPTS= tofmipd
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
SHAREDIR= share/${PKGBASE}
DOCDIR= share/doc/${PKGBASE}
EGDIR= share/examples/${PKGBASE}
HTMLDIR= share/doc/html/${PKGBASE}
PLIST_SUBST+= SHAREDIR=${SHAREDIR:Q}
PLIST_SUBST+= DOCDIR=${DOCDIR:Q}
PLIST_SUBST+= EGDIR=${EGDIR:Q}
PLIST_SUBST+= HTMLDIR=${HTMLDIR:Q}
TMDA_PROGRAMS= bin/tmda-*
TMDA_DOCS= CODENAMES COPYING CRYPTO ChangeLog INSTALL
TMDA_DOCS+= NEWS README THANKS UPGRADE
TMDA_HTDOCS= htdocs/*.html htdocs/*.css
TMDA_CONTRIB= contrib/*
SUBST_CLASSES+= etc
SUBST_STAGE.etc= do-configure
SUBST_FILES.etc= bin/tmda-ofmipd TMDA/Auth.py TMDA/Defaults.py
SUBST_SED.etc= -e 's|/etc|${PKG_SYSCONFDIR}|g'
INSTALLATION_DIRS= bin ${SHAREDIR} ${DOCDIR} ${HTMLDIR}/img
INSTALLATION_DIRS+= ${PYSITELIB}/TMDA/pythonlib/email/mime ${EGDIR}
do-build:
cd ${WRKSRC} && ${PYTHONBIN} ./compileall
pre-install:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
do-install:
for f in ${TMDA_PROGRAMS}; do \
${INSTALL_SCRIPT} ${WRKSRC}/$${f} ${PREFIX}/bin; \
done
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PREFIX}/${PYSITELIB}/TMDA
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/mime/*.py* \
${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email/mime
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${PREFIX}/${SHAREDIR}
for f in ${TMDA_DOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$${f} ${PREFIX}/${DOCDIR}; \
done
for f in ${TMDA_CONTRIB}; do \
if [ -f $${f} ]; then \
${INSTALL_DATA} ${WRKSRC}/$${f} \
${PREFIX}/${EGDIR}; \
else \
cp -Rp ${WRKSRC}/$${f} ${PREFIX}/${EGDIR}; \
fi; \
done
for f in ${TMDA_HTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$${f} ${PREFIX}/${HTMLDIR}; \
done
for f in htdocs/img/*.png htdocs/img/*.gif; do \
${INSTALL_DATA} ${WRKSRC}/$${f} ${PREFIX}/${HTMLDIR}/img; \
done
post-install:
${PREFIX}/bin/tmda-ofmipd -V >/dev/null 2>&1
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|