mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
- Update to 1.6.001
PR: 129249 Submitted by: "Wen Heping" <wenheping@gmail.com> (maintainer)
This commit is contained in:
parent
2b34f55e39
commit
f816c54685
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223559
@ -4,36 +4,41 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= eGroupWare
|
||||
PORTVERSION= 1.4.004
|
||||
PORTREVISION= 1
|
||||
PORTNAME= eGroupware
|
||||
PORTVERSION= 1.6.001
|
||||
CATEGORIES= deskutils
|
||||
MASTER_SITES= SF
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-2
|
||||
|
||||
MAINTAINER= wenheping@gmail.com
|
||||
COMMENT= A 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
|
||||
USE_BZIP2= yes
|
||||
NO_BUILD= yes
|
||||
#WRKSRC= ${DEST}
|
||||
|
||||
DEST= ${PREFIX}/www/data-dist/egroupware
|
||||
PLIST= ${WRKDIR}/plist
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= EG_DIR=${EG_DIR} \
|
||||
EG_DATA=${EG_DATA}
|
||||
|
||||
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
|
||||
LDAP "Contacts can be stored using OpenLDAP" off \
|
||||
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
|
||||
USE_PHP+= pdo_mysql
|
||||
.endif
|
||||
.if defined(WITH_POSTGRE)
|
||||
USE_PHP+= pgsql
|
||||
@ -47,48 +52,42 @@ USE_PHP+= imap
|
||||
.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"
|
||||
WRKSRC= ${WRKDIR}/egroupware
|
||||
EG_DIR= www/eg
|
||||
EG_WWWDIR= ${PREFIX}/${EG_DIR}
|
||||
EG_DATA= www/egdata
|
||||
EG_DATADIR= ${PREFIX}/www/egdata
|
||||
|
||||
do-extract:
|
||||
${MKDIR} ${WRKDIR}
|
||||
pre-install:
|
||||
@${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}
|
||||
|
||||
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
|
||||
${MKDIR} ${EG_WWWDIR}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${EG_WWWDIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}' \
|
||||
>> ${TMPPLIST}
|
||||
${CHMOD} -R 755 ${EG_WWWDIR}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_WWWDIR}' >> ${TMPPLIST}
|
||||
|
||||
# --- 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
|
||||
${MKDIR} ${EG_DATADIR}
|
||||
${MKDIR} ${EG_DATADIR}/files
|
||||
${MKDIR} ${EG_DATADIR}/backup
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}' \
|
||||
>> ${TMPPLIST}
|
||||
${CHMOD} -R 755 ${EG_DATADIR}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_DATADIR}' >> ${TMPPLIST}
|
||||
|
||||
post-install:
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (eGroupWare-1.4.004-2.tar.bz2) = 17533db1679a756de2c91f6dc065eb25
|
||||
SHA256 (eGroupWare-1.4.004-2.tar.bz2) = fec225330ba94a7a566d998438357119f70a639bf932abeb6468139db34dc7e1
|
||||
SIZE (eGroupWare-1.4.004-2.tar.bz2) = 10035344
|
||||
MD5 (eGroupware-1.6.001.tar.bz2) = 95fef56b60b21b1dbd5b402e4af29d95
|
||||
SHA256 (eGroupware-1.6.001.tar.bz2) = 1c7442b34e629065419e4414ae96b7990a6c0f5fdc411ee556259744e7594ba7
|
||||
SIZE (eGroupware-1.6.001.tar.bz2) = 9021592
|
||||
|
45
deskutils/egroupware/files/pkg-message.in
Normal file
45
deskutils/egroupware/files/pkg-message.in
Normal file
@ -0,0 +1,45 @@
|
||||
==============================================================
|
||||
POST-INSTALL CONFIGURATION FOR eGroupware
|
||||
|
||||
|
||||
Make sure in your php.ini session.save_path='/tmp' is writable
|
||||
upload_max_filesize >= 8M
|
||||
|
||||
1) Create a user and a database for eGroupware to store all
|
||||
its tables in (or choose an existing database).
|
||||
It doesn't matter what the database or user names are,
|
||||
as this will be configured in a later step.
|
||||
|
||||
2) Add the following to your Apache configuration, and
|
||||
restart the server:
|
||||
|
||||
### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
|
||||
Alias /eg %%PREFIX%%/%%EG_DIR%%/
|
||||
AcceptPathInfo On
|
||||
<Directory %%PREFIX%%/%%EG_DIR%%>
|
||||
AllowOverride None
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
<Directory %%PREFIX%%/%%EG_DATA%%>
|
||||
AllowOverride None
|
||||
Order Allow,Deny
|
||||
Deny from all
|
||||
</Directory>
|
||||
|
||||
3) Visit your eGroupware site with a browser (i.e.,
|
||||
http://your.server.com/eg/), and you should
|
||||
be taken to the install.php script, which will lead
|
||||
you through creating a config file and then
|
||||
setting up eGroupware, creating an admin account, etc.
|
||||
|
||||
4) When you come to the setup page,please set the files'
|
||||
and backup's full path with:
|
||||
%%PREFIX%%/%%EG_DATA%%/files
|
||||
%%PREFIX%%/%%EG_DATA%%/backup
|
||||
|
||||
For more information, see the INSTALL DOCUMENTATION:
|
||||
|
||||
http://www.egroupware.org/index.php?page_name=wiki&lang=&wikipage=ManualSetup
|
||||
|
||||
======================================================
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user