blob: ac4c1464d784b9b11010aa6a14cbed92632eeaa9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Created by: Jimmy Olgeni <olgeni@uli.it>
# $FreeBSD$
PORTNAME= eGroupware
PORTVERSION= 17.1.20181205
CATEGORIES= deskutils
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME:tl}/releases/download/${PORTVERSION}/
DISTNAME= ${PORTNAME:tl}-epl-${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Web-based GroupWare system
LICENSE= GPLv2
LICENSE_FILE= ${WRKDIR}/${PORTNAME:tl}/doc/LICENSE
RUN_DEPENDS= ${LOCALBASE}/share/pear/Net/Sieve.php:net/pear-Net_Sieve@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Imap/Client.php:mail/pear-Horde_Imap_Client@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Nls.php:devel/pear-Horde_Nls@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Mail/Transport.php:mail/pear-Horde_Mail@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Smtp.php:mail/pear-Horde_Smtp@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Compress.php:archivers/pear-Horde_Compress@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Icalendar.php:devel/pear-Horde_Icalendar@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Mapi.php:mail/pear-Horde_Mapi@${PHP_FLAVOR} \
${LOCALBASE}/share/pear/Horde/Crypt.php:security/pear-Horde_Crypt@${PHP_FLAVOR}
USES= cpe php tar:bzip2
USE_PHP= bcmath bz2 ctype json session simplexml tidy xmlreader zlib
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= EG_DIR=${EG_DIR} \
EG_DATA=${EG_DATA}
GH_ACCOUNT= EGroupware
OPTIONS_DEFINE= MYSQL POSTGRES SSL ZIP GD LDAP MBSTRING
OPTIONS_DEFAULT=MYSQL SSL ZIP
MBSTRING_DESC= Support multi-byte character sets
POSTGRES_DESC= PostgreSQL database support
ZIP_DESC= Install PHP zip extension
MYSQL_USE= PHP=mysqli,pdo_mysql
POSTGRES_USE= PHP=pgsql,pdo_pgsql
MBSTRING_USE= PHP=mbstring
SSL_USE= PHP=openssl
ZIP_USE= PHP=zip
GD_USE= PHP=gd
LDAP_USE= PHP=ldap
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} '@mode 644' > ${PLIST}
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >> ${PLIST}
@${ECHO_CMD} '@mode' >> ${PLIST}
@${ECHO_CMD} '@mode 755' >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dir ${EG_DIR}#g" >> ${PLIST}
@${ECHO_CMD} '@owner ${WWWOWN}' >> ${PLIST}
@${ECHO_CMD} '@group ${WWWGRP}' >> ${PLIST}
@${ECHO} @dir ${EG_DATA}/files >> ${PLIST}
@${ECHO} @dir ${EG_DATA}/backup >> ${PLIST}
@${ECHO} @dir ${EG_DATA} >> ${PLIST}
@${ECHO_CMD} '@group' >> ${PLIST}
@${ECHO_CMD} '@owner' >> ${PLIST}
@${ECHO_CMD} '@mode' >> ${PLIST}
do-install:
@${MKDIR} ${STAGEDIR}${EG_WWWDIR}
@${MKDIR} ${STAGEDIR}${EG_DATADIR}
@${MKDIR} ${STAGEDIR}${EG_DATADIR}/files
@${MKDIR} ${STAGEDIR}${EG_DATADIR}/backup
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EG_WWWDIR}
.include <bsd.port.mk>
|