[99717] trunk/dports/sysutils/bacula
macsforever2000 at macports.org
macsforever2000 at macports.org
Wed Nov 14 15:56:39 PST 2012
Revision: 99717
https://trac.macports.org/changeset/99717
Author: macsforever2000 at macports.org
Date: 2012-11-14 15:56:39 -0800 (Wed, 14 Nov 2012)
Log Message:
-----------
bacula: Add console_bat variant. (#36974)
Modified Paths:
--------------
trunk/dports/sysutils/bacula/Portfile
Added Paths:
-----------
trunk/dports/sysutils/bacula/files/patch-qt-console-osx.diff
Modified: trunk/dports/sysutils/bacula/Portfile
===================================================================
--- trunk/dports/sysutils/bacula/Portfile 2012-11-14 23:06:10 UTC (rev 99716)
+++ trunk/dports/sysutils/bacula/Portfile 2012-11-14 23:56:39 UTC (rev 99717)
@@ -30,9 +30,8 @@
port:zlib
# Comment out patchfiles in case they are needed in the future or for the non-client version which is completely untested at this point
-#patchfiles patch-configure.diff \
-# patch-base64-typecast.diff
-
+# patch-configure.diff \
+# patch-base64-typecast.diff
#post-patch {
# reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
#}
@@ -87,6 +86,25 @@
configure.args-append --enable-client-only
}
+variant console_bat description "Install BAT console GUI application" {
+ patchfiles patch-qt-console-osx.diff
+ depends_build-append port:tcp_wrappers \
+ port:makeicns
+ depends_lib-append port:qt4-mac \
+ port:qwt52
+ configure.args-append --enable-bat
+ post-patch {
+ system "makeicns -in ${worksrcpath}/src/qt-console/images/bat_icon.png -out ${worksrcpath}/src/qt-console/images/bat_icon.icns"
+ }
+ post-destroot {
+ file rename ${destroot}${prefix}/etc/bacula/bat.conf ${destroot}${prefix}/etc/bacula/bat.conf.example
+ # for now, copy manually until upstream provider fixes bat.app install routines
+ xinstall -m 755 -d ${destroot}${applications_dir}
+ copy ${worksrcpath}/src/qt-console/bat.app ${destroot}${applications_dir}/Bacula-BAT.app
+ }
+ notes "To use the Bacula BAT GUI, you'll need to configure \"${prefix}/etc/bacula/bat.conf\"."
+}
+
variant mysql5 conflicts client_only postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" {
depends_lib-append path:bin/mysql_config5:mysql5
configure.args-append --with-mysql
Added: trunk/dports/sysutils/bacula/files/patch-qt-console-osx.diff
===================================================================
--- trunk/dports/sysutils/bacula/files/patch-qt-console-osx.diff (rev 0)
+++ trunk/dports/sysutils/bacula/files/patch-qt-console-osx.diff 2012-11-14 23:56:39 UTC (rev 99717)
@@ -0,0 +1,15 @@
+diff -ur src/qt-console/bat.pro.in.orig src/qt-console/bat.pro.in
+--- src/qt-console/bat.pro.in.orig 2012-11-13 11:37:22.000000000 +0100
++++ src/qt-console/bat.pro.in 2012-11-13 11:36:23.000000000 +0100
+@@ -31,6 +31,10 @@
+ LIBS += @QWT_LDFLAGS@ @QWT_LIB@
+ }
+
++macx {
++ ICON = images/bat_icon.icns
++}
++
+ RESOURCES = main.qrc
+ MOC_DIR = moc
+ OBJECTS_DIR = obj
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121114/11eadec7/attachment.html>
More information about the macports-changes
mailing list