aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning/APKBUILD
blob: 9a827f8caf42439da8b41258cece07ea04883fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
_luaversion=5.2
pkgname=acf-provisioning
pkgver=0.9.4
pkgrel=0
pkgdesc="ACF for provisioning templated configs to devices"
url="http://git.alpinelinux.org/cgit/acf-provisioning"
arch="noarch"
license="GPL2"
depends="acf-core lua-sql-postgres postgresql-client lua-posixtz lua-xml"
makedepends=""
install=""
subpackages=""
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
}

md5sums="fb979b25ac8a60fd81c7cadde82c26ac  acf-provisioning-0.9.4.tar.xz"
sha256sums="527628f0d5c4396fc3d6dbe2981f0cdf6d5bedeab00e3fbdecc7af72c34de7e5  acf-provisioning-0.9.4.tar.xz"
sha512sums="13efc1099dc69b37a29f11bc752d1bba2201cb8c053a9dffae42ec1c52aec69d9f68842fb12253974bbb27d42a39686b545867158b4ef553db18e76971e729fa  acf-provisioning-0.9.4.tar.xz"