summaryrefslogtreecommitdiff
path: root/mail/ezmlm-web/Makefile
blob: 3abcc756235ddc610f231aa0d45dd844cc4f1746 (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
# Created by: Guy Antony Halse <guy@rucus.ru.za.za>
# $FreeBSD$

PORTNAME=	ezmlm-web
PORTVERSION=	3.2
CATEGORIES=	mail www
MASTER_SITES=	https://systemausfall.org/toolforge/ezmlm-web/download/ezmlm-web-3.2/

MAINTAINER=	hans@nordhaug.priv.no
COMMENT=	Manage ezmlm-idx mailing lists through the web (using CGI)

RUN_DEPENDS=	ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \
		p5-Mail-Ezmlm>=0:${PORTSDIR}/mail/p5-Mail-Ezmlm \
		p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools

EXAMPLES=	apache.conf.dist ezmlmwebrc.dist ezmlmwebrc.minimal-dist \
		htaccess.dist multidomain.conf.dist webusers.dist
DOCS=		INSTALL README TODO UPGRADING changelog copyright

USES=		gmake perl5 shebangfix
USE_PERL5=	configure
SHEBANG_FILES=	ezmlm-web.cgi

NO_STAGE=	yes
post-patch:
	${REINPLACE_CMD} -e 's|local/share|share|' \
		-e 's|$$SHAREDIR/www-data|${WWWDIR}|' \
		${WRKSRC}/Makefile.PL
	${REINPLACE_CMD} -e 's|/usr/local/share/ezmlm-web/www-data/|${WWWDIR}/|' \
		${WRKSRC}/examples/apache.conf.dist
	${REINPLACE_CMD} -e 's|/etc/ezmlm|${PREFIX}/etc/ezmlm|' -e 's|/usr/local|${PREFIX}|g' \
		${WRKSRC}/ezmlm-web.cgi ${WRKSRC}/examples/ezmlmwebrc.dist ${WRKSRC}/suid-wrapper/index.h

.if defined(PACKAGE_BUILDING)
CONFIGURE_ENV=	BSD_BATCH_INSTALL=yes
.endif

post-install:
	${MKDIR} ${EXAMPLESDIR} ${PREFIX}/etc/ezmlm-web
	${INSTALL_DATA} ${WRKSRC}/examples/ezmlmwebrc.dist ${PREFIX}/etc/ezmlm-web/ezmlmwebrc.sample
.for file in ${EXAMPLES}
	${INSTALL_MAN} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

MAN1=		ezmlm-web.cgi.1p

.include <bsd.port.mk>