[csw-devel] SF.net SVN: gar:[14360] csw/mgar/pkg/bacula/trunk
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Wed Apr 20 21:14:23 CEST 2011
Revision: 14360
http://gar.svn.sourceforge.net/gar/?rev=14360&view=rev
Author: bdwalton
Date: 2011-04-20 19:14:23 +0000 (Wed, 20 Apr 2011)
Log Message:
-----------
bacula/trunk: add postinstall for console package too
Modified Paths:
--------------
csw/mgar/pkg/bacula/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/bacula/trunk/files/CSWbacula-console.postinstall
Modified: csw/mgar/pkg/bacula/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bacula/trunk/Makefile 2011-04-20 18:54:42 UTC (rev 14359)
+++ csw/mgar/pkg/bacula/trunk/Makefile 2011-04-20 19:14:23 UTC (rev 14360)
@@ -17,6 +17,7 @@
DISTFILES += CSWbacula-director.postinstall
DISTFILES += CSWbacula-sd.postinstall
DISTFILES += CSWbacula-fd.postinstall
+DISTFILES += CSWbacula-console.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-console.postinstall
===================================================================
--- csw/mgar/pkg/bacula/trunk/files/CSWbacula-console.postinstall (rev 0)
+++ csw/mgar/pkg/bacula/trunk/files/CSWbacula-console.postinstall 2011-04-20 19:14:23 UTC (rev 14360)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+host=`hostname`
+conf=${PKG_INSTALL_ROOT}/etc/opt/csw/bacula/bconsole.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