diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-07-06 15:21:08 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-07-06 15:21:08 +0300 |
commit | 95ca92e319b7b5215eaa6b0476947f922e6d0b13 (patch) | |
tree | e025fb7d48cb734780f4def6d761e188a1a4dd4b /community/homer-api/APKBUILD | |
parent | cb2326db70e5fd238e985d18b55c6650d8ef3876 (diff) | |
download | aports-95ca92e319b7b5215eaa6b0476947f922e6d0b13.tar.bz2 aports-95ca92e319b7b5215eaa6b0476947f922e6d0b13.tar.xz |
community/homer-*: moved from testing
Diffstat (limited to 'community/homer-api/APKBUILD')
-rw-r--r-- | community/homer-api/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/community/homer-api/APKBUILD b/community/homer-api/APKBUILD new file mode 100644 index 0000000000..4e702e52fb --- /dev/null +++ b/community/homer-api/APKBUILD @@ -0,0 +1,61 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=homer-api +pkgver=5.0.6 +pkgrel=9 +pkgdesc="HOMER API" +url="https://github.com/sipcapture/homer-api" +arch="noarch" +license="GPL" +depends="homer-db php7-ctype php7-json php7-pdo_mysql php7-session" +makedepends="$depends_dev" +options="!check" +subpackages="$pkgname-doc homer-db" +source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/$pkgver.tar.gz + homer_db_init + rotation-ini-path.patch" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + return 0 +} + +package() { + cd "$builddir" + local file + local appdir=$pkgdir/usr/share/webapps/homer + + mkdir -p "$appdir" \ + "$pkgdir"/etc/homer \ + "$pkgdir"/usr/share/doc/homer-api + + mv api "$appdir" + + for file in configuration preferences; do + mv "$appdir"/api/${file}_example.php "$pkgdir"/etc/homer/$file.php + ln -s /etc/homer/$file.php "$appdir"/api + done + + cp -R examples "$pkgdir"/usr/share/doc/homer-api +} + +db() { + depends="mariadb-client perl perl-dbi perl-dbd-mysql" + + cd "$builddir" + mkdir -p \ + "$subpkgdir"/etc/periodic/daily \ + "$subpkgdir"/usr/share/homer-db + + install -D -m 644 scripts/rotation.ini \ + "$subpkgdir"/etc/homer/rotation.ini + cp -pr sql/* "$subpkgdir"/usr/share/homer-db + + install -D "$srcdir"/homer_db_init "$subpkgdir"/usr/bin/homer_db_init + cp -p scripts/homer_* "$subpkgdir"/usr/bin + ln -s /usr/bin/homer_rotate "$subpkgdir"/etc/periodic/daily +} + +sha512sums="620185c19bd348ba68bad3a1992b7d673d29dcfb8a0aeea437a2d31e90f0a21cf6f46a43f0041a583a14d9403e1d8574c6040da1dba397ec2d955b8aba9010d8 homer-api-5.0.6.tar.gz +e305af57a8445b45cb1e894aa34ceea3aeedb60740a636229d470d872f9ebb835e03985faeb685180a3e2c1eae29b49c841f8cbdb4236dbf0323f905a30b0bbb homer_db_init +0328c4f645601be150f877a31a8c245908da9d9972bed6e1af50f2c43055c9f47376da30c666b6eaa0310637414f65906b88f9a339a1dfa14e1864c70b36fa77 rotation-ini-path.patch" |