[57417] trunk/dports/sysutils/bacula/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Thu Sep 10 18:45:53 PDT 2009


Revision: 57417
          http://trac.macports.org/changeset/57417
Author:   macsforever2000 at macports.org
Date:     2009-09-10 18:45:53 -0700 (Thu, 10 Sep 2009)
Log Message:
-----------
Fix destroot on Snow Leopard. (#21247)

Modified Paths:
--------------
    trunk/dports/sysutils/bacula/Portfile

Modified: trunk/dports/sysutils/bacula/Portfile
===================================================================
--- trunk/dports/sysutils/bacula/Portfile	2009-09-11 01:28:22 UTC (rev 57416)
+++ trunk/dports/sysutils/bacula/Portfile	2009-09-11 01:45:53 UTC (rev 57417)
@@ -62,9 +62,22 @@
                     ${destroot}${prefix}/var/bacula/working
 
 # Don't overwrite preference files
-post-destroot {
-  file rename ${destroot}${prefix}/etc/bacula/bacula-fd.conf ${destroot}${prefix}/etc/bacula/bacula-fd.conf.example
-  file rename ${destroot}${prefix}/etc/bacula/bconsole.conf ${destroot}${prefix}/etc/bacula/bconsole.conf.example
+platform darwin {
+  if {${os.major} < 10} {
+    post-destroot {
+      file rename ${destroot}${prefix}/etc/bacula/bacula-fd.conf ${destroot}${prefix}/etc/bacula/bacula-fd.conf.example
+      file rename ${destroot}${prefix}/etc/bacula/bconsole.conf ${destroot}${prefix}/etc/bacula/bconsole.conf.example
+      file rename ${destroot}${prefix}/etc/bacula/mtx-changer.conf ${destroot}${prefix}/etc/bacula/mtx-changer.conf.example
+    }
+  }
+
+  if {${os.major} == 10} {
+    post-destroot {
+      file copy ${workpath}/${worksrcdir}/src/filed/bacula-fd.conf ${destroot}${prefix}/etc/bacula/bacula-fd.conf.example
+      file copy ${workpath}/${worksrcdir}/src/console/bconsole.conf ${destroot}${prefix}/etc/bacula/bconsole.conf.example
+      file rename ${destroot}${prefix}/etc/bacula/mtx-changer.conf ${destroot}${prefix}/etc/bacula/mtx-changer.conf.example
+    }
+  }
 }
 
 startupitem.create  yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090910/15f68118/attachment.html>


More information about the macports-changes mailing list