aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/egroupware/Makefile
blob: b33447f9ccfa1c25e3767a94315d735e2cce3089 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# New ports collection makefile for:    egroupware
# Date created:        27 March 2001
# Whom:                Jimmy Olgeni <olgeni@uli.it>
#
# $FreeBSD$

PORTNAME=   eGroupWare
PORTVERSION=    1.2.106
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:C,http://nchc[^ ]+,,}
MASTER_SITE_SUBDIR= egroupware
DISTVERSION=    1.2
DISTVERSIONSUFFIX=  -106

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    A web based GroupWare system

USE_BZIP2=  yes
NO_BUILD=   yes
#WRKSRC=        ${DEST}

DEST=       ${PREFIX}/www/data-dist/egroupware

OPTIONS=    MYSQL "Use MySQL database" on \
        POSTGRE "Use PostgreSQL Database" off \
        IMAP "Enable Mail support in eGroupware" on \
        GD "Enable graphic support (needs xorg-libraries)" off \
        PEAR "Req. by SyncML (see pkg-msg for php.ini)" on \
        LDAP "Contacts can be stored using OpenLDAP" off
#   doesn't work!   MBSTRING "Support for complete UTF-8 charsets" off

.include <bsd.port.pre.mk>

USE_PHP=    pcre session xml

.if defined(WITH_MYSQL)
USE_PHP+=   mysql
.endif
.if defined(WITH_POSTGRE)
USE_PHP+=   pgsql
.endif
.if defined(WITH_MBSTRING)
USE_PHP+=   mbstring
.endif
.if defined(WITH_IMAP)
USE_PHP+=   imap
.endif
.if defined(WITH_GD)
USE_PHP+=   gd
.endif
.if defined(WITH_PEAR)
RUN_DEPENDS=    ${LOCALBASE}/share/pear/Log/null.php:${PORTSDIR}/sysutils/pear-Log
.endif
.if defined(WITH_LDAP)
USE_PHP+=   ldap
.endif

.include "${PORTSDIR}/Mk/bsd.php.mk"

do-extract:
    ${MKDIR} ${WRKDIR}

do-install:
    ${MKDIR} ${DEST}
    cd ${DEST}/.. && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS}
    @${FIND} ${DEST} -name .svn -type d | ${XARGS} ${RM} -rf
    ${MKDIR} /var/db/egroupware/default
    ${MKDIR} /var/db/egroupware/default/files
    ${MKDIR} /var/db/egroupware/default/backup
    ${MKDIR} /var/db/egroupware/default/sessions
    ${CHMOD} g+w ${DEST} ${DEST}/phpgwapi/images
    ${CHMOD} -R g+w /var/db/egroupware
    ${CHGRP} ${WWWGRP} ${DEST} ${DEST}/phpgwapi/images
    ${CHGRP} -R ${WWWGRP} /var/db/egroupware
    ${MV} ${DEST}/setup/inc/class.setup_process.inc.php ${WRKDIR}
    ${SED} s,/var/lib/,/var/db/, ${WRKDIR}/class.setup_process.inc.php > \
        ${DEST}/setup/inc/class.setup_process.inc.php

# --- postgresql.conf
# tcpip_socket = true
# ports = 5432
#
# --- pg_hba.conf
# local $dbname trust
# host  $dbname all   127.0.0.1 255.255.255.255 md5
#
# --- php.ini
# memory_limit = 16M (or above)
#
# createuser $dbuser -P -A -d
# createdb -U $dbuser $dbname
#
# Open http://localhost/egroupware/setup/index.php

.include <bsd.port.post.mk>