diff options
author | oliver <oliver@FreeBSD.org> | 2003-07-26 18:32:57 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2003-07-26 18:32:57 +0800 |
commit | 0fefbd8353bc25709fa642de8645cfb1c8f7471a (patch) | |
tree | 93bc2444c3e3d3349292516b70939b500ede9668 /mail/ezmlm-web/Makefile | |
parent | 66205feedd82a7bc61d3669e64831ab07dfbba20 (diff) | |
download | freebsd-ports-graphics-0fefbd8353bc25709fa642de8645cfb1c8f7471a.tar.gz freebsd-ports-graphics-0fefbd8353bc25709fa642de8645cfb1c8f7471a.tar.zst freebsd-ports-graphics-0fefbd8353bc25709fa642de8645cfb1c8f7471a.zip |
- Make the port PREFIX-clean
- Install examples and docs into standard directories
- Do not depend on apache13 - it should run with other Web servers, too
- Move all other dependencies to RUN_DEPENDS
- Look for dependendcies (including ezmlm-idx) in LOCALBASE
- Remove obsoleted patches
- fix typo in the config file
- Bump PORTREVISION
PR: ports/42218
Submitted by: Sergei Kolobov <sergei@kolobov.com>
Approved by: maintainer
Diffstat (limited to 'mail/ezmlm-web/Makefile')
-rw-r--r-- | mail/ezmlm-web/Makefile | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/mail/ezmlm-web/Makefile b/mail/ezmlm-web/Makefile index fb3aae6b198..f8895efc72a 100644 --- a/mail/ezmlm-web/Makefile +++ b/mail/ezmlm-web/Makefile @@ -7,41 +7,53 @@ PORTNAME= ezmlm-web PORTVERSION= 2.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail www MASTER_SITES= ftp://rucus.ru.ac.za/pub/mail/ezmlm/ MAINTAINER= guy-ezmlm@rucus.ru.ac.za COMMENT= CGI script that lets you manage ezmlm-idx mailing lists through the web -BUILD_DEPENDS= ${LOCALBASE}/${EZMLM_DIR}/bin/ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Ezmlm.pm:${PORTSDIR}/mail/p5-Mail-Ezmlm -RUN_DEPENDS= ${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools +RUN_DEPENDS= ezmlm-idx:${PORTSDIR}/mail/ezmlm-idx \ + ${SITE_PERL}/Mail/Ezmlm.pm:${PORTSDIR}/mail/p5-Mail-Ezmlm \ + ${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools # Change these to suit your setup. You can do this via the environment # CGI_BIN is the location relative to ${PREFIX} of your webservers' cgi-bin # EZMLM_DIR is the base relative to ${PREFIX} in which ezmlm was installed # CGI_BIN?= www/cgi-bin.default -EZMLM_DIR?= USE_PERL5= YES -PLIST_SUB= CGI_BIN=${CGI_BIN:S/$/\//:S/^\///} EZMLM_DIR=${EZMLM_DIR:S/$/\//:S/^\///} +USE_REINPLACE= YES +PLIST_SUB= CGI_BIN=${CGI_BIN} + +EXAMPLES= htaccess.sample webusers.sample index.c +DOCS= CHANGES README TODO UPGRADING do-build: - @cd ${WRKSRC}; ${MAKE} index; ${MV} index ezmlm-web + cd ${WRKSRC} && ${CC} ${CFLAGS} -o ezmlm-web index.c + +post-patch: + ${REINPLACE_CMD} -e 's|/etc/ezmlm|${PREFIX}/etc/ezmlm|' \ + -e 's|/usr/local|${PREFIX}|g' -e 's|prefex|prefix|g' \ + ${WRKSRC}/ezmlm-web.cgi ${WRKSRC}/ezmlmwebrc ${WRKSRC}/index.c do-install: - ${MKDIR} ${PREFIX}/${CGI_BIN} ${PREFIX}/${EZMLM_DIR} - ${INSTALL_SCRIPT} ${WRKSRC}/ezmlm-web.cgi ${PREFIX}/${EZMLM_DIR}/bin - ${INSTALL_DATA} ${WRKSRC}/ezmlmwebrc ${PREFIX}/${EZMLM_DIR}/etc/ezmlm/ezmlmwebrc.sample + ${MKDIR} ${PREFIX}/${CGI_BIN} ${PREFIX}/etc/ezmlm + ${INSTALL_SCRIPT} ${WRKSRC}/ezmlm-web.cgi ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/ezmlmwebrc ${PREFIX}/etc/ezmlm/ezmlmwebrc.sample ${INSTALL_PROGRAM} -o alias -g qmail -m 4755 ${WRKSRC}/ezmlm-web ${PREFIX}/${CGI_BIN} - ${MKDIR} ${PREFIX}/share/ezmlm-web -.for file in CHANGES README index.c htaccess.sample webusers.sample - ${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/ezmlm-web + ${MKDIR} ${EXAMPLESDIR} +.for file in ${EXAMPLES} + ${INSTALL_MAN} ${WRKSRC}/${file} ${EXAMPLESDIR} .endfor - +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for file in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif post-install: @${SED} 's!%%PREFIX%%!${PREFIX}!g; s!%%EZMLM_DIR%%!${PREFIX}${EZMLM_DIR:S/^\///}!g' ${PKGMESSAGE} @${ECHO} |