blob: 3fb2b3789cfc3fe5ded18eb4e939133c07d76ac6 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=acf2
pkgver=0.3.0
pkgrel=0
pkgdesc="Alpine Configuration Framework, 2nd generation"
url="http://git.alpinelinux.org/cgit/kunkku/acf2/"
arch="noarch"
license="BSD"
depends="lua5.2-augeas lua5.2-b64 lua5.2-cjson lua5.2-crypto \
lua5.2-file-magic lua5.2-openrc lua5.2-posix lua5.2-stringy uwsgi \
uwsgi-lua"
makedepends=""
source="${url}snapshot/${pkgname}-${pkgver}.tar.bz2 $pkgname.initd"
_modules="network openssh"
subpackages=""
for _m in $_modules; do
subpackages="$subpackages acf2-mod-$_m:_$_m"
done
_builddir=$srcdir/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
return 0
}
package() {
cd "$_builddir"
make ROOT_DIR=$pkgdir install || return 1
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
}
_moddir=usr/share/lua/5.2/acf2/modules
_module() {
depends=$pkgname
mkdir -p "$subpkgdir/$_moddir"
mv "$pkgdir/$_moddir/$1.lua" "$subpkgdir/$_moddir" || return 1
}
for _m in $_modules; do
eval "_$_m() { _module $_m; }"
done
md5sums="3cf9af77ca0a10f831df5376980be6c7 acf2-0.3.0.tar.bz2
23fd4825db4365e646dbbf7a235db5f5 acf2.initd"
sha256sums="e856d977d337afc8a5190eff49e8fabd106b2a083127d8c7fa263b6f9e570156 acf2-0.3.0.tar.bz2
c1fa434a9b75ea10e9d0c3d48ec27c4dff2613e413d154486122ce9c1f011e23 acf2.initd"
sha512sums="bbe33aaa9b663142ca65020e3109db1caae6a8f3466b8c5b5c9b9a41b7ba6182b2bbae32a1206bcfcfa2bbffcfadead9cfe6a4b86c9ccb9a881b4581f16153be acf2-0.3.0.tar.bz2
6db21a9a4aa83c9ad75d1cf026d7e270ef38dce43a5aa340b61c149eb261e5bc587a282566fedc0cf96044425f49448eba8f37e1a7be96cda1a8369c2d831ada acf2.initd"
|