aboutsummaryrefslogtreecommitdiffstats
path: root/main/bacula-client/APKBUILD
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:30:59 +0000
commitfb7df658ee61df62c7498734591a5e7f1c3c41b5 (patch)
treeb3379ad93ecd586c027585ab28b36bef8057b680 /main/bacula-client/APKBUILD
parentf5f96266feb28f91e79456046ef2bcf850a00c50 (diff)
downloadaports-fb7df658ee61df62c7498734591a5e7f1c3c41b5.tar.bz2
aports-fb7df658ee61df62c7498734591a5e7f1c3c41b5.tar.xz
main/bacula-client: use random generated passwd, automake in mdepends, minor cosmetic fixes.
Diffstat (limited to 'main/bacula-client/APKBUILD')
-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 \