15919018 areca won't start; missing library/java/swt dependency
authorApril Chin <april.chin@oracle.com>
Wed, 28 Nov 2012 09:32:44 -0800
changeset 1064 2443899f7be0
parent 1063 ce6e2ed3767e
child 1065 d0688b92e84d
15919018 areca won't start; missing library/java/swt dependency
components/areca/areca.p5m
components/areca/patches/01-areca_sh.patch
--- a/components/areca/areca.p5m	Tue Nov 27 20:30:24 2012 -0800
+++ b/components/areca/areca.p5m	Wed Nov 28 09:32:44 2012 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
 #
 
 <transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
@@ -135,3 +135,6 @@
 # pkgdepend should have picked up the dependency on bash;
 # this explicit depend action can be removed if pkgdepend is fixed later
 depend fmri=__TBD pkg.debug.depend.file=usr/bin/bash type=require
+
+# pkgdepend didn't pick up this dependency
+depend fmri=__TBD pkg.debug.depend.file=usr/share/lib/java/swt.jar type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/areca/patches/01-areca_sh.patch	Wed Nov 28 09:32:44 2012 -0800
@@ -0,0 +1,19 @@
+diff -rupN areca-7.1-orig/areca.sh areca-7.1/areca.sh
+--- areca-7.1-orig/areca.sh	2009-04-20 01:44:14.000000000 -0700
++++ areca-7.1/areca.sh	2012-11-19 16:13:05.288917000 -0800
+@@ -7,14 +7,7 @@
+ #Options
+ JAVADIR=/usr/java
+ 
+-#Getting Areca's directory
+-PROGRAM_DIR=`dirname "$0"`
+-#Solaris path
+-if [ -f ../../usr/bin/areca ]; then
+-	PROGRAM_DIR=../../usr/share/areca
+-fi
+-
+-PROGRAM_DIR=`cd "$PROGRAM_DIR"; pwd`
++PROGRAM_DIR=/usr/share/areca
+ cd "${PROGRAM_DIR}"
+ 
+ #Configured directories