Lines 1-26
Link Here
|
1 |
# Created by: Giel van Schijndel <me@mortis.eu> |
|
|
2 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
3 |
|
2 |
|
4 |
PORTNAME= postfix-policyd-spf-python |
3 |
PORTNAME= spf-engine |
5 |
PORTVERSION= 2.0.2 |
4 |
PORTVERSION= 2.9.2 |
6 |
CATEGORIES= mail python |
5 |
CATEGORIES= mail python |
7 |
MASTER_SITES= CHEESESHOP |
6 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
DISTNAME= pypolicyd-spf-${PORTVERSION} |
|
|
10 |
|
8 |
|
11 |
MAINTAINER= yasu@utahime.org |
9 |
MAINTAINER= yasu@utahime.org |
12 |
COMMENT= Pure Python Postfix policy daemon for SPF checking |
10 |
COMMENT= SPF engine for Postfix policy server and Milter implemented in Python |
13 |
|
11 |
|
14 |
LICENSE= APACHE20 |
12 |
LICENSE= APACHE20 GPLv2+ |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_COMB= multi |
|
|
14 |
LICENSE_FILE_APACHE20= ${WRKSRC}/COPYING |
15 |
LICENSE_FILE_GPLv2+ = ${WRKSRC}/GPL-2 |
16 |
|
16 |
|
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyspf>0:mail/py-pyspf@${PY_FLAVOR} \ |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}authres>0:mail/py-authres@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}authres>0:mail/py-authres@${PY_FLAVOR} |
18 |
${PYTHON_PKGNAMEPREFIX}milter>0:mail/py-milter@${PY_FLAVOR} \ |
|
|
19 |
${PYTHON_PKGNAMEPREFIX}pyspf>0:mail/py-pyspf@${PY_FLAVOR} |
19 |
|
20 |
|
20 |
USES= python:3.3+ |
21 |
USES= python:3.3+ shebangfix |
21 |
USE_PYTHON= autoplist distutils |
22 |
USE_PYTHON= autoplist distutils |
|
|
23 |
USE_RC_SUBR= pyspf-milter |
22 |
NO_ARCH= yes |
24 |
NO_ARCH= yes |
23 |
|
25 |
|
|
|
26 |
USERS= ${PYSPF_MILTER_USER} |
27 |
GROUPS= ${PYSPF_MILTER_GROUP} |
28 |
|
29 |
PYSPF_MILTER_USER= pyspf-milter |
30 |
PYSPF_MILTER_GROUP= pyspf-milter |
31 |
PYSPF_MILTER_RUNDIR= /var/run/pyspf-milter |
32 |
|
33 |
PLIST_FILES= '@sample etc/python-policyd-spf/policyd-spf.conf.sample' \ |
34 |
'@dir(${USERS},${GROUPS},755) ${PYSPF_MILTER_RUNDIR}' |
35 |
|
24 |
PORTDOCS= CHANGES \ |
36 |
PORTDOCS= CHANGES \ |
25 |
README \ |
37 |
README \ |
26 |
README.per_user_whitelisting \ |
38 |
README.per_user_whitelisting \ |
Lines 28-50
Link Here
|
28 |
|
40 |
|
29 |
PKGMESSAGE= ${WRKSRC}/pkg-message |
41 |
PKGMESSAGE= ${WRKSRC}/pkg-message |
30 |
|
42 |
|
|
|
43 |
SHEBANG_FILES= spf_engine/milter_spf.py \ |
44 |
spf_engine/policyd_spf.py |
45 |
|
31 |
SUB_FILES= pkg-message |
46 |
SUB_FILES= pkg-message |
|
|
47 |
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \ |
48 |
PYSPF_MILTER_RUNDIR=${PYSPF_MILTER_RUNDIR} |
32 |
|
49 |
|
33 |
OPTIONS_DEFINE= DOCS |
50 |
OPTIONS_DEFINE= DOCS |
34 |
|
51 |
|
35 |
post-patch: |
52 |
post-patch: |
36 |
@${MV} ${WRKSRC}/policyd-spf.conf ${WRKSRC}/policyd-spf.conf.sample |
53 |
@${REINPLACE_CMD} -e "s|/usr/local/etc/|${PREFIX}/etc/|" \ |
37 |
@${REINPLACE_CMD} -e "s|/etc/python-policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \ |
54 |
${WRKSRC}/spf_engine/milter_spf.py |
38 |
${WRKSRC}/policyd-spf |
55 |
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ |
39 |
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \ |
56 |
${WRKSRC}/spf_engine/policyd_spf.py |
40 |
-e "s|/usr/bin/policyd-spf|${PREFIX}/bin/policyd-spf|" \ |
57 |
@${REINPLACE_CMD} -e "s|/run|/var/run|" ${WRKSRC}/spf_engine/policydspfsupp.py |
41 |
-e "s|/etc/postfix/|${LOCALBASE}/etc/postfix/|" ${WRKSRC}/policyd-spf.1 |
58 |
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" -e "s|/usr/bin/|${PREFIX}/bin/|" \ |
42 |
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \ |
59 |
${WRKSRC}/policyd-spf.1 ${WRKSRC}/policyd-spf.conf.5 \ |
43 |
${WRKSRC}/policyd-spf.conf.5 |
|
|
44 |
@${REINPLACE_CMD} -e "s|/etc/policyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \ |
45 |
-e "s|/etc/pypolicyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \ |
46 |
${WRKSRC}/policyd-spf.peruser.5 |
60 |
${WRKSRC}/policyd-spf.peruser.5 |
47 |
|
61 |
|
|
|
62 |
post-install: |
63 |
@${MKDIR} ${STAGEDIR}/var/run/pyspf-milter \ |
64 |
${STAGEDIR}${PREFIX}/etc/python-policyd-spf |
65 |
${INSTALL_DATA} ${WRKSRC}/policyd-spf.conf \ |
66 |
${STAGEDIR}${PREFIX}/etc/python-policyd-spf/policyd-spf.conf.sample |
67 |
|
48 |
post-install-DOCS-on: |
68 |
post-install-DOCS-on: |
49 |
@${MKDIR} ${STAGEDIR}/${DOCSDIR} |
69 |
@${MKDIR} ${STAGEDIR}/${DOCSDIR} |
50 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
70 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |