freebsd-ports/mail/ezmlm-web/Makefile

53 lines
1.6 KiB
Makefile
Raw Normal View History

# 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
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>