-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
172 lines (125 loc) · 4.23 KB
/
INSTALL
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
OpenGroupware.org Installation Guide
====================================
Prerequisites
=============
SOPE 4.7
- gnustep-make (Ubuntu package)
- gnustep-base (Ubuntu package)
- libxml2/libxml2-dev
- autoconf
- openldap2/openldap2-dev
- postgresql-dev
(Internal) Dependencies
=======================
Logic
- SOPE 4.5
DocumentAPI
- Logic
WebUI
- Logic
- DocumentAPI
Tools
- Logic
- DocumentAPI
XmlRpcAPI
- Logic
- DocumentAPI
ZideStore
- Logic
PDA
- Logic
- DocumentAPI
Building
========
If the prerequisites are properly fulfilled, building OpenGroupware.org is
a simple:
./configure \
--with-gnustep \
--gsmake=/usr/share/GNUstep/Makefiles \
--enable-debug --disable-strip
make all
Installation:
make install
Configuration
=============
TODO: write configuration guide
- mod_ngobjweb setup
- init script
- starting OGo on the shell
- ZideStore
- nhsd
links
*****
2024-09-04: Probably best to use `--with-gnustep` now. GNUstep itself got some
FHS support in the meantime.
ln -s ~/myogosrctree/WebUI/Resources \
$FHS_INSTALL_ROOT/share/opengroupware.org-5.5/translations
ln -s ~/myogosrctree/WebUI/Templates \
$FHS_INSTALL_ROOT/share/opengroupware.org-5.5/templates
ln -s ~/myogosrctree/Themes/WebServerResources \
$FHS_INSTALL_ROOT/share/opengroupware.org-5.5/www
If you use the GNUstep environment (you probably don't), the links are different:
- pushd $GNUSTEP_USER_ROOT
- ln -s ~/myogosrctree/WebUI/Resources .
- ln -s ~/myogosrctree/WebUI/Templates Library/OpenGroupware.org-5.5/
- ln -s ~/myogosrctree/Themes/WebServerResources .
database
********
su - postgres
createuser OGo
createdb OGo
psql -h localhost OGo OGo (must work)
=> if this doesn't work, you need to allow TCP/IP in pg_hba.conf, eg:
"host OGo OGo 127.0.0.1 255.255.255.255 trust"
(you should use appropriate password auth in deployments!)
> ALTER ROLE "OGo" WITH PASSWORD 'abc123';
cd Database/PostgreSQL/
psql -h localhost OGo OGo < pg-build-schema.psql
defaults
********
If you are upgrading, removing defaults should work fine if you use
defaults values, thats is:
defaults delete NSGlobalDomain LSModelName
defaults delete NSGlobalDomain NGBundlePath
defaults delete NSGlobalDomain LSAdaptor
LSConnectionDictionary
=> no need to set if you use user=OGo, pwd emtpy, DB=OGo
defaults write NSGlobalDomain LSConnectionDictionary \
'{userName="OGo"; databaseName="OGo";hostName="localhost";password="abc123";}'
NGBundlePath
=> IMPORTANT: not required for standard locations!
defaults write NSGlobalDomain NGBundlePath \
'"$(GNUSTEP_USER_ROOT)/Library/OpenGroupware.org-5.5/Commands:$(GNUSTEP_USER_ROOT)/Library/OpenGroupware.org-5.5/DataSources:$(GNUSTEP_USER_ROOT)/Library/OpenGroupware.org-5.5/WebUI:$(GNUSTEP_USER_ROOT)/Library/OpenGroupware.org-5.5/"'
init-scripts
************
Init-Scripts depend on the actual platform, so you need to
come up with an own. The templates used for the RPM packages can
be found in:
maintenance/rpm_buildenvironment/initscript_templates/
Upgrading from 1.0 to 1.1
=========================
For users which upgrade from one of the 1.0 versions to OGo 1.1.
If you want to keep your settings, copy your .plist files, eg:
cp ogo-webui-1.0.plist ogo-webui-1.1.plist
cp ogo-zidestore-1.3.plist ogo-zidestore-1.5.plist
Upgrading from pre-1.0 alpha
============================
For users which upgrade from a CVS based "non-FHS" installation.
a) note that the daemons now live in
/usr/local/sbin/ (or /usr/sbin)
and are not wrappers anymore (eg ogo-webui-1.1 instead of
OpenGroupware.woa)
b) the PostgreSQL adaptor was renamed from PostgreSQL72 to PostgreSQL
- you might need to fix your defaults for that
c) the Alias for the WebServerResources now starts with
/OpenGroupware10a.woa/
instead of
/OpenGroupware.woa/
d) the webserver resources now live in
/usr[/local]/share/opengroupware.org-5.5/www
e) translations (formerly the "Resources" link in $GNUSTEP_USER_ROOT) now live
in:
/usr[/local]/share/opengroupware.org-5.5/translations/
f) you might need to remove your NGBundlePath, its not required anymore (for
FHS installs):
Defaults delete NSGlobalDomain NGBundlePath