updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bacula-client / PKGBUILD
blobf267c029575bf0d8487a682787e1c9f9bed5175b
1 # Bacula (client): Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Matthew <pyther@pyther.net>
5 basename=bacula
6 pkgname=${basename}-client
7 pkgver=5.0.3
8 pkgrel=3
9 pkgdesc="A network backup tool for Linux, Unix, Mac and Windows. This is the client edition."
10 conflicts=("${basename}")
11 arch=("i686" "x86_64")
12 url="http://www.${basename}.org"
13 license=("GPL2")
14 backup=("etc/${basename}/bconsole.conf"
15                 "etc/${basename}/${basename}-fd.conf")
16 source=(http://downloads.sourceforge.net/project/bacula/bacula/${pkgver}/bacula-${pkgver}.tar.gz)
17 md5sums=('9de254ae39cab0587fdb2f5d8d90b03b')
18 build() {
19         cd ${srcdir}/${basename}-${pkgver}
21         # Build
22         ./configure --prefix=/usr \
23                 --enable-smartalloc --enable-client-only \
24                 --enable-bat --enable-tray-monitor \
25                 --without-openssl \
26                 --sysconfdir=/etc/${basename} \
27                 --with-scriptdir=/etc/${basename}/scripts || return 1
29         make || return 1
30         make DESTDIR=${pkgdir} install || return 1
32         # Permissions
33         chmod a+x ${pkgdir}/usr/sbin/bconsole
34         #chmod a+x ${pkgdir}/etc/${basename}/scripts/{bconsole}
36         # Daemons
37         mkdir -p ${pkgdir}/etc/rc.d/
38         ln -s /usr/sbin/${basename} ${pkgdir}/etc/rc.d/
39         #cp --preserve=mode ${startdir}/extra/${basename}* ${pkgdir}/etc/rc.d/