1 # Contributor: Calogero Lo Leggio <kalos@autistici.org>
6 pkgdesc="Bacula, the Network Backup Tool for Linux, Unix, Mac and Windows. [sqlite3 DB]"
8 url="http://www.bacula.org"
11 makedepends=('sqlite3')
12 conflicts=('bacula' 'bacula-postgresql')
13 backup=(etc/bacula/bacula-{dir,fd,sd}.conf etc/bacula/bconsole.conf)
14 install="bacula.install"
15 source=("http://downloads.sourceforge.net/sourceforge/bacula/bacula-$pkgver.tar.gz"
16 "bacula-dir" "bacula-fd" "bacula-sd")
17 md5sums=('9de254ae39cab0587fdb2f5d8d90b03b'
18 '384cdc720ba2c46dc942caced4f6a0d7'
19 '2b4895573289e6f71582e75fb1812a52'
20 '9bf6e300e81b1f23111dba1c85bc28b8')
23 cd "$srcdir/bacula-$pkgver"
25 ./configure --prefix=/usr \
26 --enable-build-dird --enable-build-stored \
27 --with-sqlite3 --without-tcp-wrappers --with-openssl \
28 --with-dir-user=bacula-dir --with-dir-group=bacula-dir \
29 --with-sd-user=bacula-sd --with-sd-group=bacula-sd \
30 --with-fd-user=bacula-fd --with-fd-group=bacula-fd \
31 --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts \
32 --with-archivedir=/usr/var/bacula/archive
38 cd "$srcdir/bacula-$pkgver"
39 make DESTDIR="$pkgdir" install
41 # install the init script
42 install -D -m755 $srcdir/bacula-dir $pkgdir/etc/rc.d/bacula-dir
43 install -D -m755 $srcdir/bacula-fd $pkgdir/etc/rc.d/bacula-fd
44 install -D -m755 $srcdir/bacula-sd $pkgdir/etc/rc.d/bacula-sd