create.sh revision 37187cd476e30232cba3afb116e079cb640f984e
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# CDDL HEADER START
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# The contents of this file are subject to the terms of the
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Common Development and Distribution License (the "License").
# See LICENSE.txt included in this distribution for the specific
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
if [ ! "$human_readable_version" ]
echo "Not supported naming scheme $version"
PKG pkgsend add file platform/solaris/smf/opengrok.xml mode=0444 owner=root group=sys path=/var/svc/manifest/application/opengrok.xml restart_fmri=svc:/system/manifest-import:default
PKG pkgsend add file platform/solaris/smf/svc-opengrok mode=0555 owner=root group=bin path=/lib/svc/method/svc-opengrok
PKG pkgsend add file platform/solaris/smf/ogindexd mode=0555 owner=root group=bin path=/usr/opengrok/lib/ogindexd
PKG pkgsend add file dist/opengrok.jar mode=0444 owner=root group=bin path=/usr/opengrok/lib/opengrok.jar
PKG pkgsend add file logging.properties mode=0444 owner=root group=sys path=/usr/opengrok/doc/logging.properties
PKG pkgsend add file doc/EXAMPLE.txt mode=0444 owner=root group=sys path=/usr/opengrok/doc/EXAMPLE.txt
PKG pkgsend add file doc/ctags.config mode=0444 owner=root group=sys path=/usr/opengrok/doc/ctags.config
lucene-analyzers-common-${LV}.jar lucene-core-${LV}.jar lucene-queryparser-${LV}.jar lucene-suggest-${LV}.jar \
jrcs.jar \
PKG pkgsend add file dist/opengrok.1 mode=0444 owner=root group=bin path=/usr/opengrok/man/man1/opengrok.1
# Following line gets commented by that the developer/tool/exuberant-ctags has been removed from IPS
# This has to stay commented until the next release of Solaris will contain the exhuberant ctags package
#PKG pkgsend add depend fmri=pkg:/developer/tool/exuberant-ctags type=require
PKG pkgsend add file dist/source.war mode=0444 owner=webservd group=webservd path=/usr/opengrok/lib/source.war
if [ -d "$PKG_REPO_NAME" ]
unset PKG_REPO
echo "OpenGrok has been packaged into $outfile"