openbsd-ports/mail/openwebmail/Makefile

55 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.10 2002/11/29 05:43:17 pvalchev Exp $
COMMENT= "highly configurable webmail client"
2002-06-27 21:11:45 -04:00
DISTNAME= openwebmail-1.65
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/ \
ftp://openwebmail.org/pub/ \
http://turtle.ee.ncku.edu.tw/openwebmail/download/old/
EXTRACT_SUFX= .tgz
EXTRACT_CASES= *.tgz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | ${TAR} xpf -;;
RUN_DEPENDS= ::databases/p5-ldap \
2002-06-27 21:11:45 -04:00
::textproc/ispell
NO_BUILD= Yes
NO_REGRESS= Yes
WRKDIST= ${WRKDIR}
PREFIX= /var/www
SYSCONFDIR= ${PREFIX}/conf
2002-03-22 02:51:23 -05:00
SCRIPTFILES= checkmail.pl openwebmail-prefs.pl openwebmail.pl\
openwebmail-shared.pl
do-configure:
.for file in ${SCRIPTFILES}
2002-02-27 06:18:55 -05:00
@perl -pi -e 's@%%SYSCONFDIR%%@${SYSCONFDIR}@g' \
${WRKSRC}/cgi-bin/openwebmail/${file}
.endfor
@cd ${WRKSRC} && cp -Rp data htdocs
@find ${WRKSRC}/cgi-bin -name '*.orig' |xargs rm
@cd ${WRKSRC} && mkdir -p conf/openwebmail && \
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>