2013-03-11 07:20:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2013/03/11 11:23:52 espie Exp $
|
2002-02-04 23:53:17 -05:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= highly configurable webmail client
|
2002-02-04 23:53:17 -05:00
|
|
|
|
2005-02-28 22:52:45 -05:00
|
|
|
DISTNAME= openwebmail-2.51
|
2011-09-16 06:31:20 -04:00
|
|
|
REVISION = 2
|
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
|
|
|
|
|
2004-11-21 12:01:45 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/openwebmail/download/release/ \
|
|
|
|
http://turtle.ee.ncku.edu.tw/openwebmail/download/release/
|
2002-02-04 23:53:17 -05:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
RUN_DEPENDS= textproc/ispell \
|
|
|
|
mail/tnef \
|
|
|
|
converters/p5-Text-Iconv>=1.2 \
|
|
|
|
www/p5-CGI-SpeedyCGI>=2.21 \
|
|
|
|
sysutils/p5-Quota>=1.4.6 \
|
|
|
|
security/p5-Authen-SASL>=2.0.8 \
|
|
|
|
security/p5-IO-Socket-SSL>=0.96
|
2002-02-04 23:53:17 -05:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
2013-03-11 07:20:26 -04:00
|
|
|
NO_TEST= 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 \
|
2005-01-27 01:01:16 -05:00
|
|
|
openwebmail-read.pl openwebmail-saprefs.pl \
|
|
|
|
openwebmail-send.pl openwebmail-spell.pl \
|
|
|
|
openwebmail-tool.pl openwebmail-vdomain.pl \
|
|
|
|
openwebmail-viewatt.pl openwebmail-webdisk.pl \
|
|
|
|
openwebmail.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
|
2004-03-04 01:34:09 -05:00
|
|
|
@perl -pi -e 's@%%SYSCONFDIR%%@${CONFDIR}@g' \
|
|
|
|
${WRKSRC}/cgi-bin/openwebmail/shares/ow-shared.pl
|
2002-02-04 23:53:17 -05:00
|
|
|
@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
|
2004-11-21 12:01:45 -05:00
|
|
|
${TAR} -C ${WRKSRC} -cf- cgi-bin conf htdocs | \
|
2002-02-04 23:53:17 -05:00
|
|
|
${TAR} -C ${PREFIX} -xpf-
|
2006-12-09 03:52:11 -05:00
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/*
|
2002-02-04 23:53:17 -05:00
|
|
|
|
2004-11-21 12:01:45 -05:00
|
|
|
post-install:
|
|
|
|
@echo "/var/www/cgi-bin/openwebmail/" \
|
|
|
|
> ${CONFDIR}/openwebmail/openwebmail_path.conf
|
|
|
|
|
2002-02-04 23:53:17 -05:00
|
|
|
.include <bsd.port.mk>
|