Ticket #24301: bacula.patch

File bacula.patch, 4.2 KB (added by pokui@…, 14 years ago)

portfile patch for version 5.0.1

  • Portfile

    old new  
    44PortSystem 1.0
    55
    66name             bacula
    7 version          5.0.0
     7version          5.0.1
    88categories       sysutils
    99platforms        darwin
    1010license          GPL
     
    1818homepage         http://www.bacula.org/
    1919master_sites     sourceforge
    2020
    21 checksums        md5     68e008d2578a6d9a50af60439db17dcb \
    22                  sha1    371ee088e0869ddab67beb3bec9ce64531772b14 \
    23                  rmd160  790e9ed9435d5103d2ceb7ec544181b1bda4d3a9
     21checksums        md5     beb9f8da196b3c9ffb0356f087dbdb99 \
     22                 sha1    b6fd0c62d26c113d3bdccf69cd630b16d7261b5b \
     23                 rmd160  587f49794556fe2eeed55eb3aaedfc3a6861761c
    2424
    2525depends_build    port:gawk
    2626depends_lib      port:zlib \
     
    7575startupitem.start   "\[ -x \${BIN} \] && \${BIN} -c ${prefix}/etc/bacula/bacula-fd.conf"
    7676startupitem.stop    "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})"
    7777
    78 variant client_only conflicts mysql4 mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" {
     78variant client_only conflicts mysql4 mysql5 postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" {
    7979  configure.args-append --enable-client-only
    8080}
    8181
    82 variant mysql4 conflicts client_only mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 4 backend" {
     82variant mysql4 conflicts client_only mysql5 postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client and server with mysql 4 backend" {
    8383  depends_lib-append    port:mysql4
    8484  configure.args-append --with-mysql
    8585  configure.args-delete --without-mysql
    8686}
    8787
    88 variant mysql5 conflicts client_only mysql4 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" {
     88variant mysql5 conflicts client_only mysql4 postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" {
    8989  depends_lib-append    path:bin/mysql_config5:mysql5
    9090  configure.args-append --with-mysql
    9191  configure.args-delete --without-mysql
    9292}
    9393
    94 variant postgresql83 conflicts mysql4 mysql5 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.3 backend" {
     94variant postgresql83 conflicts mysql4 mysql5 postgresql84 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.3 backend" {
    9595  depends_lib-append    port:postgresql83
    9696  configure.args-append --with-postgresql
    9797  configure.args-delete --without-postgresql
    9898  configure.env-append PATH=${prefix}/lib/postgresql83/bin:$env(PATH)
    9999}
    100100
    101 variant sqlite2 conflicts client_only sqlite3 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 2 backend" {
     101variant postgresql84 conflicts mysql4 mysql5 postgresql83 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.4 backend" {
     102  depends_lib-append    port:postgresql84
     103  configure.args-append --with-postgresql
     104  configure.args-delete --without-postgresql
     105  configure.env-append PATH=${prefix}/lib/postgresql84/bin:$env(PATH)
     106}
     107
     108variant sqlite2 conflicts client_only sqlite3 mysql4 mysql5 postgresql83 postgresql84 description "Install bacula client and server with sqlite 2 backend" {
    102109  depends_lib-append    port:sqlite2
    103110  configure.args-append --with-sqlite=${prefix}
    104111  configure.args-delete --without-sqlite
    105112}
    106113
    107 variant sqlite3 conflicts client_only sqlite2 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 3 backend" {
     114variant sqlite3 conflicts client_only sqlite2 mysql4 mysql5 postgresql83 postgresql84 description "Install bacula client and server with sqlite 3 backend" {
    108115  depends_lib-append    port:sqlite3
    109116  configure.args-append --with-sqlite3=${prefix}
    110117  configure.args-delete --without-sqlite3
    111118}
    112119
    113 if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset postgresql83] && ![variant_isset sqlite2] && ![variant_isset sqlite3]} {
     120if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset sqlite2] && ![variant_isset sqlite3]} {
    114121  default_variants +client_only
    115122}
    116123