Commit 46c57179 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/dmvpn: make sure subpackages deps exists during buildtime

add the subpackages' dependencies to makedepends so they are built
before dmvpn.
parent 79796f8b
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment