blob: 2bd9e744b675d3158caab67136dc2c4a108c38a0 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="bacula-client"
_realname="bacula"
pkgver=5.0.3
pkgrel=9
pkgdesc="Client (File Daemon) of Bacula, a network based backup program"
url="http://www.bacula.org"
arch="all"
license="GPL2"
depends=""
makedepends="autoconf automake libstdc++ openssl-dev ncurses-dev zlib-dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$_realname/$_realname/$pkgver/$_realname-$pkgver.tar.gz
bacula-fd-init
bacula-fd-conf
bacula-5.0.1-dsolink.patch
bacula-5.0.2-config.patch
bacula-5.0.2-openssl.patch
bacula-5.0.2-python27.patch
bacula-5.0.3-Makefile.patch
bacula-5.0.3-as-needed.patch
bacula-5.0.3-dsolink.patch
bacula-5.0.3-log-path.patch
bacula-5.0.3-mysql55.patch
bacula-5.0.3-sqlite-priv.patch
configure.in.patch
cxx.patch
os.m4.patch"
_builddir="$srcdir/$_realname-$pkgver"
prepare () {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
cd "$_builddir"/autoconf
autoconf && cp configure ../
}
build() {
cd "$_builddir"
export LDFLAGS=
# in order to do not go into an infinite loop
aclocal && autoconf && automake
./configure --prefix=/usr \
--sysconfdir=/etc/bacula \
--localstatedir=/var \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--infodir=/usr/share/info \
--with-pid-dir=/var/run \
--with-subsys-dir=/var/lock/subsys \
--enable-largefile \
--enable-client-only \
--enable-smartalloc \
--disable-nls \
--with-openssl=/usr/include/openssl \
--with-scriptdir=/etc/bacula/scripts \
--with-working-dir=/var/bacula \
--with-fd-user=root \
--with-fd-group=root
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -Dm755 $srcdir/bacula-fd-init \
$pkgdir/etc/init.d/bacula-fd
install -Dm644 $srcdir/bacula-fd-conf \
$pkgdir/etc/conf.d/bacula-fd
mkdir -p $pkgdir/var/run/bacula
find "$pkgdir" -iname *.la -delete
}
md5sums="9de254ae39cab0587fdb2f5d8d90b03b bacula-5.0.3.tar.gz
38b0fe78acdc5e65aec3a59578e98a20 bacula-fd-init
4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf
eee101f1b7b6b4f2c140898db5f8123b bacula-5.0.1-dsolink.patch
71f7f9c041eff045b2e97d141316c059 bacula-5.0.2-config.patch
4e310e84c7aba5b8d043758e0fa0088f bacula-5.0.2-openssl.patch
13e511698b5dc376e673c963a848d364 bacula-5.0.2-python27.patch
0ec20df57bb632ed729cfaf5d0a3ee33 bacula-5.0.3-Makefile.patch
76267747f4d2e85e033cc6793ccb6afa bacula-5.0.3-as-needed.patch
82d3a5c113c633bf0bd86ac3590baaff bacula-5.0.3-dsolink.patch
9bde1e9d43146af8985ff62d491d7218 bacula-5.0.3-log-path.patch
def9da0c090141dcef817d80c1a29fd1 bacula-5.0.3-mysql55.patch
9def0e68e3eb2f5f8b4c34108a248efd bacula-5.0.3-sqlite-priv.patch
ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch
1bfdbfea7a36d5503753414dffb953eb cxx.patch
cf7a2a4e972697f54364654c4e282b8b os.m4.patch"
|