updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bacula-sqlite / PKGBUILD
blob392b3a61758829c5b72c352543685310bd30b55f
1 # Contributor: Calogero Lo Leggio <kalos@autistici.org>
3 pkgname=bacula-sqlite
4 pkgver=5.0.3
5 pkgrel=1
6 pkgdesc="Bacula, the Network Backup Tool for Linux, Unix, Mac and Windows. [sqlite3 DB]"
7 arch=('i686' 'x86_64')
8 url="http://www.bacula.org"
9 license=('GPL')
10 depends=('sqlite3')
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')
22 build() {
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
34   make 
37 package () {
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