APKBUILD 878 Bytes
Newer Older
1 2
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
3
_luaversion=5.2
4
pkgname=acf-provisioning
5
pkgver=0.10.1
6
pkgrel=0
7
pkgdesc="ACF for provisioning templated configs to devices"
8
url="https://git.alpinelinux.org/cgit/acf/acf-provisioning"
9
arch="noarch"
10
license="GPL2"
11
depends="acf-core lua-sql-postgres postgresql-client lua-posixtz lua-xml"
12
makedepends=""
13
install=""
14
subpackages=""
15
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
16

17
package() {
18
	cd "$srcdir"/$pkgname-$pkgver
19 20 21 22

	# fix shebang
	sed -i -e "1s:#!/usr/bin/haserl :#!/usr/bin/haserl-lua$_luaversion :" \
		cgi-bin/provisioning.cgi || return 1
23

24 25 26
	make DESTDIR="$pkgdir" install
}

27
sha512sums="3e5678cb94ce8cd6ccd011aa1941173dd4b77811928299f2db3415dac4aab4a428ffc4dfcfcc462383ade2bc859c755683e147ccae01ef44a7b39249b7e0aaca  acf-provisioning-0.10.1.tar.xz"