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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed Apr 20 19:37:40 CEST 2011


Revision: 14351
          http://gar.svn.sourceforge.net/gar/?rev=14351&view=rev
Author:   bdwalton
Date:     2011-04-20 17:37:40 +0000 (Wed, 20 Apr 2011)

Log Message:
-----------
bacula/trunk: place a new director specific postinstall script in the package

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

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

Modified: csw/mgar/pkg/bacula/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bacula/trunk/Makefile	2011-04-20 17:29:45 UTC (rev 14350)
+++ csw/mgar/pkg/bacula/trunk/Makefile	2011-04-20 17:37:40 UTC (rev 14351)
@@ -14,6 +14,7 @@
 DISTFILES  = $(DISTNAME).tar.gz
 DISTFILES += CSWbacula-doc.cswreleasenotes
 DISTFILES += README.CSW
+DISTFILES += CSWbacula-directory.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-director.postinstall
===================================================================
--- csw/mgar/pkg/bacula/trunk/files/CSWbacula-director.postinstall	                        (rev 0)
+++ csw/mgar/pkg/bacula/trunk/files/CSWbacula-director.postinstall	2011-04-20 17:37:40 UTC (rev 14351)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+host=`hostname`
+conf=${PKG_INSTALL_ROOT}/etc/opt/csw/bacula/bacula-dir.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