Tweak devel/riscv64-none-elf-gcc version 8.4.0_2
[dports.git] / www / trac-email2trac / Makefile
1 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
2 # $FreeBSD$
3
4 PORTNAME=       email2trac
5 PORTVERSION=    2.12.2
6 CATEGORIES=     www devel python
7 MASTER_SITES=   ftp://ftp.sara.nl/pub/outgoing/
8 PKGNAMEPREFIX=  trac-
9
10 MAINTAINER=     joneum@FreeBSD.org
11 COMMENT=        Convert email to trac tickets
12
13 LICENSE=        APACHE20
14 LICENSE_FILE=   ${WRKSRC}/LICENSE
15
16 RUN_DEPENDS=    tracd:www/trac
17
18 CONFLICTS_INSTALL?=     trac-email2trac-postfix-[0-9]*
19
20 OPTIONS_DEFINE= POSTFIX DOCS
21 POSTFIX_DESC=   Configure suid script for postfix
22
23 TRACUSER?=      ${WWWOWN}
24
25 GNU_CONFIGURE=  yes
26 CONFIGURE_ARGS= --with-trac-user=${TRACUSER} --with-mta-user=${MTAUSER}
27 USES=           python:2.7
28
29 PORTDOCS=       AUTHORS ChangeLog INSTALL README
30
31 .include <bsd.port.options.mk>
32
33 .if ${PORT_OPTIONS:MPOSTFIX}
34 MTAUSER?=       nobody
35 .else
36 MTAUSER?=       mailnull
37 .endif
38
39 do-install:
40         ${INSTALL_SCRIPT} ${WRKSRC}/delete_spam.py ${STAGEDIR}${PREFIX}/bin/delete_spam
41         ${INSTALL_SCRIPT} ${WRKSRC}/email2trac.py ${STAGEDIR}${PREFIX}/bin/email2trac
42         ${INSTALL_PROGRAM} \
43             ${WRKSRC}/run_email2trac ${STAGEDIR}${PREFIX}/bin
44         ${INSTALL_DATA} ${WRKSRC}/email2trac.conf \
45             ${STAGEDIR}${PREFIX}/etc/email2trac.conf.sample
46
47 do-install-DOCS-on:
48         @${MKDIR} ${STAGEDIR}${DOCSDIR}
49 .for file in ${PORTDOCS}
50         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
51 .endfor
52
53 .include <bsd.port.mk>