aboutsummaryrefslogtreecommitdiffstats
path: root/mail/py-apolicy/Makefile
blob: 3036b72834bacfa53362930e0ead5eeb8670eb8e (plain) (blame)
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
# Created by: Chifeng QU <chifeng@gmail.com>
# $FreeBSD$

PORTNAME=   apolicy
PORTVERSION=    0.73
PORTREVISION=   3
CATEGORIES= mail python
MASTER_SITES=   http://download.gna.org/apolicy/%SUBDIR%/ \
        http://www.chifeng.name/dist/apolicy/%SUBDIR%/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    ACL system for Postfix, as a policy daemon

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE.TXT

BROKEN=     unfetchable
DEPRECATED= Unfetchable, unmaintained
EXPIRATION_DATE=    2019-10-16

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}ipy>=0:net-mgmt/py-ipy@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}pyspf>=0:mail/py-pyspf@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR}

USES=       python:2.7
USE_PYTHON= autoplist distutils
NO_ARCH=    yes
NO_BUILD=   yes
USE_RC_SUBR=    apolicyd

SUB_LIST=   PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
        PYTHON_CMD=${PYTHON_CMD}
SUB_FILES=  pkg-message

post-patch:
    @${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/setup.py

.include <bsd.port.mk>