blob: 9a6e19bc35dbc55f7dd058820fd1dcb432a2965e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="backuppc"
_realname="BackupPC"
pkgver="3.2.0b1"
_realver="3.2.0beta1"
pkgrel=0
pkgdesc="High-performance, enterprise-grade backup system"
url="http://backuppc.sourceforge.net/"
license="GPL"
depends="perl busybox rsync"
makedepends=""
install="$pkgname.pre-install"
subpackages=""
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-beta/$_realver/$_realname-$_realver.tar.gz
configure.pl.patch"
prepare () {
cd "$srcdir/$_realname-$_realver"
mkdir -p "$pkgdir"/etc/BackupPC
mkdir -p "$pkgdir"/var/www/cgi-bin
patch -p2 < ../../configure.pl.patch
}
build() {
cd "$srcdir/$_realname-$_realver"
perl configure.pl \
--batch \
--backuppc-user=backuppc \
--bin-path bzip2=/usr/bin/bzip2 \
--bin-path cat=/bin/cat \
--bin-path df=/bin/df \
--bin-path tar=/bin/tar \
--bin-path hostname=/bin/hostname \
--bin-path nmblookup=/usr/bin/nmblookup \
--bin-path perl=/usr/bin/perl \
--bin-path ping=/bin/ping \
--bin-path rsync=/usr/bin/rsync \
--bin-path sendmail=/usr/bin/sendmail \
--bin-path smbclient=/usr/bin/smbclient \
--bin-path split=/usr/bin/split \
--bin-path ssh=/usr/bin/ssh \
--compress-level=3 \
--config-dir "$pkgdir"/etc/BackupPC \
--cgi-dir "$pkgdir"/var/www/cgi-bin \
--data-dir "$pkgdir"/var/lib/backup/data/BackupPC \
--hostname backuppc \
--html-dir "$pkgdir"/var/www/htdocs/BackupPC \
--html-dir-url /BackupPC \
--install-dir "$pkgdir"/usr/lib/BackupPC \
--log-dir "$pkgdir"/var/log/BackupPC \
--uid-ignore \
--no-set-perms || return 1
}
package() {
cd "$srcdir/$_realname-$_realver"
# make DESTDIR="$pkgdir" install
}
md5sums="34c85b43136954c81d543fa0a7b0b121 BackupPC-3.2.0beta1.tar.gz
f57ad7fdcce804f20f2fe82bee91e813 configure.pl.patch"
|