Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD Bacula Bat 5.0.3

By: a guest on Oct 1st, 2010  |  syntax: None  |  size: 1.39 KB  |  views: 349  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
  2. # Maintainer: Stephane Travostino <stephane.travostino@gmail.com>
  3. # Contributor: Calogero Lo Leggio <kalos@autistici.org>
  4.  
  5. pkgname=bacula-bat
  6. pkgver=5.0.3
  7. pkgrel=1
  8. pkgdesc="Bacula, the Network Backup Tool for Linux, Unix, Mac and Windows [qt console]"
  9. arch=(i686 x86_64)
  10. url="http://www.bacula.org"
  11. license=('GPL')
  12. depends=('qt' 'qwt')
  13. makedepends=('qt' 'qwt')
  14. backup=(etc/bacula/bat.conf)
  15. install="bat.install"
  16. source=("http://downloads.sourceforge.net/sourceforge/bacula/bacula-$pkgver.tar.gz")
  17. md5sums=('9de254ae39cab0587fdb2f5d8d90b03b')
  18.  
  19. build() {
  20.     cd "$startdir/src/bacula-$pkgver"
  21.  
  22.     ./configure --prefix=/usr --sbindir=/usr/bin \
  23.     --enable-client-only --enable-bat \
  24.     --with-x --with-tcp-wrappers --with-openssl \
  25.     --sysconfdir=/etc/ --with-scriptdir=/etc/bacula/scripts \
  26.     --with-archivedir=/usr/var/bacula/archive
  27.  
  28.     make || return 1
  29.  
  30.     # install only bat files
  31.     mkdir -p $startdir/pkg/etc/ $startdir/pkg/usr/bin/ $startdir/pkg/usr/man/man1
  32.     mkdir -p $startdir/pkg/etc/ $startdir/pkg/etc/bacula
  33.     install -m755 $startdir/src/bacula-$pkgver/src/qt-console/bat $startdir/pkg/usr/bin/bat
  34.     install -m644 $startdir/src/bacula-$pkgver/src/qt-console/bat.conf $startdir/pkg/etc/bacula/bat.conf
  35.     install -m644 $startdir/src/bacula-$pkgver/manpages/bat.1 $startdir/pkg/usr/man/man1/bat.1
  36. }