View | Details | Raw Unified | Return to bug 165587
Collapse All | Expand All

(-)deskutils/egroupware/Makefile (-8 / +36 lines)
Lines 24-30 Link Here
24
24
25
PEARDIR=	${LOCALBASE}/share/pear
25
PEARDIR=	${LOCALBASE}/share/pear
26
USE_BZIP2=	yes
26
USE_BZIP2=	yes
27
USE_PHP=	session ctype
27
USE_PHP=	session ctype zlib bz2 mcrypt xmlreader
28
NO_BUILD=	yes
28
NO_BUILD=	yes
29
PLIST=		${WRKDIR}/plist
29
PLIST=		${WRKDIR}/plist
30
SUB_FILES=	pkg-message
30
SUB_FILES=	pkg-message
Lines 34-39 Link Here
34
OPTIONS=	MYSQL "Use MySQL database" on \
34
OPTIONS=	MYSQL "Use MySQL database" on \
35
		POSTGRE "Use PostgreSQL Database" off \
35
		POSTGRE "Use PostgreSQL Database" off \
36
		IMAP "Enable Mail support in eGroupware" on \
36
		IMAP "Enable Mail support in eGroupware" on \
37
		OSSL "Enable SSL connection support (for IMAP eg.)" on \
38
		TNEF "Supports decoding winmail.dat attachments in felamimail" on \
39
		ZIP "Enable contact data insertion for O/MS/Libre Office documents." on \
37
		GD "Enable graphic support (needs xorg-libraries)" off \
40
		GD "Enable graphic support (needs xorg-libraries)" off \
38
		LDAP "Contacts can be stored using OpenLDAP" off \
41
		LDAP "Contacts can be stored using OpenLDAP" off \
39
		MBSTRING "Support for complete UTF-8 charsets" off
42
		MBSTRING "Support for complete UTF-8 charsets" off
Lines 54-59 Link Here
54
.if defined(WITH_IMAP)
57
.if defined(WITH_IMAP)
55
USE_PHP+=	imap
58
USE_PHP+=	imap
56
.endif
59
.endif
60
.if defined(WITH_OSSL)
61
USE_PHP+=	openssl
62
.endif
63
.if defined(WITH_TNEF)
64
RUN_DEPENDS+=	tnef:${PORTSDIR}/converters/tnef
65
.endif
66
.if defined(WITH_ZIP)
67
USE_PHP+=	zip
68
.endif
57
.if defined(WITH_GD)
69
.if defined(WITH_GD)
58
USE_PHP+=	gd
70
USE_PHP+=	gd
59
.endif
71
.endif
Lines 67-74 Link Here
67
EG_DATA=	www/egdata
79
EG_DATA=	www/egdata
68
EG_DATADIR=	${PREFIX}/www/egdata
80
EG_DATADIR=	${PREFIX}/www/egdata
69
81
82
.if defined(NOPORTEXAMPLES)
83
PLIST_SUB+=	        PORTEXAMPLES="@comment "
84
.else
85
PLIST_SUB+=	        PORTEXAMPLES="lighttpd_conf.d_fastcgi.conf"
86
.endif
87
88
70
pre-install:
89
pre-install:
71
	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >${PLIST}
90
	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >${PLIST}
91
	@${ECHO_CMD} ${EG_DIR}/php.ini >> ${PLIST}
92
	@${ECHO_CMD} ${EG_DIR}/php.ini-syncml >> ${PLIST}
72
	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s#${WRKSRC}#@dirrm ${EG_DIR}#g" >> ${PLIST}
93
	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s#${WRKSRC}#@dirrm ${EG_DIR}#g" >> ${PLIST}
73
	@${ECHO} @dirrm ${EG_DATA}/files >> ${PLIST}
94
	@${ECHO} @dirrm ${EG_DATA}/files >> ${PLIST}
74
	@${ECHO} @dirrm ${EG_DATA}/backup >> ${PLIST}
95
	@${ECHO} @dirrm ${EG_DATA}/backup >> ${PLIST}
Lines 77-87 Link Here
77
do-install:
98
do-install:
78
	${MKDIR} ${EG_WWWDIR}
99
	${MKDIR} ${EG_WWWDIR}
79
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${EG_WWWDIR}
100
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${EG_WWWDIR}
80
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}
101
	${INSTALL_DATA} ${FILESDIR}/php.ini ${EG_WWWDIR}
