2003-01-30 02:57:22 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2003/01/30 07:57:22 kevlo Exp $
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
COMMENT= "highly configurable webmail client"
|
|
|
|
|
2003-01-30 02:57:22 -05:00
|
|
|
DISTNAME= openwebmail-1.81
|
2002-02-04 23:53:17 -05:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openwebmail.org/
|
|
|
|
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://turtle.ee.ncku.edu.tw/openwebmail/download/ \
|
2002-02-05 09:16:41 -05:00
|
|
|
ftp://openwebmail.org/pub/ \
|
|
|
|
http://turtle.ee.ncku.edu.tw/openwebmail/download/old/
|
2002-02-04 23:53:17 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
EXTRACT_CASES= *.tgz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | ${TAR} xpf -;;
|
|
|
|
|
2002-11-29 00:43:17 -05:00
|
|
|
RUN_DEPENDS= ::databases/p5-ldap \
|
2003-01-30 02:57:22 -05:00
|
|
|
::textproc/ispell \
|
|
|
|
:p5-Text-Iconv->=1.2:converters/p5-Text-Iconv
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
|
|
|
PREFIX= /var/www
|
|
|
|
SYSCONFDIR= ${PREFIX}/conf
|
|
|
|
|
2003-01-30 02:57:22 -05:00
|
|
|
SCRIPTFILES= openwebmail-tool.pl openwebmail.pl ow-shared.pl
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.for file in ${SCRIPTFILES}
|
2002-02-27 06:18:55 -05:00
|
|
|
@perl -pi -e 's@%%SYSCONFDIR%%@${SYSCONFDIR}@g' \
|
2002-02-04 23:53:17 -05:00
|
|
|
${WRKSRC}/cgi-bin/openwebmail/${file}
|
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC} && cp -Rp data htdocs
|
2003-01-30 02:57:22 -05:00
|
|
|
# @find ${WRKSRC}/cgi-bin -name '*.orig' |xargs rm
|
2002-03-28 06:45:28 -05:00
|
|
|
@cd ${WRKSRC} && mkdir -p conf/openwebmail && \
|
2002-02-04 23:53:17 -05:00
|
|
|
cp -Rp cgi-bin/openwebmail/etc/* conf/openwebmail
|
|
|
|
@find ${WRKSRC}/cgi-bin -name 'etc' -type d |xargs rm -rf
|
|
|
|
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${SYSCONFDIR}/openwebmail
|
|
|
|
${TAR} -C ${WRKSRC} -cpf- cgi-bin conf htdocs | \
|
|
|
|
${TAR} -C ${PREFIX} -xpf-
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|