aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning/APKBUILD
blob: 8499594aa94bf0d3dfdcb481f7834fcfa98c3851 (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.5
pkgrel=0
pkgdesc="ACF for provisioning templated configs to devices"
url="http://git.alpinelinux.org/cgit/acf/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="f0fd4eb6efad9f05c5626238a338bd53  acf-provisioning-0.9.5.tar.xz"
sha256sums="94023968b4d8f4670a73840ad445f4def95896cb85ecaa448cf836468c7c45b1  acf-provisioning-0.9.5.tar.xz"
sha512sums="eea782a46e5942fc9f25fbc4d6654725b5df0708c682972cf9df49ad43a61264321be4b81c08cb0e4a7882e40ba9cf38f51bcb240e0f7489a86f95cbda679623  acf-provisioning-0.9.5.tar.xz"