[csw-devel] SF.net SVN: gar:[14359] csw/mgar/pkg/bacula/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed Apr 20 20:54:42 CEST 2011


Revision: 14359
          http://gar.svn.sourceforge.net/gar/?rev=14359&view=rev
Author:   bdwalton
Date:     2011-04-20 18:54:42 +0000 (Wed, 20 Apr 2011)

Log Message:
-----------
bacula/trunk: add postinstall scripts for storage and file daemon packages

Modified Paths:
--------------
    csw/mgar/pkg/bacula/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/bacula/trunk/files/CSWbacula-fd.postinstall
    csw/mgar/pkg/bacula/trunk/files/CSWbacula-sd.postinstall

Modified: csw/mgar/pkg/bacula/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bacula/trunk/Makefile	2011-04-20 18:30:13 UTC (rev 14358)
+++ csw/mgar/pkg/bacula/trunk/Makefile	2011-04-20 18:54:42 UTC (rev 14359)
@@ -15,6 +15,8 @@
 DISTFILES += CSWbacula-doc.cswreleasenotes
 DISTFILES += README.CSW
 DISTFILES += CSWbacula-director.postinstall
+DISTFILES += CSWbacula-sd.postinstall
+DISTFILES += CSWbacula-fd.postinstall
 PATCHFILES += 0001-Update-AC_INIT-use-to-make-configure-handle-docdir.patch
 PATCHFILES += 0002-Clean-up-solaris-install-autostart-targets.patch
 

Added: csw/mgar/pkg/bacula/trunk/files/CSWbacula-fd.postinstall
===================================================================
--- csw/mgar/pkg/bacula/trunk/files/CSWbacula-fd.postinstall	                        (rev 0)
+++ csw/mgar/pkg/bacula/trunk/files/CSWbacula-fd.postinstall	2011-04-20 18:54:42 UTC (rev 14359)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+host=`hostname`
+conf=${PKG_INSTALL_ROOT}/etc/opt/csw/bacula/bacula-fd.conf
+template=${conf}.CSW
+
+if cmp -s ${conf} ${template}; then
+    echo "Massaging templated config files for first use..."
+    perl -pi -e "s/current9[sx]/$host/g" ${conf}
+fi

Added: csw/mgar/pkg/bacula/trunk/files/CSWbacula-sd.postinstall
===================================================================
--- csw/mgar/pkg/bacula/trunk/files/CSWbacula-sd.postinstall	                        (rev 0)
+++ csw/mgar/pkg/bacula/trunk/files/CSWbacula-sd.postinstall	2011-04-20 18:54:42 UTC (rev 14359)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+host=`hostname`
+conf=${PKG_INSTALL_ROOT}/etc/opt/csw/bacula/bacula-fd.conf
+template=${conf}.CSW
+
+if cmp -s ${conf} ${template}; then
+    echo "Massaging templated config files for first use..."
+    perl -pi -e "s/current9[sx]/$host/g" ${conf}
+fi


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list