Package: scalable-opengroupware.org
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, dbconfig-common
+Recommends: slapd, postgresql-8.1
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
--- /dev/null
+{
+ NSGlobalDomain = {
+ LDAPDebugEnabled = YES;
+ };
+ sogod-0.9 = {
+ OCSFolderInfoURL = "postgresql://_DBC_DBUSER_:_DBC_DBPASS_@_DBC_DBSERVER_:_DBC_DBPORT_/_DBC_DBNAME_/sogo_folder_info";
+ AgenorProfileURL = "postgresql://_DBC_DBUSER_:_DBC_DBPASS_@_DBC_DBSERVER_:_DBC_DBPORT_/_DBC_DBNAME_/sogo_user_profile";
+ WOMessageUseUTF8 = YES;
+ WOParsersUseUTF8 = YES;
+ WOPort = 20000;
+ SOGoDefaultMailDomain = "sogo.linpro.no";
+ SOGoFallbackIMAP4Server = "localhost";
+ SOGoAuthentificationMethod = "LDAP";
+ SOGoLDAPSources =
+ (
+ {
+ CNFieldName = "displayName";
+ IDFieldName = "uid";
+ UIDFieldName = "uid";
+ baseDN = "dc=sogo,dc=linpro,dc=no";
+ bindDN = "cn=admin,dc=sogo,dc=linpro,dc=no";
+ bindPassword = "abcd";
+ hostname = "localhost";
+ port = 389;
+ canAuthenticate = YES;
+ id = "userdb";
+ }
+ );
+ };
+}
dh_installexamples
dh_install --list-missing --sourcedir=debian/tmp
dh_installdirs
+ cp debian/gnustepdefaults.template debian/scalable-opengroupware.org/var/lib/scalable-opengroupware.org/
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
--- /dev/null
+#! /bin/sh
+
+# source debconf stuff
+. /usr/share/debconf/confmodule
+# source dbconfig-common shell library, and call the hook function
+if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
+ . /usr/share/dbconfig-common/dpkg/config.pgsql
+ dbc_dbuser=sogo
+ dbc_dbname=sogo
+
+ dbc_go scalable-opengroupware.org "$@"
+fi
/var/run/sogo
/var/spool/sogo
/var/log/sogo
+/etc/scalable-opengroupware.org
+/var/lib/scalable-opengroupware.org
#! /bin/sh -e
+. /usr/share/debconf/confmodule
+
if [ -z "$2" ]; then
- adduser --system sogo
+ SOGOHOME=/var/lib/scalable-opengroupware.org
+ adduser --system sogo --home $SOGOHOME --shell /bin/bash
+
+ install -d -o sogo /var/spool/sogo
+ install -d -o sogo /var/log/sogo
+ install -d -o sogo $SOGOHOME/GNUstep/Defaults
+
+ dbc_generate_include=template:/etc/scalable-opengroupware.org/config
+ dbc_generate_include_owner=sogo
+ dbc_generate_include_perms=0600
+ dbc_pgsql_createdb_encoding=UTF8
+ dbc_authmethod_user=password
+ dbc_generate_include_args="-f template"
- install -d -o sogo /var/spool/sogo
- install -d -o sogo /var/log/sogo
+ if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then
+ . /usr/share/dbconfig-common/dpkg/postinst.pgsql
+ dbc_go scalable-opengroupware.org "$@"
+ fi
+ ln -s /etc/scalable-opengroupware.org/config $SOGOHOME/GNUstep/Defaults/.GNUstepDefaults
fi
#DEBHELPER#
--- /dev/null
+#! /bin/sh
+
+if [ "$1" = "purge" ]; then
+ if which deluser > /dev/null 2>&1; then
+ deluser --remove-home sogo
+ fi
+
+ rm -f /etc/scalable-opengroupware.org/config $SOGOHOME/GNUstep/Defaults/.GNUstepDefaults
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge /etc/scalable-opengroupware.org/config
+ fi
+fi
+
+#DEBHELPER#