aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning/APKBUILD
blob: 2a5466613d92d8c4533bc28a24089ca2f44f19a1 (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.3
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="509c06065e1a0103a1e8a12e2da91e18  acf-provisioning-0.9.3.tar.xz"
sha256sums="619ab1fdb13865a6bf4ecf7570089130be919575cb7067830e1eed096be7b5d5  acf-provisioning-0.9.3.tar.xz"
sha512sums="d7883c3858baa3d9cf10e167bfa3d465298a2004cdad4c91263182ea847b2a70976c82cb3e0fad1568ebb8db037183d0ab9a429d3decc8490a24b7ba777ebf6c  acf-provisioning-0.9.3.tar.xz"