81
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}' \
102
	${INSTALL_DATA} ${FILESDIR}/php.ini-syncml ${EG_WWWDIR}
82
		>> ${TMPPLIST}
103
	${CHMOD} -R 644 ${EG_WWWDIR}
83
	${CHMOD} -R 755 ${EG_WWWDIR}
104
	${CHMOD} -R +X ${EG_WWWDIR}
84
	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_WWWDIR}' >> ${TMPPLIST}
105
	@${ECHO_CMD} '@exec ${CHMOD} -R 644 ${EG_WWWDIR}' >> ${TMPPLIST}
106
	@${ECHO_CMD} '@exec ${CHMOD} -R +X ${EG_WWWDIR}' >> ${TMPPLIST}
85
107
86
	${MKDIR} ${EG_DATADIR}
108
	${MKDIR} ${EG_DATADIR}
87
	${MKDIR} ${EG_DATADIR}/files
109
	${MKDIR} ${EG_DATADIR}/files
Lines 89-96 Link Here
89
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}
111
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}
90
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}' \
112
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}' \
91
		>> ${TMPPLIST}
113
		>> ${TMPPLIST}
92
	${CHMOD} -R 755 ${EG_DATADIR}
114
	${CHMOD} -R 751 ${EG_DATADIR}
93
	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_DATADIR}' >> ${TMPPLIST}
115
	@${ECHO_CMD} '@exec ${CHMOD} -R 751 ${EG_DATADIR}' >> ${TMPPLIST}
116
.if !defined(NOPORTEXAMPLES)
117
	${MKDIR} ${EXAMPLESDIR}
118
	${INSTALL_DATA} ${FILESDIR}/lighttpd_conf.d_fastcgi.conf ${EXAMPLESDIR}/
119
#	@${ECHO_CMD} ${EXAMPLESDIR}/egroupware/lighttpd_conf.d_fastcgi.conf >> ${TMPPLIST}
120
.endif
121
94
122
95
post-install:
123
post-install:
96
	${CAT} ${PKGMESSAGE}
124
	${CAT} ${PKGMESSAGE}
(-)deskutils/egroupware/files/pkg-message.in (-18 / +15 lines)
Lines 3-31 Link Here
3
3
4
4
5
Make sure in your php.ini session.save_path='/tmp' is writable
5
Make sure in your php.ini session.save_path='/tmp' is writable
6
upload_max_filesize >= 8M
6
(or use suggestions as in %%EXAMPLESDIR%%, where path
7
is set to %%EG_DATA%%/tmp)
7
8
8
1) Create a user and a database for eGroupware to store all
9
1) Create a user and a database for eGroupware to store all
9
   its tables in (or choose an existing database).
10
   its tables in (or choose an existing database).
10
   It doesn't matter what the database or user names are,
11
   It doesn't matter what the database or user names are,
11
   as this will be configured in a later step.
12
   as this will be configured in a later step.
12
13
13
2) Add the following to your Apache configuration, and
14
2) Check %%EXAMPLESDIR%% for apache and lighttpd configuration examples.
14
   restart the server:
15
   For apache, the Fast-CGI interface with mod_fcgid is supported, along
15
16
   with the legacy mod_php module (you have to define the .php handler
16
   ### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
17
                                   with mod_php yourself as usual) 
17
   Alias /eg %%PREFIX%%/%%EG_DIR%%/
18
   It's reccomended not to use .htaccess, instead PHP_VALUE are adjusted
18
   AcceptPathInfo On
19
   by php.ini inside %%EG_WWWDIR%%
19
   <Directory %%PREFIX%%/%%EG_DIR%%>
20
20
      AllowOverride None
21
   For lighttpd, there's only Fast-CGI with spawn-fcgi and no .htaccess
21
      Order Allow,Deny
22
22
      Allow from all 
23
   For both webservers, a specail PHP-environment hack is included,
23
   </Directory>
24
   to make SyncML working. If you don't use  SyncML, you can remove the
24
   <Directory %%PREFIX%%/%%EG_DATA%%>
25
   extra "FcgidWrapper"/"bin-path".
25
      AllowOverride None
26
      Order Allow,Deny
27
      Deny from all 
28
   </Directory>
