diff -Naur bacula-2.2.5/platforms/solaris-orig/bacula-dir.in bacula-2.2.5/platforms/solaris/bacula-dir.in
--- bacula-2.2.5/platforms/solaris-orig/bacula-dir.in	2007-10-18 12:59:25.768387000 +0200
+++ bacula-2.2.5/platforms/solaris/bacula-dir.in	2007-10-18 13:45:12.189509000 +0200
@@ -14,16 +14,10 @@
     start)
        echo "Starting the Bacula Director: "
        @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
        ;;
     stop)
        echo "Stopping the Director daemon: "
        pkill -x bacula-dir
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
        ;;
     restart)
        $0 stop
diff -Naur bacula-2.2.5/platforms/solaris-orig/bacula-fd.in bacula-2.2.5/platforms/solaris/bacula-fd.in
--- bacula-2.2.5/platforms/solaris-orig/bacula-fd.in	2007-10-18 12:59:25.788387000 +0200
+++ bacula-2.2.5/platforms/solaris/bacula-fd.in	2007-10-18 13:45:25.499610000 +0200
@@ -13,16 +13,10 @@
     start)
        echo "Starting the Bacula File daemon: "
        @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
        ;;
     stop)
        echo "Stopping the Bacula File daemon: "
        pkill -x bacula-fd
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
        ;;
     restart)
        $0 stop
diff -Naur bacula-2.2.5/platforms/solaris-orig/bacula-sd.in bacula-2.2.5/platforms/solaris/bacula-sd.in
--- bacula-2.2.5/platforms/solaris-orig/bacula-sd.in	2007-10-18 12:59:25.798391000 +0200
+++ bacula-2.2.5/platforms/solaris/bacula-sd.in	2007-10-18 13:45:40.309722000 +0200
@@ -13,16 +13,10 @@
     start)
        echo "Starting the Bacula Storage daemon: "
        @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
        ;;
     stop)
        echo "Stopping the Bacula Storage daemon: "
        pkill -x bacula-sd
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-sd
        ;;
     restart)
        $0 stop
