2004-02-02 12:45:22 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2004/02/02 17:45:23 sturm Exp $
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
COMMENT= "highly configurable webmail client"
|
|
|
|
|
2003-11-13 00:55:50 -05:00
|
|
|
DISTNAME= openwebmail-2.21
|
2003-07-16 22:09:17 -04:00
|
|
|
CATEGORIES= mail www
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2003-04-14 04:26:11 -04:00
|
|
|
RUN_DEPENDS= ::textproc/ispell \
|
|
|
|
:p5-Text-Iconv->=1.2:converters/p5-Text-Iconv \
|
2003-07-16 06:32:07 -04:00
|
|
|
:p5-CGI-SpeedyCGI->=2.21:www/p5-CGI-SpeedyCGI \
|
|
|
|
:p5-Compress-Zlib->=1.22:archivers/p5-Compress-Zlib \
|
|
|
|
:p5-Quota->=1.4.6:sysutils/p5-Quota
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
2004-02-02 12:45:22 -05:00
|
|
|
PKG_ARCH= *
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
|
|
|
PREFIX= /var/www
|
2003-05-13 18:53:58 -04:00
|
|
|
CONFDIR= ${PREFIX}/conf
|
|
|
|
SUBST_VARS= CONFDIR
|
2002-02-04 23:53:17 -05:00
|
|
|
|
2003-04-14 04:26:11 -04:00
|
|
|
SCRIPTFILES= openwebmail-abook.pl openwebmail-advsearch.pl \
|
|
|
|
openwebmail-cal.pl openwebmail-folder.pl \
|
|
|
|
openwebmail-main.pl openwebmail-prefs.pl \
|
|
|
|
openwebmail-read.pl openwebmail-send.pl \
|
|
|
|
openwebmail-spell.pl openwebmail-tool.pl \
|
|
|
|
openwebmail-vdomain.pl openwebmail-viewatt.pl \
|
|
|
|
openwebmail-webdisk.pl openwebmail.pl ow-shared.pl
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.for file in ${SCRIPTFILES}
|
2003-05-13 18:53:58 -04:00
|
|
|
@perl -pi -e 's@%%SYSCONFDIR%%@${CONFDIR}@g' \
|
2002-02-04 23:53:17 -05:00
|
|
|
${WRKSRC}/cgi-bin/openwebmail/${file}
|
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC} && cp -Rp data htdocs
|
2003-04-14 04:26:11 -04: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:
|
2003-05-13 18:53:58 -04:00
|
|
|
${INSTALL_DATA_DIR} ${CONFDIR}/openwebmail
|
2002-02-04 23:53:17 -05:00
|
|
|
${TAR} -C ${WRKSRC} -cpf- cgi-bin conf htdocs | \
|
|
|
|
${TAR} -C ${PREFIX} -xpf-
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|