aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xapian-omega/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-11-05 15:17:39 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-11-05 15:17:39 +0000
commit89d385775cd9723a848618b5c019086752f3e3e1 (patch)
treeb705a53e35bfff8f66d661bf0a464e3b6326dbbc /testing/xapian-omega/APKBUILD
parent88098441002a4b8c34c481698fad63001a5101ca (diff)
downloadaports-89d385775cd9723a848618b5c019086752f3e3e1.tar.bz2
aports-89d385775cd9723a848618b5c019086752f3e3e1.tar.xz
testing/xapian-omega: added path creation from conf file
Diffstat (limited to 'testing/xapian-omega/APKBUILD')
-rw-r--r--testing/xapian-omega/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/testing/xapian-omega/APKBUILD b/testing/xapian-omega/APKBUILD
index 0592a1dbca..e766965d0c 100644
--- a/testing/xapian-omega/APKBUILD
+++ b/testing/xapian-omega/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-omega
pkgver=1.2.12
-pkgrel=0
+pkgrel=1
pkgdesc="Indexers and CGI search frontend for Xapian"
url="http://www.xapian.org/"
arch="all"
@@ -17,13 +17,14 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
sed -i -e "s/std::getchar/getchar/g" urldecode.h
+ sed -i -e "s/template_dir.*/template_dir \/usr\/share\/omega\/templates/g" omega.conf
}
build() {
cd "$_builddir"
./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
--prefix=/usr \
- --sysconfdir=/etc \
+ --sysconfdir=/etc/$pkgname \
--enable-static=no
make || return 1
}
@@ -31,6 +32,13 @@ build() {
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install || return 1
+ install -Dm755 "$srcdir"omega.conf "$pkgdir"/etc/$pkgname/omega.conf
+ mkdir -p "$pkgdir"/var/log/omega
+ mkdir -p "$pkgdir"/var/lib/omega/cdb
+ mkdir -p "$pkgdir"/var/lib/omega/data
+ for f in templates images; do
+ install -d "$pkgdir"/usr/share/omega/$f && cp -ar $f/* "$pkgdir"/usr/share/omega/$f ;
+ done
}
md5sums="7eed3c1e9e6acb703d6587ed9a038265 xapian-omega-1.2.12.tar.gz"