Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 38660

Show
Ignore:
Timestamp:
07/27/08 17:53:24 (4 months ago)
Author:
macsforever2000@…
Message:

Updated to version 2.4.1. Fixed so that it compiles filed and others now. Fixed datarootdir. Added macsforever2000 as maintainer. Added variants for client_only, mysql4, mysql5, postgresql83, sqlite2, sqlite3. Thanks to blb for help with compile issues.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/bacula/Portfile

    r33297 r38660  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 
    12# $Id$ 
    23 
    34PortSystem 1.0 
    45 
    5 name                    bacula 
    6 version                 2.2.6 
    7 categories              sysutils 
    8 platforms               darwin 
    9 maintainers             nomaintainer 
    10 description             network based backup program 
    11 long_description        Bacula is a set of computer programs that permit you to \ 
    12                         manage backup, recovery, and verification of computer data across \ 
    13                         a network of computers of different kinds. 
     6name             bacula 
     7version          2.4.1 
     8categories       sysutils 
     9platforms        darwin 
     10maintainers      macsforever2000 
    1411 
    15 homepage                http://www.bacula.org/ 
    16 master_sites    sourceforge 
    17 checksums               sha1 fc2f2d7605bd493b7d8b8423a0cbb24099674303 
     12description      network based backup program 
     13long_description Bacula is a set of computer programs that permit you to \ 
     14                 manage backup, recovery, and verification of computer data across \ 
     15                 a network of computers of different kinds. 
    1816 
    19 depends_build   port:gawk 
    20 depends_lib             port:zlib port:sqlite3 port:openssl port:libiconv port:gettext port:ncurses port:cdrtools 
     17homepage         http://www.bacula.org/ 
     18master_sites     sourceforge 
     19checksums        md5    077cb80b51cc13584b0960d863932af2 \ 
     20                 sha1   bc12629145bdbeb7dbab35e540edf79598346e57 \ 
     21                 rmd160 814eb81801fe88a0ffbe113dd97635342ff9dbb4 
    2122 
    22 configure.args  --mandir=${prefix}/share/man --with-pid-dir=${prefix}/var/run \ 
    23                                 --with-subsys-dir=${prefix}/var/run/subsys \ 
    24                                 --sysconfdir=${prefix}/etc/${name} \ 
    25                                 --with-libintl-prefix=${prefix} --with-openssl=${prefix} \ 
    26                                 --with-libiconv-prefix=${prefix} --with-sqlite3=${prefix} \ 
    27                                 --archivedir=/var/tmp \ 
    28                                 --enable-smartalloc --enable-largefile \ 
    29                                 --without-postgresql --without-mysql \ 
    30                                 --disable-gnome --disable-wx-console --disable-tray-monitor  
    31 configure.cppflags-append       -I${prefix}/ncurses 
    32 configure.ldflags-append        -lncurses 
     23depends_build    port:gawk 
     24depends_lib      port:zlib port:openssl port:libiconv port:gettext port:ncurses 
    3325 
    34 destroot.keepdirs       ${destroot}${prefix}/var/run/subsys \ 
    35                                 ${destroot}${prefix}/var/bacula/working 
     26configure.args   --mandir=${prefix}/share/man \ 
     27                 --datarootdir=${prefix}/share \ 
     28                 --with-pid-dir=${prefix}/var/run \ 
     29                 --with-subsys-dir=${prefix}/var/run/subsys \ 
     30                 --sysconfdir=${prefix}/etc/${name} \ 
     31                 --with-libintl-prefix=${prefix} \ 
     32                 --with-openssl=${prefix} \ 
     33                 --with-libiconv-prefix=${prefix} \ 
     34                 --with-readline=${prefix} \ 
     35                 --with-archivedir=/var/tmp \ 
     36                 --with-included-gettext=${prefix} \ 
     37                 --enable-smartalloc \ 
     38                 --enable-largefile \ 
     39                 --without-sqlite \ 
     40                 --without-sqlite3 \ 
     41                 --without-postgresql \ 
     42                 --without-mysql \ 
     43                 --disable-gnome \ 
     44                 --disable-wx-console \ 
     45                 --disable-tray-monitor 
     46configure.cppflags-append   -I${prefix}/ncurses 
     47configure.ldflags           "" 
    3648 
    37 startupitem.create      yes 
    38 startupitem.init        \ 
     49destroot.keepdirs   ${destroot}${prefix}/var/run/subsys \ 
     50                    ${destroot}${prefix}/var/bacula/working 
     51 
     52startupitem.create  yes 
     53startupitem.init    \ 
    3954"BIN=${prefix}/sbin/bacula-fd\nPID=${prefix}/var/run/bacula-fd.*.pid" 
    40 startupitem.start       \ 
     55startupitem.start   \ 
    4156"\[ -x \${BIN} \] && \${BIN} -c ${prefix}/etc/bacula/bacula-fd.conf" 
    42 startupitem.stop        \ 
     57startupitem.stop    \ 
    4358"\[ -r \${PID} \] && /bin/kill \$(cat \${PID})" 
    4459 
     60variant client_only conflicts mysql4 mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" { 
     61    configure.args-append --enable-client-only 
     62} 
     63 
     64variant mysql4 conflicts client-only mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 4 backend" { 
     65  depends_lib-append    port:mysql4 
     66  configure.args-append --with-mysql=${prefix} 
     67  configure.args-delete --without-mysql 
     68} 
     69 
     70variant mysql5 conflicts client-only mysql4 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" { 
     71  depends_lib-append    port:mysql5 
     72  configure.args-append --with-mysql=${prefix} 
     73  configure.args-delete --without-mysql 
     74} 
     75 
     76variant postgresql83 conflicts mysql4 mysql5 sqlite2 sqlite3 client-only description "Install bacula client and server with postgresql 8.3 backend" { 
     77  depends_lib-append    port:postgresql83 
     78  configure.args-append --with-postgresql=${prefix} 
     79  configure.args-delete --without-postgresql 
     80} 
     81 
     82variant sqlite2 conflicts client-only sqlite3 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 2 backend" { 
     83  depends_lib-append    port:sqlite2 
     84  configure.args-append --with-sqlite=${prefix} 
     85  configure.args-delete --without-sqlite 
     86} 
     87 
     88variant sqlite3 conflicts client-only sqlite2 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 3 backend" { 
     89  depends_lib-append    port:sqlite3 
     90  configure.args-append --with-sqlite3=${prefix} 
     91  configure.args-delete --without-sqlite3 
     92} 
     93 
     94default_variants        +client_only