Import SOGo-3.2.5 as www/SOGo3
Since upstream still maintaines the 2-series it is kept in www/SOGo. Version 3, introduced in early 2016, has a modern, fully responsive Web frontend. Both versions share a common implementation of the communication protocols supported in SOGo and SOPE: LDAP, IMAP, SQL, CardDAV, CalDAV, and Microsoft Enterprise ActiveSync. DESCR: SOGo is fully supported and trusted groupware server with a focus on scalability and open standards. SOGo is released under the GNU GPL/LGPL v2 and above. SOGo provides a rich AJAX-based Web interface and supports multiple native clients through the use of standard protocols such as CalDAV, CardDAV and GroupDAV. SOGo is the missing component of your infrastructure; it sits in the middle of your servers to offer your users an uniform and complete interface to access their information. It has been deployed in production environments where thousands of users are involved.
This commit is contained in:
parent
2d844b0512
commit
90981c8f7b
11 changed files with 2014 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
|||
# $NetBSD: Makefile,v 1.1201 2017/01/12 15:09:20 ryoon Exp $
|
||||
# $NetBSD: Makefile,v 1.1202 2017/01/19 23:45:33 wiedi Exp $
|
||||
#
|
||||
|
||||
COMMENT= Packages related to the World Wide Web
|
||||
|
||||
SUBDIR+= SOGo
|
||||
SUBDIR+= SOGo3
|
||||
SUBDIR+= SpeedyCGI
|
||||
SUBDIR+= adzap
|
||||
SUBDIR+= aipo
|
||||
|
|
12
www/SOGo3/DESCR
Normal file
12
www/SOGo3/DESCR
Normal file
|
@ -0,0 +1,12 @@
|
|||
SOGo is fully supported and trusted groupware server with a focus
|
||||
on scalability and open standards. SOGo is released under the GNU
|
||||
GPL/LGPL v2 and above.
|
||||
|
||||
SOGo provides a rich AJAX-based Web interface and supports multiple
|
||||
native clients through the use of standard protocols such as CalDAV,
|
||||
CardDAV and GroupDAV.
|
||||
|
||||
SOGo is the missing component of your infrastructure; it sits in
|
||||
the middle of your servers to offer your users an uniform and
|
||||
complete interface to access their information. It has been deployed
|
||||
in production environments where thousands of users are involved.
|
92
www/SOGo3/Makefile
Normal file
92
www/SOGo3/Makefile
Normal file
|
@ -0,0 +1,92 @@
|
|||
# $NetBSD: Makefile,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
#
|
||||
|
||||
DISTNAME= SOGo-3.2.5
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.sogo.nu/files/downloads/SOGo/Sources/
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://www.sogo.nu/
|
||||
COMMENT= Groupware server supporting CalDAV, CardDAV and GroupDAV
|
||||
LICENSE= gnu-gpl-v2
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_TOOLS+= bash gmake zip:run
|
||||
|
||||
CONFIG_SHELL= bash
|
||||
CONFIGURE_ARGS= --enable-debug --disable-strip
|
||||
MAKE_JOBS_SAFE= no
|
||||
|
||||
SOGOUSER?= sogo
|
||||
SOGOGROUP?= sogo
|
||||
SOGOETCDIR?= ${PKG_SYSCONFDIR}
|
||||
SOGORUNDIR?= ${VARBASE}/sogo
|
||||
|
||||
INSTALLATION_DIRS+= share/examples/SOGo
|
||||
|
||||
CONF_FILES+= share/examples/SOGo/sogo-conf.sh \
|
||||
${PKG_SYSCONFDIR}/sogo-conf.sh
|
||||
CONF_FILES+= share/examples/SOGo/SOGo.conf \
|
||||
${PKG_SYSCONFDIR}/SOGo.conf
|
||||
OWN_DIRS+= ${SOGOETCDIR}
|
||||
OWN_DIRS+= ${SOGORUNDIR}
|
||||
OWN_DIRS_PERMS+= ${SOGOETCDIR} ${SOGOUSER} ${SOGOGROUP} 0755
|
||||
OWN_DIRS_PERMS+= ${SOGORUNDIR} ${SOGOUSER} ${SOGOGROUP} 0755
|
||||
BUILD_DEFS+= VARBASE
|
||||
|
||||
PKG_GROUPS+= ${SOGOGROUP}
|
||||
PKG_USERS+= ${SOGOUSER}:${SOGOGROUP}
|
||||
PKG_HOME.${SOGOUSER}= ${SOGOETCDIR}
|
||||
PKG_SHELL.${SOGOUSER}= ${SH}
|
||||
PKG_GECOS.${SOGOUSER}= SOGo daemon user
|
||||
|
||||
PKG_SYSCONFSUBDIR= sogo
|
||||
|
||||
FILES_SUBST+= SOGORUNDIR=${SOGORUNDIR}
|
||||
FILES_SUBST+= SOGOETCDIR=${SOGOETCDIR}
|
||||
FILES_SUBST+= SOGOUSER=${SOGOUSER}
|
||||
RCD_SCRIPTS= sogod
|
||||
|
||||
SUBST_CLASSES+= paths
|
||||
SUBST_MESSAGE.paths= Fixing hardcoded paths.
|
||||
SUBST_STAGE.paths= post-patch
|
||||
SUBST_FILES.paths= SoObjects/SOGo/SOGoSystemDefaults.m
|
||||
SUBST_SED.paths= -e 's,/etc/sogo/,${PKG_SYSCONFDIR}/,g'
|
||||
|
||||
FIX_PERMS= \
|
||||
SoObjects/Mailer/SOGoMailLithuanianForward.wo/SOGoMailLithuanianForward.html \
|
||||
SoObjects/Mailer/SOGoMailLithuanianForward.wo/SOGoMailLithuanianForward.wod \
|
||||
SoObjects/Mailer/SOGoMailLithuanianReply.wo/SOGoMailLithuanianReply.html \
|
||||
SoObjects/Mailer/SOGoMailLithuanianReply.wo/SOGoMailLithuanianReply.wod \
|
||||
UI/MainUI/MainUI.SOGo/Resources/Slovenian.lproj/Locale \
|
||||
UI/Templates/SOGoACLLithuanianAdditionAdvisory.wox \
|
||||
UI/Templates/SOGoACLLithuanianModificationAdvisory.wox \
|
||||
UI/Templates/SOGoACLLithuanianRemovalAdvisory.wox \
|
||||
UI/Templates/SOGoFolderLithuanianAdditionAdvisory.wox \
|
||||
UI/Templates/SOGoFolderLithuanianRemovalAdvisory.wox \
|
||||
UI/WebServerResources/css/icons.css
|
||||
|
||||
pre-install:
|
||||
.for f in ${FIX_PERMS}
|
||||
${CHMOD} ${NONBINMODE} ${WRKSRC}/${f}
|
||||
.endfor
|
||||
|
||||
|
||||
post-install:
|
||||
${SED} -e "s|@SOGOUSER@|${SOGOUSER}|" ${FILESDIR}/sogo-conf.sh > \
|
||||
${DESTDIR}${PREFIX}/share/examples/SOGo/sogo-conf.sh
|
||||
${SED} -e "s|/usr/GNUstep/System/Library|${PREFIX}/lib/GNUstep|" \
|
||||
${WRKSRC}/Apache/SOGo.conf > \
|
||||
${DESTDIR}${PREFIX}/share/examples/SOGo/SOGo.conf
|
||||
${SED} -e "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/SOGo.conf >> \
|
||||
${DESTDIR}${PREFIX}/share/examples/SOGo/SOGo.conf
|
||||
|
||||
.include "../../devel/gnustep-base/buildlink3.mk"
|
||||
.include "../../devel/gnustep-make/buildlink3.mk"
|
||||
.include "../../devel/SOPE/buildlink3.mk"
|
||||
.include "../../devel/libmemcached/buildlink3.mk"
|
||||
.include "../../textproc/libxml2/buildlink3.mk"
|
||||
.include "../../www/curl/buildlink3.mk"
|
||||
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
1786
www/SOGo3/PLIST
Normal file
1786
www/SOGo3/PLIST
Normal file
File diff suppressed because it is too large
Load diff
6
www/SOGo3/PLIST.FreeBSD
Normal file
6
www/SOGo3/PLIST.FreeBSD
Normal file
|
@ -0,0 +1,6 @@
|
|||
@comment $NetBSD: PLIST.FreeBSD,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
lib/GNUstep/Frameworks/SOGo.framework/Versions/3/sogo/libSOGo.so.3
|
||||
lib/sogo/libGDLContentStore.so.4.9
|
||||
lib/sogo/libNGCards.so.4.9
|
||||
lib/sogo/libSOGo.so.3
|
||||
lib/sogo/libSOGoUI.so.3.2
|
6
www/SOGo3/PLIST.Linux
Normal file
6
www/SOGo3/PLIST.Linux
Normal file
|
@ -0,0 +1,6 @@
|
|||
@comment $NetBSD: PLIST.Linux,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
lib/GNUstep/Frameworks/SOGo.framework/Versions/3/sogo/libSOGo.so.3
|
||||
lib/sogo/libGDLContentStore.so.4.9
|
||||
lib/sogo/libNGCards.so.4.9
|
||||
lib/sogo/libSOGo.so.3
|
||||
lib/sogo/libSOGoUI.so.3.2
|
6
www/SOGo3/PLIST.SunOS
Normal file
6
www/SOGo3/PLIST.SunOS
Normal file
|
@ -0,0 +1,6 @@
|
|||
@comment $NetBSD: PLIST.SunOS,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
lib/GNUstep/Frameworks/SOGo.framework/Versions/3/sogo/libSOGo.so.3
|
||||
lib/sogo/libGDLContentStore.so.4.9
|
||||
lib/sogo/libNGCards.so.4.9
|
||||
lib/sogo/libSOGo.so.3
|
||||
lib/sogo/libSOGoUI.so.3.2
|
6
www/SOGo3/distinfo
Normal file
6
www/SOGo3/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
|
||||
SHA1 (SOGo-3.2.5.tar.gz) = 64510a438a7d449fe9121ee8ed0ab9847cf9a5e6
|
||||
RMD160 (SOGo-3.2.5.tar.gz) = 10544be7c081b6fed0dc32847029c11065ccee53
|
||||
SHA512 (SOGo-3.2.5.tar.gz) = c17a5f0402f72dea3aa9cddc2eb7dc7e590b1255a68fc620d689e58b29c47867cb6f6302c0d6d21f669f7849110e59fc2e7fd22f31c9d32e407be0d08100f5c1
|
||||
Size (SOGo-3.2.5.tar.gz) = 32376619 bytes
|
5
www/SOGo3/files/SOGo.conf
Normal file
5
www/SOGo3/files/SOGo.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
<Directory "@PREFIX@/lib/GNUstep/SOGo/WebServerResources/">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
49
www/SOGo3/files/sogo-conf.sh
Executable file
49
www/SOGo3/files/sogo-conf.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
|
||||
su -m @SOGOUSER@ << EOT
|
||||
mkdir -p ~@SOGOUSER@/GNUstep/Defaults
|
||||
|
||||
defaults write sogod SOGoTimeZone "Europe/Paris"
|
||||
defaults write sogod SOGoMailDomain "example.net"
|
||||
defaults write sogod SOGoLanguage French
|
||||
defaults write sogod SOGoAppointmentSendEMailNotifications YES
|
||||
defaults write sogod SOGoFoldersSendEMailNotifications YES
|
||||
defaults write sogod SOGoACLsSendEMailNotifications YES
|
||||
|
||||
defaults write sogod SOGoUserSources '({
|
||||
CNFieldName = cn;
|
||||
IDFieldName = uid;
|
||||
UIDFieldName = uid;
|
||||
IMAPHostFieldName = netExampleMailhost;
|
||||
baseDN = "dc=example,dc=net";
|
||||
bindDN = "";
|
||||
bindPassword = "";
|
||||
canAuthenticate = YES;
|
||||
displayName = "ExampleNet SARL";
|
||||
bindFields = (uid);
|
||||
hostname = "ldap.example.net";
|
||||
id = public;
|
||||
isAddressBook = YES;
|
||||
port = 636;
|
||||
encryption = SSL;
|
||||
filter = "(objectClass='inetOrgPerson')";
|
||||
})'
|
||||
defaults write sogod SOGoProfileURL 'mysql://sogo:sogo@localhost/sogo/sogo_user_profile'
|
||||
defaults write sogod OCSFolderInfoURL 'mysql://sogo:sogo@localhost/sogo/sogo_folder_info'
|
||||
defaults write sogod OCSSessionsFolderURL 'mysql://sogo:sogo@localhost/sogo/sogo_sessions_folder'
|
||||
|
||||
defaults write sogod SOGoMailingMechanism smtp
|
||||
defaults write sogod SOGoSMTPServer smtp.example.net
|
||||
|
||||
defaults write sogod SOGoDraftsFolderName Drafts
|
||||
defaults write sogod SOGoSentFolderName Sent
|
||||
defaults write sogod SOGoTrashFolderName Trash
|
||||
defaults write sogod SOGoIMAPServer imaps://localhost:993
|
||||
|
||||
defaults write sogod SOGoPageTitle "Agenda "ExampleNet SARL"
|
||||
defaults write sogod SOGoLoginModule "Calendar"
|
||||
defaults write sogod SOGoZipPath "/usr/pkg/bin/zip"
|
||||
|
||||
EOT
|
||||
|
||||
/etc/rc.d/sogod restart
|
44
www/SOGo3/files/sogod.sh
Executable file
44
www/SOGo3/files/sogod.sh
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: sogod.sh,v 1.1 2017/01/19 23:45:33 wiedi Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: sogod
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: apache
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="sogod"
|
||||
rcvar=$name
|
||||
command="@PREFIX@/sbin/${name}"
|
||||
pidfile="@SOGORUNDIR@/${name}.pid"
|
||||
logfile="@SOGORUNDIR@/${name}.log"
|
||||
sogouser=@SOGOUSER@
|
||||
command_args="-WOPidFile ${pidfile} -WOLogFile ${logfile}"
|
||||
start_precmd="sogod_precmd"
|
||||
start_cmd="sogod_start"
|
||||
|
||||
sogod_precmd()
|
||||
{
|
||||
test -f @PREFIX@/etc/GNUstep.conf || {
|
||||
echo "Cannot find @PREFIX@/etc/GNUstep.conf"
|
||||
exit 1
|
||||
}
|
||||
. @PREFIX@/etc/GNUstep.conf
|
||||
|
||||
test -f @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh || {
|
||||
echo "Cannot find @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh"
|
||||
exit 1
|
||||
}
|
||||
. @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh
|
||||
}
|
||||
|
||||
sogod_start()
|
||||
{
|
||||
echo "Starting $name: "
|
||||
su -m ${sogouser} -c "${command} ${command_args}"
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
Loading…
Reference in a new issue