diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/acf2/APKBUILD | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/testing/acf2/APKBUILD b/testing/acf2/APKBUILD index e5d934222a..69b79b1775 100644 --- a/testing/acf2/APKBUILD +++ b/testing/acf2/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> # Maintainer: pkgname=acf2 -pkgver=0.2.2 +pkgver=0.2.3 pkgrel=0 pkgdesc="Alpine Configuration Framework, 2nd generation" url="http://git.alpinelinux.org/cgit/kunkku/acf2/" @@ -12,6 +12,12 @@ depends="lua5.2-augeas lua5.2-cjson lua5.2-crypto lua5.2-openrc lua5.2-posix \ 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 @@ -34,9 +40,20 @@ package() { "$pkgdir"/etc/init.d/$pkgname || return 1 } -md5sums="4ae86bfe550f40df7f3fbcc1753abae2 acf2-0.2.2.tar.bz2 +_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="5a5f7b004efaf7832dda9d290a276d41 acf2-0.2.3.tar.bz2 23fd4825db4365e646dbbf7a235db5f5 acf2.initd" -sha256sums="e289be45f2a92614d112490e77c0e928fba5590a7ce07f4df41b2df9eeef3f4b acf2-0.2.2.tar.bz2 +sha256sums="8c26865795f25b9a2f4bd0d8f69e2c97f0eefab33e14a7015725168ee668f422 acf2-0.2.3.tar.bz2 c1fa434a9b75ea10e9d0c3d48ec27c4dff2613e413d154486122ce9c1f011e23 acf2.initd" -sha512sums="9ec06a1f1108735d7b9cf25857d5e5023ffdb06735a8483206ab2df01de2a917c4467222cc761e461d1a1c3c1cc7f1caf1ddfcf01889c50a3c75157c02562b2a acf2-0.2.2.tar.bz2 +sha512sums="d15ef5b0093146292d0831bbd00218ea5a8c9bb043012f13b89c07307dbed47068af8742c4296df0e37768b37271c9d51e99afadf8722d2e325d02b6f08da741 acf2-0.2.3.tar.bz2 6db21a9a4aa83c9ad75d1cf026d7e270ef38dce43a5aa340b61c149eb261e5bc587a282566fedc0cf96044425f49448eba8f37e1a7be96cda1a8369c2d831ada acf2.initd" |