41 | | * Python-2.3.5.tgz |
42 | | * pysqlite-1.0.1.tar.gz |
43 | | * clearsilver-0.10.1.tar.gz |
44 | | * sqlite-2.8.16.tar.gz |
45 | | * db-4.4.16.tar.gz |
46 | | * SilverCity-0.9.5.tar.gz |
47 | | * subversion-1.2.3.tar.gz |
48 | | * httpd-2.0.55.tar.gz |
49 | | * apr-1.2.2.tar.gz |
50 | | * swig-1.3.27.tar.gz |
51 | | * apr-util-1.2.2.tar.gz |
52 | | * neon-0.25.4.tar.gz |
53 | | * trac-0.9.tar.gz |
54 | | |
55 | | == Installation == |
56 | | |
57 | | Make sure you have the latest libtool15 and autoconf259 (Install from ports) |
58 | | |
59 | | === Install APR === |
60 | | {{{ |
61 | | $ tar -xvzf apr-1.2.2.tar.gz |
62 | | $ cd apr-1.2.2 |
63 | | $ ./configure --prefix=/usr/local/apr |
64 | | $ make |
65 | | $ su root -c 'make install' |
66 | | }}} |
67 | | |
68 | | === Install sleepycat database === |
69 | | {{{ |
70 | | $ tar -xvzf db-4.4.16.tar.gz |
71 | | $ cd db-4.4.16/build_unix |
72 | | $ ../dist/configure |
73 | | $ make |
74 | | $ su root -c 'make install' |
75 | | }}} |
76 | | |
77 | | === Install APR utilities === |
78 | | {{{ |
79 | | $ tar -xvzf apr-util-1.2.2.tar.gz |
80 | | $ cd apr-util-1.2.2 |
81 | | $ export CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" |
82 | | $ export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.4/lib" |
83 | | $ ./configure --with-apr=/usr/local/apr --with-berkeley-db=/usr/local/BerkeleyDB.4.4 |
84 | | $ make |
85 | | $ su root -c 'make install' |
86 | | }}} |
87 | | |
88 | | === Install libxml === |
89 | | {{{ |
90 | | $ cd /usr/ports/textproc/libxml |
91 | | $ make install |
92 | | }}} |
93 | | |
94 | | === Install Python 2.3.5 === |
95 | | {{{ |
96 | | $ pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/python-2.3.5p2.tgz |
97 | | }}} |
98 | | |
99 | | === Install gmake-3.8 === |
100 | | {{{ |
101 | | $ pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/gmake-3.80p1.tgz |
102 | | }}} |
103 | | |
104 | | === Install Neon === |
105 | | {{{ |
106 | | $ tar -xvzf neon-0.25.4.tar.gz |
107 | | $ mv neon-0.25.4 neon |
108 | | $ cd neon |
109 | | $ ./configure --prefix=/usr/local/neon --with-ssl |
110 | | $ make |
111 | | $ su root -c 'make install' |
112 | | }}} |
113 | | |
114 | | === Install Apache 2 === |
115 | | {{{ |
116 | | $ tar -xvzf httpd-2.0.55.tar.gz |
117 | | $ cd httpd-2.0.55 |
118 | | $ ./configure --prefix=/usr/local/apache2 --enable-dav --enable-dav-fs |
119 | | $ make |
120 | | $ su root -c 'make install' |
121 | | }}} |
122 | | |
123 | | === Install SWIG === |
124 | | {{{ |
125 | | $ tar -xvzf swig-1.3.27.tar.gz |
126 | | $ cd swig-1.3.27 |
127 | | $ ./configure --prefix=/usr/local/swig --with-python=/usr/local/bin/python |
128 | | $ make |
129 | | $ su root -c 'make install' |
130 | | }}} |
131 | | |
132 | | (note: Had problems with subversion not detecting neon in /usr/local/neon, had |
133 | | to take out the option --with-neon=/usr/local/neon in the configure, it then |
134 | | detected neon 0.24.7, presumably the neon folder inside the subversion |
135 | | folder once untarred.) |
136 | | |
137 | | === Install Subversion === |
138 | | {{{ |
139 | | $ tar -xvzf subversion-1.2.3.tar.gz |
140 | | $ cd subversion-1.2.3 |
141 | | $ ./configure --disable-mod-activation --with-zlib \ |
142 | | --enable-swig-bindings=python --with-apr=/usr/local/apr/bin/apr-1-config \ |
143 | | --with-apr-util=/usr/local/apr/bin/apu-1-config --with-apxs=/usr/local/apache2/bin/apxs \ |
144 | | --with-swig=/usr/local/swig --with-httpd=../httpd-2.0.55 |
145 | | $ gmake |
146 | | $ su root -c 'gmake install' |
147 | | }}} |
148 | | |
149 | | === Fix apr.h === |
150 | | Make the following change to {{{/usr/local/apr/include/apr-1/apr.h}}}. |
151 | | |
152 | | {{{ |
153 | | #!diff |
154 | | --- /usr/local/apr/include/apr-1/apr.h.old Tue Mar 21 13:21:07 2006 |
155 | | +++ /usr/local/apr/include/apr-1/apr.h Tue Mar 21 13:21:59 2006 |
156 | | @@ -389,6 +389,8 @@ |
157 | | #define APR_PATH_MAX PATH_MAX |
158 | | #elif defined(_POSIX_PATH_MAX) |
159 | | #define APR_PATH_MAX _POSIX_PATH_MAX |
160 | | +#elif !defined(PATH_MAX) |
161 | | +#define PATH_MAX 1024 |
162 | | #else |
163 | | #error no decision has been made on APR_PATH_MAX for your platform |
164 | | #endif |
165 | | }}} |
166 | | |
167 | | === Install Python bindings for Subversion === |
168 | | {{{ |
169 | | $ gmake swig-py |
170 | | $ su root -c 'gmake install-swig-py' |
171 | | }}} |
172 | | |
173 | | === Install Sqlite === |
174 | | {{{ |
175 | | $ tar -xvzf sqlite-2.8.16.tar.gz |
176 | | $ ./configure |
177 | | $ gmake |
178 | | $ su root -c 'gmake install' |
179 | | }}} |
180 | | |
181 | | === (Optional) Install SilverCity === |
182 | | {{{ |
183 | | $ tar -xvzf SilverCity-0.9.5.tar.gz |
184 | | $ cd SilverCity-0.9.5 |
185 | | $ python setup.py build |
186 | | $ su root -c 'python setup.py install' |
187 | | }}} |
188 | | |
189 | | === Install ClearSilver === |
190 | | {{{ |
191 | | $ tar -xvzf clearsilver-0.10.1.tar.gz |
192 | | $ cd clearsilver-0.9.6 |
193 | | $ ./configure --with-python=/usr/local/bin/python --with-apache=/usr/local/apache2 |
194 | | $ gmake |
195 | | $ vi scripts/document.py, change 1st line #!/bin/env python to #!/usr/local/bin/python |
196 | | $ su root -c 'gmake install' |
197 | | $ cd python |
198 | | $ su root -c 'python setup.py install' |
199 | | }}} |
200 | | |
201 | | === Install PySqlite === |
202 | | {{{ |
203 | | $ tar -xvzf pysqlite-1.0.1.tar.gz |
204 | | $ cd pysqlite |
205 | | $ python setup.py build |
206 | | $ su root -c 'python setup.py install' |
207 | | }}} |
208 | | |
209 | | === Install Trac === |
210 | | {{{ |
211 | | $ tar -xvzf trac-0.9.tar.gz |
212 | | $ cd trac-0.9 |
213 | | $ python setup.py build |
214 | | $ su root -c 'python setup.py install' |
215 | | }}} |
216 | | |
217 | | === Fix libsvn paths === |
218 | | This will create symbolic link for libsvn library to the Python 2.3 library |
219 | | {{{ |
220 | | $ cd /usr/local/lib/python2.3/site-packages |
221 | | $ ln -s /usr/local/lib/svn-python svn-python |
222 | | $ ln -s /usr/local/lib/svn-python/svn svn |
223 | | $ ln -s /usr/local/lib/svn-python/libsvn libsvn |
224 | | }}} |
| 34 | == First-time setup == |