aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-05-11 14:43:40 +0000
committerTed Trask <ttrask01@yahoo.com>2015-05-11 14:43:53 +0000
commit18fc35015b9a972647c108157d7adffea7b41f45 (patch)
treec4e05ccbe76c20352c3bc9e943f4cc7fb1a97cd6 /main/acf-provisioning
parent582da15a1296ea5f61730c19364584b97848197c (diff)
downloadaports-18fc35015b9a972647c108157d7adffea7b41f45.tar.bz2
aports-18fc35015b9a972647c108157d7adffea7b41f45.tar.xz
main/acf-provisioning: Fix haserl hashbang to include lua version
Diffstat (limited to 'main/acf-provisioning')
-rw-r--r--main/acf-provisioning/APKBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/acf-provisioning/APKBUILD b/main/acf-provisioning/APKBUILD
index 1d9f6c4f3c..da43822229 100644
--- a/main/acf-provisioning/APKBUILD
+++ b/main/acf-provisioning/APKBUILD
@@ -1,8 +1,9 @@
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
+_luaversion=5.2
pkgname=acf-provisioning
pkgver=0.6.1
-pkgrel=0
+pkgrel=1
pkgdesc="ACF for provisioning templated configs to devices"
url="http://git.alpinelinux.org/cgit/acf-provisioning"
arch="noarch"
@@ -15,6 +16,11 @@ source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
package() {
cd "$srcdir"/$pkgname-$pkgver
+
+ # fix shebang
+ sed -i -e "1s:#!/usr/bin/haserl :#!/usr/bin/haserl-lua$_luaversion :" \
+ cgi-bin/provisioning.cgi || return 1
+
make DESTDIR="$pkgdir" install
}