aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-06-24 17:28:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-06-24 17:32:47 +0000
commit46c571794562ab1cc95f2f029ee719e85ba39e56 (patch)
treec095108ecafa68a2df6b757c9636429680bc3b9f
parent79796f8bace0d3ac93906fae8b15895e11fd8e9b (diff)
downloadaports-46c571794562ab1cc95f2f029ee719e85ba39e56.tar.gz
aports-46c571794562ab1cc95f2f029ee719e85ba39e56.tar.bz2
aports-46c571794562ab1cc95f2f029ee719e85ba39e56.tar.xz
main/dmvpn: make sure subpackages deps exists during buildtime
add the subpackages' dependencies to makedepends so they are built before dmvpn.
-rw-r--r--main/dmvpn/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/dmvpn/APKBUILD b/main/dmvpn/APKBUILD
index 4b504d2cd4..0da7361278 100644
--- a/main/dmvpn/APKBUILD
+++ b/main/dmvpn/APKBUILD
@@ -7,6 +7,11 @@ pkgdesc="Dynamic Multipoint VPN"
url="https://git.alpinelinux.org/cgit/dmvpn-tools/"
arch="noarch"
license="MIT"
+_lua_dmvpn_deps="lua-asn1"
+_dp_deps="lighttpd"
+_ca_deps="lua5.2 lua5.2-lyaml lua5.2-ossl lua5.2-posix lua5.2-sql-sqlite3
+ lua5.2-stringy lua-asn1"
+makedepends="$_lua_dmvpn_deps $_dp_deps $_ca_deps"
depends="augeas bind-tools lua5.2 lua5.2-cqueues lua5.2-lyaml lua5.2-ossl
lua5.2-posix lua5.2-struct lua-dmvpn quagga strongswan tunnel"
subpackages="dmvpn-ca dmvpn-crl-dp lua-dmvpn"
@@ -33,8 +38,7 @@ package() {
}
ca() {
- depends="lua5.2 lua5.2-lyaml lua5.2-ossl lua5.2-posix lua5.2-sql-sqlite3
- lua5.2-stringy lua-asn1 lua-dmvpn"
+ depends="$_ca_deps lua-dmvpn"
cd "$builddir"
@@ -44,7 +48,7 @@ ca() {
}
dp() {
- depends=lighttpd
+ depends="$_dp_deps"
local bin=/usr/bin/dmvpn-crl-update
install -D "$builddir"/dmvpn-crl-update "$subpkgdir$bin"
@@ -55,7 +59,7 @@ dp() {
}
dmvpn() {
- depends=lua-asn1
+ depends="$_lua_dmvpn_deps"
cd "$builddir"
install -D -m 644 dmvpn.lua "$subpkgdir"/usr/share/lua/5.2/dmvpn.lua