diff -Naur bacula-2.2.5/platforms/solaris-orig/copyright bacula-2.2.5/platforms/solaris/copyright
--- bacula-2.2.5/platforms/solaris-orig/copyright	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/copyright	2007-10-18 13:01:06.269163000 +0200
@@ -0,0 +1,28 @@
+
+   Bacula - The Network Backup Solution
+
+   Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+
+   The main author of Bacula is Kern Sibbald, with contributions from
+   many others, a complete list can be found in the file AUTHORS.
+   This program is Free Software; you can redistribute it and/or
+   modify it under the terms of version two of the GNU General Public
+   License as published by the Free Software Foundation, a copy of which
+   is in the LICENSE file
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+   Bacula is a registered trademark of John Walker.
+   The licensor of Bacula is the Free Software Foundation Europe
+   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 ZC<rich,
+   Switzerland, email:ftf@fsfeurope.org.
+
+
diff -Naur bacula-2.2.5/platforms/solaris-orig/makepkg.sh bacula-2.2.5/platforms/solaris/makepkg.sh
--- bacula-2.2.5/platforms/solaris-orig/makepkg.sh	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/makepkg.sh	2007-10-18 13:39:25.057060000 +0200
@@ -0,0 +1,82 @@
+#!/bin/bash
+#
+#
+
+# make use of Studio 11 or 12 compiler
+#
+export CC=cc
+export CXX=CC
+
+INSTALL_BASE=/opt/bacula
+SBIN_DIR=$INSTALL_BASE/sbin
+MAN_DIR=$INSTALL_BASE/man
+SYSCONF_DIR=$INSTALL_BASE/etc
+SCRIPT_DIR=$INSTALL_BASE/etc
+WORKING_DIR=/var/bacula
+
+VERSION=2.2.5
+
+CWD=`pwd`
+# Try to guess the distribution base
+DISTR_BASE=`dirname \`pwd\` | sed -e 's@/platforms$@@'`
+echo "Distribution base:   $DISTR_BASE"
+
+TMPINSTALLDIR=/tmp/`basename $DISTR_BASE`-build
+echo "Temp install dir:  $TMPINSTALLDIR"
+echo "Install directory: $INSTALL_BASE"
+
+cd $DISTR_BASE
+
+if [ "x$1" = "xbuild" ]; then
+    ./configure --prefix=$INSTALL_BASE \
+            --sbindir=$SBIN_DIR \
+            --sysconfdir=$SYSCONF_DIR \
+            --mandir=$MAN_DIR \
+            --with-scriptdir=$SCRIPT_DIR \
+            --with-working-dir=$WORKING_DIR \
+            --with-subsys-dir=/var/lock/subsys \
+            --with-pid-dir=/var/run \
+            --enable-smartalloc \
+            --enable-conio \
+            --enable-readline \
+            --enable-client-only \
+            --disable-ipv6
+    
+    make
+fi
+
+if [ -d $TMPINSTALLDIR ]; then
+    rm -rf $TMPINSTALLDIR
+fi
+mkdir $TMPINSTALLDIR
+
+make DESTDIR=$TMPINSTALLDIR install
+
+# copy additional files to install-dir
+#
+
+
+# change conf-files that they won't be overwritten by install
+#
+cd $TMPINSTALLDIR/$SYSCONF_DIR
+for x in *.conf; do
+    mv ${x} ${x}-dist
+done
+
+
+# cd back to my start-dir
+#
+cd $CWD
+
+#cp prototype.master prototype
+sed -e "s|__PKGSOURCE__|$CWD|" prototype.master > prototype
+
+pkgproto $TMPINSTALLDIR/$INSTALL_BASE=. >> prototype
+
+pkgmk -o -d /tmp -b $TMPINSTALLDIR/$INSTALL_BASE -f prototype
+
+if [ $? = 0 ]; then
+    pkgtrans /tmp bacula-$VERSION.pkg Bacula
+    echo "Package has been created in /tmp"
+fi 
+
diff -Naur bacula-2.2.5/platforms/solaris-orig/pkginfo bacula-2.2.5/platforms/solaris/pkginfo
--- bacula-2.2.5/platforms/solaris-orig/pkginfo	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/pkginfo	2007-10-19 07:52:25.225520000 +0200
@@ -0,0 +1,12 @@
+PKG=Bacula
+NAME=Bacula Client
+ARCH=sparc
+VERSION=2.2.5
+MAXINST=1
+CATEGORY=application
+DESC=Bacula - It comes by night and sucks the essence from your computers
+VENDOR=http://www.bacula.org
+HOTLINE=none
+EMAIL=christian.masopust@siemens.com
+CLASSES=none
+BASEDIR=/opt/bacula
diff -Naur bacula-2.2.5/platforms/solaris-orig/postinstall bacula-2.2.5/platforms/solaris/postinstall
--- bacula-2.2.5/platforms/solaris-orig/postinstall	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/postinstall	2007-10-18 13:01:21.839285000 +0200
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# postinstall for Bacula
+#
+if [ ! -d /var/bacula ]; then
+    mkdir /var/bacula
+fi
+
+exit 0
diff -Naur bacula-2.2.5/platforms/solaris-orig/postremove bacula-2.2.5/platforms/solaris/postremove
--- bacula-2.2.5/platforms/solaris-orig/postremove	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/postremove	2007-10-18 13:01:21.849284000 +0200
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# postremove for Bacula
+#
+if [ ! -d /var/bacula ]; then
+    rm -rf /var/bacula
+fi
+
+exit 0
diff -Naur bacula-2.2.5/platforms/solaris-orig/prototype.master bacula-2.2.5/platforms/solaris/prototype.master
--- bacula-2.2.5/platforms/solaris-orig/prototype.master	1970-01-01 01:00:00.000000000 +0100
+++ bacula-2.2.5/platforms/solaris/prototype.master	2007-10-18 13:35:11.344904000 +0200
@@ -0,0 +1,24 @@
+#
+# Information files
+#
+i pkginfo=./pkginfo
+i copyright=./copyright
+i postinstall=./postinstall
+i postremove=./postremove
+#
+# Stuff that goes into the system areas
+#
+d none /etc ? ? ?
+d none /etc/init.d ? ? ?
+f none /etc/init.d/bacula=__PKGSOURCE__/bacula-fd 0754 root bin
+d none /etc/rc2.d ? ? ?
+s none /etc/rc2.d/S99bacula=/etc/init.d/bacula
+d none /etc/rc0.d ? ? ?
+s none /etc/rc0.d/K01bacula=/etc/init.d/bacula
+#
+d none /var ? ? ?
+d none /var/bacula 0755 root root
+#
+#
+# Dynamically added entries (by pkgproto)
+#
