1 # Bacula (client): Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Matthew <pyther@pyther.net>
6 pkgname=${basename}-client
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"
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')
19 cd ${srcdir}/${basename}-${pkgver}
22 ./configure --prefix=/usr \
23 --enable-smartalloc --enable-client-only \
24 --enable-bat --enable-tray-monitor \
26 --sysconfdir=/etc/${basename} \
27 --with-scriptdir=/etc/${basename}/scripts || return 1
30 make DESTDIR=${pkgdir} install || return 1
33 chmod a+x ${pkgdir}/usr/sbin/bconsole
34 #chmod a+x ${pkgdir}/etc/${basename}/scripts/{bconsole}
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/