aboutsummaryrefslogtreecommitdiffstats
path: root/mail/automx/Makefile
blob: a17e49e426fde00939bb32e6f0d413a0401dc6fe (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# $FreeBSD$

PORTNAME=   automx
PORTVERSION=    0.10.1
CATEGORIES= mail

MAINTAINER= crees@FreeBSD.org
COMMENT=    Handles mail account profile requests from mail clients

LICENSE=    GPLv3

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}dateutil>=0:${PORTSDIR}/devel/py-dateutil \
        ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:${PORTSDIR}/devel/py-ipaddr \
        ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \
        ${PYTHON_PKGNAMEPREFIX}m2crypto>=0:${PORTSDIR}/security/py-m2crypto \
        wget:${PORTSDIR}/ftp/wget \
        dig:${PORTSDIR}/dns/bind-tools

GH_ACCOUNT= sys4
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT=  a438a2b

USE_PYTHON= yes
USE_GITHUB= yes
NO_BUILD=   yes
PORTDATA=   *
PORTDOCS=   *

SUB_FILES=  pkg-message

OPTIONS_DEFINE= MEMCACHE
MEMCACHE_DESC=  Add memcahce support
MEMCACHE_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}memcached>=0:${PORTSDIR}/databases/py-memcached

.include <bsd.port.options.mk>

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    (cd ${WRKSRC}/src && \
        ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR})
    ${INSTALL_DATA} ${WRKSRC}/src/automx_wsgi.py ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/src/automx-test ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/src/conf/automx.conf \
        ${STAGEDIR}${PREFIX}/etc/automx.conf.sample
.for s in 1 5
    ${INSTALL_MAN} ${WRKSRC}/doc/man/man$s/* ${STAGEDIR}${PREFIX}/man/man$s/
.endfor
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[^m]*" ${STAGEDIR}${DOCSDIR})
    ${INSTALL_MAN} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/BASIC_CONFIGURATION_README ${STAGEDIR}${DOCSDIR}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>