aboutsummaryrefslogtreecommitdiffstats
path: root/testing/homer-api
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-02-13 13:33:52 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-02-13 13:34:04 +0200
commit47407f929092502aab6386b14f9caefe181a6569 (patch)
tree8820081cff17ef406512f18682525152e7cd706c /testing/homer-api
parent839afb099822ab3887e45e02127bffaea8e6b2a6 (diff)
downloadaports-47407f929092502aab6386b14f9caefe181a6569.tar.bz2
aports-47407f929092502aab6386b14f9caefe181a6569.tar.xz
testing/homer-api: split database-related files to subpackage
API not needed on database nodes
Diffstat (limited to 'testing/homer-api')
-rw-r--r--testing/homer-api/APKBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/testing/homer-api/APKBUILD b/testing/homer-api/APKBUILD
index d811825e2c..5af455d5ac 100644
--- a/testing/homer-api/APKBUILD
+++ b/testing/homer-api/APKBUILD
@@ -2,16 +2,16 @@
# Maintainer:
pkgname=homer-api
pkgver=5.0.6
-pkgrel=2
+pkgrel=3
pkgdesc="HOMER API"
url="https://github.com/sipcapture/homer-api"
arch="noarch"
license="GPL"
-depends="perl perl-dbi perl-dbd-mysql php5-pdo_mysql"
+depends="homer-db php5-pdo_mysql"
depends_dev=
makedepends="$depends_dev"
install=
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc homer-db"
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/$pkgver.tar.gz
rotation-ini-path.patch"
builddir="$srcdir"/$pkgname-$pkgver
@@ -27,9 +27,6 @@ package() {
mkdir -p "$appdir" \
"$pkgdir"/etc/homer \
- "$pkgdir"/etc/periodic/daily \
- "$pkgdir"/usr/bin \
- "$pkgdir"/usr/share/homer-api/sql \
"$pkgdir"/usr/share/doc/homer-api
mv api "$appdir"
@@ -39,14 +36,26 @@ package() {
ln -s /etc/homer/$file.php "$appdir"/api
done
- mv scripts/homer_* "$pkgdir"/usr/bin
- install -m644 scripts/rotation.ini "$pkgdir"/etc/homer
- ln -s /usr/bin/homer_rotate "$pkgdir"/etc/periodic/daily
-
- cp sql/* "$pkgdir"/usr/share/homer-api/sql
cp -R examples "$pkgdir"/usr/share/doc/homer-api
}
+db() {
+ depends="perl perl-dbi perl-dbd-mysql"
+
+ cd "$builddir"
+ mkdir -p \
+ "$subpkgdir"/etc/periodic/daily \
+ "$subpkgdir"/usr/bin \
+ "$subpkgdir"/usr/share/homer-db
+
+ install -D -m 644 scripts/rotation.ini \
+ "$subpkgdir"/etc/homer/rotation.ini
+ cp -p sql/* "$subpkgdir"/usr/share/homer-db
+
+ cp -p scripts/homer_* "$subpkgdir"/usr/bin
+ ln -s /usr/bin/homer_rotate "$subpkgdir"/etc/periodic/daily
+}
+
md5sums="16762b9eabfee68a5953b6df87f2c6e6 homer-api-5.0.6.tar.gz
5e336b2b7eedfa20961dba21019e97cf rotation-ini-path.patch"
sha256sums="abe4ab89fe5d0d09d7b89f91316f6ae39a51195903099e73d7dff95d5bd23672 homer-api-5.0.6.tar.gz