@@ -85,23 +85,10 @@ See https://github.com/oracle/opengrok/wiki/Messages
85
85
86
86
## 4. OpenGrok install
87
87
88
- ### 4.1 Installing on Solaris from * .p5p file
88
+ Grab a tar ball from https://github.com/oracle/opengrok/releases and
89
+ extract it.
89
90
90
- #### 4.1.0 Install
91
-
92
- The file ` <package_name>.p5p ` you can easily use as a new publisher for the ` pkg ` command.
93
-
94
- ```
95
- pkg install --no-refresh -g /path/to/file <package_name>.p5p opengrok
96
- ```
97
-
98
- #### 4.1.1 Update
99
-
100
- You can also update OpenGrok software with the ` *.p5p ` file by running a command
101
-
102
- ```
103
- pkg update --no-refresh -g /path/to/file/<package_name>.p5p 'pkg://opengrok/*'
104
- ```
91
+ See https://github.com/OpenGrok/platform for OS specific integration.
105
92
106
93
## 5. OpenGrok setup
107
94
@@ -138,8 +125,8 @@ set `OPENGROK_GENERATE_HISTORY` environment variable to `off` during indexing.
138
125
139
126
### 5.2 Using Opengrok shell wrapper script to create indexes
140
127
141
- For \* nix systems there is a shell script called ` OpenGrok ` which simplifies most
142
- of the tasks. It has been tested on Solaris and Linux distributions.
128
+ For \* nix systems there is a shell script called ` OpenGrok ` which simplifies
129
+ most of the tasks. It has been tested on Solaris and Linux distributions.
143
130
144
131
#### 5.2.1 Deploy the web application
145
132
@@ -332,54 +319,11 @@ OpenGrok indexpart /myproj
332
319
333
320
The last argument is path relative to ` SRC_ROOT ` .
334
321
335
- ### 5.3 Using SMF service (Solaris) to maintain OpenGrok indexes
336
-
337
- If you installed OpenGrok from the OSOLopengrok package, it will work out of
338
- the box. Should you need to configure it (e.g. because of non-default ` SRC_ROOT `
339
- or ` DATA_ROOT ` paths) it is done via the ` opengrok ` property group of the
340
- service like this:
341
-
342
- ``` bash
343
- svccfg -s opengrok setprop opengrok/srcdir=" /absolute/path/to/your/sourcetree"
344
- svccfg -s opengrok setprop opengrok/maxmemory=" 2048"
345
- ```
346
-
347
- Then make the service start the indexing, at this point it would be nice if
348
- the web application is already running.
349
-
350
- Now enable the service:
351
-
352
- ``` bash
353
- svcadm enable -rs opengrok
354
- ```
355
-
356
- Note that this will enable tomcat service as dependency.
357
-
358
- When the service starts indexing for first time, it's already enabled and
359
- depending on tomcat, so at this point the web application should be
360
- already running.
361
-
362
- Note that indexing is not done when the opengrok service is disabled.
363
-
364
- To rebuild the index later (e.g. after source code changed) just run:
365
-
366
- ``` bash
367
- svcadm refresh opengrok
368
- ```
369
-
370
- The service makes it possible to supply part of the configuration via the
371
- ` opengrok/readonly_config ` service property which is set to
372
- ` /etc/opengrok/readonly_configuration.xml ` by default.
373
-
374
- Note: before removing the package please disable the service.
375
- If you don't do it, it will not be removed automatically.
376
- In such case please remove it manually.
377
-
378
322
### 5.4 Using command line interface to create indexes
379
323
380
324
There are 2 (or 3) steps needed for this task.
381
325
382
- #### 5.4.1 Populate DATA_ROOT Directory
326
+ #### 5.4.1 Populate DATA \_ ROOT Directory
383
327
384
328
* ** Option 1. OpenGrok** :
385
329
There is a sample shell script ` OpenGrok ` that is suitable
0 commit comments