Skip to content

Commit e498452

Browse files
author
Vladimir Kotal
committed
move OS specific scripts/files to separate repository
1 parent 7a29b60 commit e498452

File tree

13 files changed

+6
-993
lines changed

13 files changed

+6
-993
lines changed

README.md

Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,10 @@ See https://github.com/oracle/opengrok/wiki/Messages
8585

8686
## 4. OpenGrok install
8787

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.
8990

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.
10592

10693
## 5. OpenGrok setup
10794

@@ -138,8 +125,8 @@ set `OPENGROK_GENERATE_HISTORY` environment variable to `off` during indexing.
138125

139126
### 5.2 Using Opengrok shell wrapper script to create indexes
140127

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.
143130

144131
#### 5.2.1 Deploy the web application
145132

@@ -332,54 +319,11 @@ OpenGrok indexpart /myproj
332319

333320
The last argument is path relative to `SRC_ROOT`.
334321

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-
378322
### 5.4 Using command line interface to create indexes
379323

380324
There are 2 (or 3) steps needed for this task.
381325

382-
#### 5.4.1 Populate DATA_ROOT Directory
326+
#### 5.4.1 Populate DATA\_ROOT Directory
383327

384328
* **Option 1. OpenGrok**:
385329
There is a sample shell script `OpenGrok` that is suitable

build.xml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -666,48 +666,6 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
666666
</java>
667667
</target>
668668

669-
<target name="-check-svr4-package" description="Check that Solaris SVR4 package exists">
670-
<!-- XXX dist should be ${dist.dir} -->
671-
<available file="dist/OSOLopengrok-${version}.pkg" type="file"
672-
property="svr4_package_exists">
673-
</available>
674-
<condition property="svr4_package_missing">
675-
<not>
676-
<isset property="svr4_package_exists"/>
677-
</not>
678-
</condition>
679-
</target>
680-
681-
<target name="package-svr4" depends="-check-svr4-package,jar,plugins" if="svr4_package_missing">
682-
<exec os="SunOS" executable="/usr/bin/pkgmk" failonerror="true">
683-
<arg line="-o -d build -r . -v ${version} -f platform/solaris/pkgdef/prototype"/>
684-
</exec>
685-
<exec os="SunOS" executable="/usr/bin/pkgtrans" failonerror="true">
686-
<arg line="-s build ../dist/OSOLopengrok-${version}.pkg OSOLopengrok"/>
687-
</exec>
688-
</target>
689-
690-
<target name="-check-ips-package" description="Check that Solaris IPS package exists">
691-
<!-- XXX dist should be ${dist.dir} -->
692-
<available file="dist/opengrok-${version}.p5p" type="file"
693-
property="ips_package_exists">
694-
</available>
695-
<condition property="ips_package_missing">
696-
<not>
697-
<isset property="ips_package_exists"/>
698-
</not>
699-
</condition>
700-
</target>
701-
702-
<target name="package-ips" depends="-check-ips-package,jar,plugins" if="ips_package_missing">
703-
<exec os="SunOS" executable="platform/solaris/ips/create.sh" failonerror="true">
704-
<arg line="-v ${version}"/>
705-
</exec>
706-
</target>
707-
708-
<target name="package" depends="package-svr4,package-ips">
709-
</target>
710-
711669
<target name="dist" depends="jar,plugins">
712670
<tar destfile="${dist.dir}/${tardest}"
713671
compression="gzip">

0 commit comments

Comments
 (0)