Ticket #44127: Portfile-7.0.4_2014-06-26.diff

File Portfile-7.0.4_2014-06-26.diff, 6.1 KB (added by robertoschwald (Robert Oschwald), 10 years ago)

New Portfile patch

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                bacula
    7 version             5.2.13
     7version             7.0.4
    88categories          sysutils
    99platforms           darwin
    1010license             {AGPL-3 OpenSSLException}
     
    1818homepage            http://www.bacula.org/
    1919master_sites        sourceforge
    2020
    21 checksums           rmd160  bcc168143c0eec5cb5e983f765935534379f4fcf \
    22                     sha256  a4bed458bf001889bd06bf31671b5d9908055a1d1e8113fd750ae4d326607ad8
     21checksums           rmd160  09d033f4ea3431f57d8018647af41c1ae417652d \
     22                    sha256  ebf802b843a95f6526e82dd181dff7cd7dc7d1fdc55cec8636e0fe3af69acf7e
    2323
    2424depends_build       port:pkgconfig
    2525depends_lib         port:gawk \
     
    2828                    port:ncurses \
    2929                    port:openssl \
    3030                    port:tcp_wrappers \
    31                     port:zlib
     31                    port:zlib \
     32                    port:lzo2
    3233
    3334configure.ccache    no
    3435configure.args      --mandir=${prefix}/share/man \
     
    4041                    --with-libintl-prefix=${prefix} \
    4142                    --with-openssl=${prefix} \
    4243                    --with-libiconv-prefix=${prefix} \
    43                     --with-readline=${prefix} \
    4444                    --with-archivedir=/var/tmp \
    4545                    --with-working-dir=${prefix}/var/bacula/working \
    4646                    --with-included-gettext=${prefix} \
    4747                    --enable-smartalloc \
    4848                    --enable-largefile \
    49                     --without-sqlite \
     49                    --enable-conio \
    5050                    --without-sqlite3 \
    5151                    --without-postgresql \
    5252                    --without-mysql \
    53                     --disable-gnome \
    54                     --disable-wx-console \
    55                     --disable-tray-monitor \
    5653                    --with-tcp-wrappers
    5754
    5855configure.cppflags-append   -I${prefix}/ncurses
     
    7370startupitem.start   "\[ -x \${BIN} \] && \${BIN} -c ${prefix}/etc/bacula/bacula-fd.conf"
    7471startupitem.stop    "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})"
    7572
    76 variant client_only conflicts mysql55 postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" {
     73variant client_only conflicts mysql51 mysql55 postgresql83 postgresql84 sqlite3 description "Install bacula client (bacula-fd) only" {
    7774    configure.args-append --enable-client-only
    7875}
    7976
     
    9592    notes "To use the Bacula BAT GUI, you'll need to configure \"${prefix}/etc/bacula/bat.conf\"."
    9693}
    9794
    98 variant mysql55 conflicts client_only postgresql83 postgresql84 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" {
     95variant mysql51 conflicts client_only mysql55 postgresql83 postgresql84 sqlite3 description "Install bacula client and server with mysql 5.1 backend" {
     96    depends_lib-append    port:mysql51
     97    configure.args-append --with-mysql=${prefix}/include/mysql51/mysql
     98    configure.args-delete --without-mysql
     99    configure.args-append --enable-batch-insert
     100    configure.cppflags-append   -I${prefix}/include/mysql51/mysql
     101
     102    patchfiles          patch-configure-mysql.diff
     103    post-patch {
     104                     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
     105    }
     106}
     107variant mysql55 conflicts client_only mysql51 postgresql83 postgresql84 sqlite3 description "Install bacula client and server with mysql 5.5 backend" {
    99108    depends_lib-append    port:mysql55
    100109    configure.args-append --with-mysql=${prefix}/include/mysql55/mysql
    101110    configure.args-delete --without-mysql
     111    configure.args-append --enable-batch-insert
    102112    configure.cppflags-append   -I${prefix}/include/mysql55/mysql
    103113
    104114    patchfiles          patch-configure-mysql.diff
     
    107117    }
    108118}
    109119
    110 variant postgresql83 conflicts mysql55 postgresql84 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.3 backend" {
     120variant postgresql83 conflicts mysql51 mysql55 postgresql84 sqlite3 client_only description "Install bacula client and server with postgresql 8.3 backend" {
    111121    depends_lib-append    port:postgresql83
    112122    configure.args-append --with-postgresql
    113123    configure.args-delete --without-postgresql
     124    configure.args-append --enable-batch-insert
    114125    configure.env-append  PATH=${prefix}/lib/postgresql83/bin:$env(PATH)
    115126}
    116127
    117 variant postgresql84 conflicts mysql55 postgresql83 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.4 backend" {
     128variant postgresql84 conflicts mysql51 mysql55 postgresql83 sqlite3 client_only description "Install bacula client and server with postgresql 8.4 backend" {
    118129    depends_lib-append    port:postgresql84
    119130    configure.args-append --with-postgresql
    120131    configure.args-delete --without-postgresql
     132    configure.args-append --enable-batch-insert
    121133    configure.env-append  PATH=${prefix}/lib/postgresql84/bin:$env(PATH)
    122134}
    123135
    124 variant sqlite2 conflicts client_only sqlite3 mysql55 postgresql83 postgresql84 description "Install bacula client and server with sqlite 2 backend" {
    125     depends_lib-append    port:sqlite2
    126     configure.args-append --with-sqlite=${prefix}
    127     configure.args-delete --without-sqlite
    128 }
    129 
    130 variant sqlite3 conflicts client_only sqlite2 mysql55 postgresql83 postgresql84 description "Install bacula client and server with sqlite 3 backend" {
     136variant sqlite3 conflicts client_only mysql51 mysql55 postgresql83 postgresql84 description "Install bacula client and server with sqlite 3 backend" {
    131137    depends_lib-append    port:sqlite3
    132138    configure.args-append --with-sqlite3=${prefix}
    133139    configure.args-delete --without-sqlite3
     
    135141
    136142default_variants +console_bat
    137143
    138 if {![variant_isset mysql55] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset sqlite2] && ![variant_isset sqlite3]} {
     144if {![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset sqlite3]} {
    139145    default_variants-append +client_only
    140146}