freebsd-ports/mail/nocc/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nocc
# Date created: Fri Feb 3 13:31:37 CET 2002
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= nocc
2005-10-06 17:02:59 +02:00
PORTVERSION= 0.9.7
PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/RC/}
MAINTAINER= ale@FreeBSD.org
2003-02-21 13:51:06 +01:00
COMMENT= A web-based e-mail system which access POP3 and IMAP mail servers
USE_PHP= imap pcre session
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
2005-10-06 17:02:59 +02:00
WRKSRC= ${WRKDIR}
NO_BUILD= yes
pre-patch:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' \
${PKGDIR}/pkg-message > ${PKGMESSAGE}
do-install:
${MKDIR} ${PREFIX}/www/nocc
${CP} -Rp ${WRKSRC}/html ${WRKSRC}/lang ${WRKSRC}/themes \
${PREFIX}/www/nocc
${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/nocc
${CP} -p ${WRKSRC}/conf.php.dist ${PREFIX}/www/nocc
@if [ ! -f ${PREFIX}/www/nocc/conf.php ]; then \
${CP} ${PREFIX}/www/nocc/conf.php.dist \
${PREFIX}/www/nocc/conf.php; \
fi
${CHOWN} -R www:www ${PREFIX}/www/nocc
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>