aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning/APKBUILD
blob: 80c13c7b254f3f933599b4df56d31b77e100d270 (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.7.5
pkgrel=0
pkgdesc="ACF for provisioning templated configs to devices"
url="http://git.alpinelinux.org/cgit/acf-provisioning"
arch="noarch"
license="GPL-2"
depends="acf-core lua lua-sql-postgres postgresql-client lua-posixtz"
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="371bc206ffc457bed7c4be6ae467af9b  acf-provisioning-0.7.5.tar.xz"
sha256sums="10c8dc539c204a507a03136e251407f5df59835a747075ae454a70a01a86165c  acf-provisioning-0.7.5.tar.xz"
sha512sums="b15b4ca20cde1f74ae084f59269668ad1356e3f9aa4e5c3543bea9b8409898e2bed6419da6d44542575f1540eb789484c6005178656d96120acc093d4b6b4f41  acf-provisioning-0.7.5.tar.xz"