29
26
30
3) Visit your eGroupware site with a browser (i.e.,
27
3) Visit your eGroupware site with a browser (i.e.,
31
   http://your.server.com/eg/), and you should
28
   http://your.server.com/eg/), and you should
Lines 40-45 Link Here
40
37
41
For more information, see the INSTALL DOCUMENTATION:
38
For more information, see the INSTALL DOCUMENTATION:
42
39
43
http://www.egroupware.org/index.php?page_name=wiki&lang=&wikipage=ManualSetup
40
http://community.egroupware.org/index.php?page_name=wiki&lang=&wikipage=ManualSetup
44
41
45
======================================================
42
======================================================
(-)deskutils/egroupware/files/apache22_Includes_eg.conf (+39 lines)
Added Link Here
1
Alias /eg /usr/local/www/eg/
2
AcceptPathInfo On
3
4
<IfModule fcgid_module>
5
   AddHandler fcgid-script .php
6
   FcgidInitialEnv PHPRC "/usr/local/www/egroupware"
7
   FcgidWrapper "/usr/local/bin/php-cgi" .php
8
</IfModule>
9
10
<Directory "/usr/local/www/eg">
11
   DirectoryIndex index.php
12
   <IfModule php5_module>
13
      AllowOverride Options FileInfo
14
      php_admin_value session.save_path /usr/local/www/egdata/tmp/sessions
15
   </IfModule>
16
   <IfModule fcgid_module>
17
      AllowOverride None
18
      Options +ExecCGI
19
   </IfModule>
20
   Order Allow,Deny
21
   Allow from all
22
</Directory>
23
24
<Directory /usr/local/www/egdata>
25
   AllowOverride None
26
   Order Allow,Deny
27
   Deny from all
28
</Directory>
29
30
<Location "/rpc.php">
31
   <IfModule php5_module>
32
      php_admin_value mbstring.func_overload 0
33
   </IfModule>
34
   <IfModule fcgid_module>
35
      FcgidWrapper "/usr/local/bin/php-cgi -c /usr/local/www/eg/php.ini-syncml" .php
36
   </IfModule>
37
   Order allow,deny
38
   Allow from all
39
</Location>
(-)deskutils/egroupware/files/lighttpd_conf.d_fastcgi.conf (+27 lines)
Added Link Here
1
fastcgi.server = ( ".php" =>
2
                   ( "php-local" =>
3
                     (
4
                       "socket" => socket_dir + "/php-fastcgi-1.socket",
5
                       "bin-path" => "/usr/local/bin/php-cgi",
6
                       "bin-environment" => (
7
                         "PHP_FCGI_CHILDREN" => "1",
8
                         "PHP_FCGI_MAX_REQUESTS" => "10000",
9
                         "PHPRC" => "/usr/local/www/eg"
10
                       ),
11
                       "max-procs" => 1,
12
                       "broken-scriptfilename" => "enable",
13
                     )
14
                   ),
15
                )
16
$HTTP["url"] =~ "^/rpc.php" {
17
  fastcgi.server = ( ".php" =>
18
                    ( "php-syncml" =>
19
                     (
20
                       "socket" => socket_dir + "/php-fastcgi-syncml.socket",
21
                       "bin-path" => "/usr/local/bin/php-cgi -c /usr/local/www/eg/php.ini-syncml",
22
                       "max-procs" => 1,
23
                       "broken-scriptfilename" => "enable",
24
                     )
25
                   ),
26
                )
27
}
(-)deskutils/egroupware/files/php.ini (+26 lines)
Added Link Here
1
[php]
2
date.timezone = Europe/Berlin
3
session.save_path = /usr/local/www/egdata/tmp/sessions
4
5
file_uploads = on
6
log_errors = on
7
magic_quotes_gpc = off
8
magic_quotes_runtime = off
9
register_globals = off
10
short_open_tag = on
11
track_vars = on
12
display_errors = on
13
# E_ALL & ~E_NOTICE & ~E_STRICT = 8191 - 8 - 2048 = 6135
14
error_reporting = 6135
15
max_execution_time = 90
16
memory_limit = 256M
17
session.gc_maxlifetime = 14400
18
upload_max_filesize = 64M
19
post_max_size = 65M
20
# session handling: now the check for expired sessions is done on every 10th session creation
21
session.use_trans_sid = Off
22
session.gc_probability = 1
23
session.gc_divisor = 10
24
# multibyte extension: needed for utf-8
25
mbstring.func_overload = 7
26
(-)deskutils/egroupware/files/php.ini-syncml (+4 lines)
Added Link Here
1
[php]
2
incluce php.ini
3
mbstring.func_overload = 0
4

Return to bug 165587