aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning/APKBUILD
blob: 37df33c3dab0654054567e0062688432d08289a4 (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.0
pkgrel=2
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="07e6d84aa9fb3f84b2a7af31e2d49100  acf-provisioning-0.9.0.tar.xz"
sha256sums="df8a5a67fe9ad2b032a68cd1981c363968e483b1cad0a9eb531195fcb4986859  acf-provisioning-0.9.0.tar.xz"
sha512sums="1f6cbb3e98bc9ad26eec2275d1e8dd0d3b7033bc4d222a4fda75452f51314c25287a78c239b52a8fbf436afc7967f82684409e5a7303bf653ebfbf304fe4890f  acf-provisioning-0.9.0.tar.xz"