mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
82 lines
2.7 KiB
Makefile
82 lines
2.7 KiB
Makefile
# Created by: Jimmy Olgeni <olgeni@uli.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= eGroupware
|
|
PORTVERSION= 1.8.007.20140512
|
|
CATEGORIES= deskutils
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}-1.8/${PORTNAME}-${PORTVERSION}
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2 \
|
|
${PORTNAME}-egw-pear-${PORTVERSION}.tar.bz2
|
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
COMMENT= Web-based GroupWare system
|
|
|
|
BUILD_DEPENDS= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL \
|
|
${PEARDIR}/Net/IMAP.php:${PORTSDIR}/mail/pear-Net_IMAP \
|
|
${PEARDIR}/Net/Sieve.php:${PORTSDIR}/net/pear-Net_Sieve \
|
|
${PEARDIR}/XML/Feed/Parser.php:${PORTSDIR}/textproc/pear-XML_Feed_Parser \
|
|
${PEARDIR}/Log/null.php:${PORTSDIR}/sysutils/pear-Log \
|
|
${PEARDIR}/HTTP/WebDAV/Server.php:${PORTSDIR}/www/pear-HTTP_WebDAV_Server
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
PEARDIR= ${LOCALBASE}/share/pear
|
|
USES= tar:bzip2
|
|
USE_PHP= session ctype zlib bz2 mcrypt xmlreader
|
|
NO_BUILD= yes
|
|
PLIST= ${WRKDIR}/plist
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= EG_DIR=${EG_DIR} \
|
|
EG_DATA=${EG_DATA}
|
|
|
|
OPTIONS_DEFINE= MYSQL POSTGRES OSSL TNEF ZIP IMAP GD LDAP MBSTRING
|
|
OPTIONS_DEFAULT=MYSQL OSSL TNEF ZIP IMAP
|
|
|
|
OSSL_DESC= enable SSL connection support
|
|
TNEF_DESC= decoding winmail.dat attachments in felamimail support
|
|
IMAP_DESC= IMAP support
|
|
MBSTRING_DESC= Support multi-byte character sets
|
|
POSTGRES_DESC= PostgreSQL database support
|
|
ZIP_DESC= Install PHP zip extension
|
|
|
|
MYSQL_USE= PHP=mysql,pdo_mysql
|
|
POSTGRES_USE= PHP=pgsql,pdo_pgsql
|
|
MBSTRING_USE= PHP=mbstring
|
|
IMAP_USE= PHP=imap
|
|
OSSL_USE= PHP=openssl
|
|
ZIP_USE= PHP=zip
|
|
GD_USE= PHP=gd
|
|
LDAP_USE= PHP=ldap
|
|
TNEF_RUN_DEPENDS= tnef:${PORTSDIR}/converters/tnef
|
|
|
|
WRKSRC= ${WRKDIR}/egroupware
|
|
EG_DIR= www/eg
|
|
EG_WWWDIR= ${PREFIX}/${EG_DIR}
|
|
EG_DATA= www/egdata
|
|
EG_DATADIR= ${PREFIX}/${EG_DATA}
|
|
|
|
pre-install:
|
|
@${ECHO_CMD} '@owner ${WWWOWN}' > ${PLIST}
|
|
@${ECHO_CMD} '@group ${WWWGRP}' >> ${PLIST}
|
|
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >> ${PLIST}
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dirrm ${EG_DIR}#g" >> ${PLIST}
|
|
@${ECHO} @dirrm ${EG_DATA}/files >> ${PLIST}
|
|
@${ECHO} @dirrm ${EG_DATA}/backup >> ${PLIST}
|
|
@${ECHO} @dirrm ${EG_DATA} >> ${PLIST}
|
|
@${ECHO_CMD} '@group' >> ${PLIST}
|
|
@${ECHO_CMD} '@owner' >> ${PLIST}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${EG_WWWDIR}
|
|
@${MKDIR} ${STAGEDIR}${EG_DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${EG_DATADIR}/files
|
|
@${MKDIR} ${STAGEDIR}${EG_DATADIR}/backup
|
|
@${ECHO_CMD} '@owner ${WWWOWN}' >> ${PLIST}
|
|
@${ECHO_CMD} '@group ${WWWGRP}' >> ${PLIST}
|
|
@${ECHO_CMD} '@mode 755' >> ${PLIST}
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EG_WWWDIR}
|
|
@${ECHO_CMD} '@mode' >> ${PLIST}
|
|
@${ECHO_CMD} '@group' >> ${PLIST}
|
|
@${ECHO_CMD} '@owner' >> ${PLIST}
|
|
|
|
.include <bsd.port.mk>
|