diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-14 00:42:06 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-14 00:42:06 +0000 |
commit | ff1f095d7f1e0dbe55852883f04263b946ab5d23 (patch) | |
tree | bdd84d1da5402e03b0a3ad302db1d4cc26a52252 /main/slony1/APKBUILD | |
parent | a5024a0ef4bd0e853e7272cdad6f837039cd06cd (diff) | |
download | aports-ff1f095d7f1e0dbe55852883f04263b946ab5d23.tar.bz2 aports-ff1f095d7f1e0dbe55852883f04263b946ab5d23.tar.xz |
main/slony1: build fix
Diffstat (limited to 'main/slony1/APKBUILD')
-rw-r--r-- | main/slony1/APKBUILD | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/main/slony1/APKBUILD b/main/slony1/APKBUILD index 914058090d..ee14a82f21 100644 --- a/main/slony1/APKBUILD +++ b/main/slony1/APKBUILD @@ -18,30 +18,27 @@ source="http://main.slony.info/downloads/${pkgver%.*}/source/slony1-$pkgver.tar. default-config.patch " -_builddir="$srcdir"/slony1-$pkgver +builddir="$srcdir"/slony1-$pkgver + prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + update_config_guess || return 1 } build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ + --with-pgpkglibdir=/usr/lib/postgresql \ || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 share/slon.conf-sample "$pkgdir"/etc/slon.conf \ || return 1 |