diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-14 09:15:56 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-14 09:16:02 +0000 |
commit | 503990773d9741ba3ebec62e20839d37fb4e5a20 (patch) | |
tree | c9df405d0b7834d5fc3230db123214ba60ec7df5 | |
parent | 3004988688379ed3081a330ce659eb50a9473334 (diff) | |
download | aports-503990773d9741ba3ebec62e20839d37fb4e5a20.tar.bz2 aports-503990773d9741ba3ebec62e20839d37fb4e5a20.tar.xz |
testing/homer-api: install examples, scripts in doc subpkg
-rw-r--r-- | testing/homer-api/APKBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/testing/homer-api/APKBUILD b/testing/homer-api/APKBUILD index 288db5cc81..a8dd520402 100644 --- a/testing/homer-api/APKBUILD +++ b/testing/homer-api/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=homer-api pkgver=5.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="HOMER API" url="https://github.com/sipcapture/homer-api" arch="noarch" @@ -11,7 +11,7 @@ depends="perl perl-dbi perl-dbd-mysql" depends_dev= makedepends="$depends_dev" install= -subpackages= +subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/v$pkgver-api.tar.gz homer-move-config2etc.patch " @@ -31,9 +31,12 @@ build() { package() { cd "$_builddir" - mkdir -p "$pkgdir"/usr/share/webapps/homer-ui/api "$pkgdir"/etc/homer \ - "$pkgdir"/etc/periodic/hourly "$pkgdir"/usr/share/homer-api/scripts \ - "$pkgdir"/usr/share/homer-api/sql + mkdir -p "$pkgdir"/usr/share/webapps/homer-ui/api \ + "$pkgdir"/etc/homer \ + "$pkgdir"/etc/periodic/hourly \ + "$pkgdir"/usr/share/homer-api/scripts \ + "$pkgdir"/usr/share/homer-api/sql \ + "$pkgdir"/usr/share/doc/homer-api mv ./api/* "$pkgdir"/usr/share/webapps/homer-ui/api mv "$pkgdir"/usr/share/webapps/homer-ui/api/preferences.php \ "$pkgdir"/etc/homer/preferences.php @@ -45,6 +48,7 @@ package() { install -D -m755 scripts/homer_mysql_partrotate_unixtimestamp.pl \ "$pkgdir"/usr/share/homer-api/scripts/homer_mysql_partrotate_unixtimestamp.pl cp sql/* "$pkgdir"/usr/share/homer-api/sql + cp -R examples "$pkgdir"/usr/share/doc/homer-api } md5sums="c578e47b5c31ad723d4fa5a34c455f47 homer-api-5.0.1.tar.gz |