165 | | Specifying {{{fs-type}}} is actually not necessary, as we have built |
| 165 | Specifying {{{fs-type}}} is actually not necessary, as we have built without bdb, thus making {{{fsfs}}} the default backend file system. |
| 166 | |
| 167 | {{{ |
| 168 | svnadmin create --fs-type=fsfs /var/svn/test |
| 169 | }}} |
| 170 | |
| 171 | To make sure the repository is ok, play with it a little: |
| 172 | {{{ |
| 173 | cd /tmp |
| 174 | mkdir proj |
| 175 | cd proj |
| 176 | mkdir trunk branches tags |
| 177 | cd .. |
| 178 | svn import proj file:///var/svn/test -m "Import First" |
| 179 | rm -r proj |
| 180 | svn co file:///var/svn/test proj |
| 181 | cd proj |
| 182 | svn update |
| 183 | }}} |
| 184 | |
| 185 | === trac environment === |
| 186 | |
| 187 | {{{ |
| 188 | trac-admin /var/trac/test initenv |
| 189 | }}} |
| 190 | |
| 191 | You may need to manage access rights on the trac env directory tree. This may be done by first creating a unix group dedicated to this trac project, e.g. {{{trac}}}, and assigning the various users to this group. The apache {{{web}}} user should be one of these. If you need a nice description of how to do this, look at the [http://developer.apple.com/internet/opensource/cvsoverview.html Apple CVSOverview] (then search for the text "create a new group" or "!NetInfo Manager"). |
| 192 | |
| 193 | Your {{{trac-admin}}} binary may not be in your search path - if {{{trac-admin}}} isn't found, try: |
| 194 | |
| 195 | {{{ |
| 196 | sudo ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/trac* /usr/local/bin |
| 197 | }}} |
| 198 | |
| 199 | to create links to them in {{{/usr/local/bin}}}. |
| 200 | |
| 201 | To apply {{{chgrp}}} and {{{chmod}}} recursively, you may do: |
| 202 | {{{ |
| 203 | cd /var/trac/test |
| 204 | find . -name "*" -exec chgrp trac {} \; -ls |
| 205 | find . -name "*" -exec chmod g+sw {} \; -ls |
| 206 | }}} |
| 207 | |
| 208 | For further trac configuration, see TracGuide. |
| 209 | |
| 210 | ''mario@ruggier.org'' |
| 211 | |
| 212 | ---- |
| 213 | See also: TracGuide, TracInstall, TracOnOsx, TracInstallPlatforms |