1 # Contributor: David Andersen <archlinux@davidandersen.ws>
2 # Contributor: Cedric Chabanois <cchabanois@gmail.com>
6 pkgdesc="System for backing up computers to a server's disk."
7 url="http://backuppc.sourceforge.net/"
10 depends=('apache' 'mod_perl' 'perl' 'perl-libwww' 'perl-compress-zlib' 'perl-archive-zip' 'perl-xml-rss' 'perl-file-rsyncp' 'bzip2' 'tar' 'gzip' 'net-tools' 'par2cmdline' 'iputils' 'rsync' 'openssh')
11 optdepends=('smbclient')
12 source=(http://downloads.sourceforge.net/project/backuppc/backuppc/${pkgver}/BackupPC-${pkgver}.tar.gz
13 backuppc.rc backuppc-httpd.conf backuppc-httpd.rc)
14 install=backuppc.install
15 backup=('etc/BackupPC/config.pl' 'etc/BackupPC/hosts' 'etc/httpd/conf/backuppc-httpd.conf')
16 md5sums=('2334fafb8e03284225a9b8a7fb230012'
17 'bc7402cb4ec4b5f646e2794be67827d1'
18 'dab0bb18225d5898dc5ceb9fda39b76c'
19 'db7bccc7e704a2ad32fef8d3dfddf736')
21 cd $srcdir/BackupPC-${pkgver}
23 install -d -m 755 ${pkgdir}/var/opt
27 --cgi-dir /opt/BackupPC/www/cgi-bin \
28 --data-dir /var/opt/BackupPC \
29 --hostname __HOSTNAME__ \
30 --html-dir /opt/BackupPC/www \
31 --html-dir-url /BackupPC \
32 --install-dir /opt/BackupPC \
35 --uid-ignore || return 1
37 # change the owner as configure.pl would do if we do not use --no-set-perms and backuppc was 91:nobody
38 chown 91:nobody -R $pkgdir/etc/BackupPC
39 chown 91:nobody -R $pkgdir/opt/BackupPC/{bin,doc,www}
40 chown 91:nobody -R $pkgdir/var/{log/BackupPC,opt/BackupPC}
41 chmod 640 $pkgdir/etc/BackupPC/config.pl
42 chmod 755 $pkgdir/opt/BackupPC/{bin/*,lib/*,www/cgi-bin}
43 chmod 754 $pkgdir/opt/BackupPC/www/cgi-bin/BackupPC_Admin
45 install -D -m 755 $startdir/src/backuppc.rc $pkgdir/etc/rc.d/backuppc || return 1
46 install -D -m 644 $startdir/src/backuppc-httpd.conf $pkgdir/etc/httpd/conf/backuppc-httpd.conf || return 1
47 install -D -m 755 $startdir/src/backuppc-httpd.rc $pkgdir/etc/rc.d/backuppc-httpd || return 1
49 chmod 755 $pkgdir/{etc,var/log}