diff options
-rw-r--r-- | testing/homer-api/APKBUILD | 42 | ||||
-rw-r--r-- | testing/homer-api/homer-move-config2etc.patch | 20 |
2 files changed, 25 insertions, 37 deletions
diff --git a/testing/homer-api/APKBUILD b/testing/homer-api/APKBUILD index b7fda17bcc..49070a6d96 100644 --- a/testing/homer-api/APKBUILD +++ b/testing/homer-api/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: pkgname=homer-api -pkgver=5.0.1 -pkgrel=2 +pkgver=5.0.6 +pkgrel=0 pkgdesc="HOMER API" url="https://github.com/sipcapture/homer-api" arch="noarch" @@ -12,25 +12,16 @@ depends_dev= makedepends="$depends_dev" install= subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/v$pkgver-api.tar.gz - homer-move-config2etc.patch - " - - -_builddir="$srcdir"/$pkgname-$pkgver-api - -prepare() { - cd "$_builddir" - patch -p1 < ../homer-move-config2etc.patch -} +source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/$pkgver.tar.gz + homer-move-config2etc.patch" +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" return 0 } package() { - cd "$_builddir" + cd "$builddir" mkdir -p "$pkgdir"/usr/share/webapps/homer-ui/api \ "$pkgdir"/etc/homer \ "$pkgdir"/etc/periodic/hourly \ @@ -38,22 +29,19 @@ package() { "$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 \ + mv "$pkgdir"/usr/share/webapps/homer-ui/api/preferences_example.php \ "$pkgdir"/etc/homer/preferences.php - mv "$pkgdir"/usr/share/webapps/homer-ui/api/configuration.php \ + mv "$pkgdir"/usr/share/webapps/homer-ui/api/configuration_example.php \ "$pkgdir"/etc/homer/configuration.php install -D -m755 scripts/homer_rotate "$pkgdir"/etc/periodic/daily/homer_rotate - install -D -m755 scripts/homer_mysql_new_table.pl \ - "$pkgdir"/usr/share/homer-api/scripts/homer_mysql_new_table.pl - install -D -m755 scripts/homer_mysql_partrotate_unixtimestamp.pl \ - "$pkgdir"/usr/share/homer-api/scripts/homer_mysql_partrotate_unixtimestamp.pl + mv scripts/*.pl "$pkgdir"/usr/share/homer-api/scripts 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 -726d5c5d8b9ad1b36966a0f6d651f364 homer-move-config2etc.patch" -sha256sums="092d691f480e5a9331d1e430f0d53328580ea5d7815583e898fa418db56847ad homer-api-5.0.1.tar.gz -e0eebbbaa8457c74eed2465b8e2eb3354fb0c327f3385a969ee59aa9c5bc0c5e homer-move-config2etc.patch" -sha512sums="5400df095e5148dfdb7a8bcbf251ed3fc6c6e6d7c38a1a839f5fb516345b0317f01c87f4879136416241d371debd4d1d0b2b521fadec9bf1d4f2f459865cb258 homer-api-5.0.1.tar.gz -c8966b28da2536678bbec624926fa5e78b4ec3612186c5b7a1d5744b26521ef13e70f6df6ad747cb1627cfb8a7e6d7bfaed0ef03690b6a63663399ce5a6a0c8a homer-move-config2etc.patch" +md5sums="16762b9eabfee68a5953b6df87f2c6e6 homer-api-5.0.6.tar.gz +bf091145599f5f4b0aff1e67992c6ba9 homer-move-config2etc.patch" +sha256sums="abe4ab89fe5d0d09d7b89f91316f6ae39a51195903099e73d7dff95d5bd23672 homer-api-5.0.6.tar.gz +12931c0a5e615fbcda519299d279069a5871d7a38e5c3cdd7eecfae24892f734 homer-move-config2etc.patch" +sha512sums="620185c19bd348ba68bad3a1992b7d673d29dcfb8a0aeea437a2d31e90f0a21cf6f46a43f0041a583a14d9403e1d8574c6040da1dba397ec2d955b8aba9010d8 homer-api-5.0.6.tar.gz +16cb6e0dab9ad838bac284d8f17b089fd6f1cd5171a92057a494094223094bd65302be46472175e66c741bf00803855e335d7939501aa41799cefc7df88776a0 homer-move-config2etc.patch" diff --git a/testing/homer-api/homer-move-config2etc.patch b/testing/homer-api/homer-move-config2etc.patch index 2fe0c493f0..5bdae0a14d 100644 --- a/testing/homer-api/homer-move-config2etc.patch +++ b/testing/homer-api/homer-move-config2etc.patch @@ -1,6 +1,6 @@ ---- a/api/configuration.php -+++ b/api/configuration.php -@@ -25,7 +25,7 @@ +--- homer-api-5.0.6/api/configuration_example.php ++++ homer-api-5.0.6.alpine/api/configuration_example.php +@@ -30,7 +30,7 @@ /* INCLUDE preferences */ @@ -9,8 +9,8 @@ endif; ---- a/api/index.php -+++ b/api/index.php +--- homer-api-5.0.6/api/index.php ++++ homer-api-5.0.6.alpine/api/index.php @@ -30,7 +30,7 @@ define('ROOT', realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR)); define('_HOMEREXEC', "1"); @@ -20,14 +20,14 @@ date_default_timezone_set(HOMER_TIMEZONE); ini_set('date.timezone', HOMER_TIMEZONE); ---- a/scripts/homer_rotate -+++ b/scripts/homer_rotate -@@ -5,7 +5,7 @@ +--- homer-api-5.0.6/scripts/homer_rotate ++++ homer-api-5.0.6.alpine/scripts/homer_rotate +@@ -3,7 +3,7 @@ # Set correct bin path if we are running as a cron job PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -bin_dir=`dirname $0` +bin_dir=/usr/share/homer-api/scripts - new_table="$bin_dir/homer_mysql_new_table.pl" - programm="$bin_dir/homer_mysql_partrotate_unixtimestamp.pl" + programm="$bin_dir/homer_mysql_rotate.pl" + config="$bin_dir/rotation.ini" |