aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-12-09 14:30:59 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-12-09 14:36:00 +0000
commite370ec7d0e0c5bf3025f0c29147d5694d28683cb (patch)
treed6a54ac61823c96b78f09cd093360d9528c8b1bf
parent6946709c241198413e927eebbb0688ee318f63c0 (diff)
downloadaports-e370ec7d0e0c5bf3025f0c29147d5694d28683cb.tar.gz
aports-e370ec7d0e0c5bf3025f0c29147d5694d28683cb.tar.bz2
aports-e370ec7d0e0c5bf3025f0c29147d5694d28683cb.tar.xz
main/bacula-client: use random generated passwd, automake in mdepends, minor cosmetic fixes.
(cherry picked from commit fb7df658ee61df62c7498734591a5e7f1c3c41b5)
-rw-r--r--main/bacula-client/APKBUILD28
1 files changed, 13 insertions, 15 deletions
diff --git a/main/bacula-client/APKBUILD b/main/bacula-client/APKBUILD
index e92850c65d..e2147a2fb4 100644
--- a/main/bacula-client/APKBUILD
+++ b/main/bacula-client/APKBUILD
@@ -3,34 +3,33 @@
pkgname="bacula-client"
_realname="bacula"
pkgver=5.0.3
-pkgrel=3
+pkgrel=4
pkgdesc="Client (File Daemon) of Bacula, a network based backup program"
url="http://www.bacula.org"
license="GPL2"
depends=""
-makedepends="autoconf libstdc++ openssl-dev ncurses-dev zlib-dev"
+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
-configure.in.patch
-os.m4.patch"
+ bacula-fd-init
+ bacula-fd-conf
+ configure.in.patch
+ os.m4.patch"
+
+_builddir="$srcdir/$_realname-$pkgver"
prepare () {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$_builddir"
patch -p1 < ../../configure.in.patch
patch -p1 < ../../os.m4.patch
}
build() {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$_builddir"
export LDFLAGS=
- # Need to run configure at least once
# in order to do not go into an infinite loop
- ./configure
- make configure
- make distclean
+ aclocal && autoconf && automake
./configure --prefix=/usr \
--sysconfdir=/etc/bacula \
@@ -48,13 +47,12 @@ build() {
--with-scriptdir=/etc/bacula/scripts \
--with-working-dir=/var/bacula \
--with-fd-user=root \
- --with-fd-group=root \
- --with-fd-password=ca4pheexie1aeC1hee3i
+ --with-fd-group=root
make || return 1
}
package() {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
install -Dm755 $srcdir/bacula-fd-init \