blob: 3dd385d216b0c276f089e85895e6ea1fa5d623fc (
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
61
62
63
|
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=ifupdown-ng
pkgver=0.8.0
pkgrel=1
pkgdesc="tools for managing network configuration"
url="https://github.com/ifupdown-ng/ifupdown-ng"
arch="all"
license="ISC"
depends=""
checkdepends="kyua atf"
makedepends="scdoc"
install=""
install_if="alpine-base"
subpackages="$pkgname-doc $pkgname-iproute2 $pkgname-ppp"
source="https://distfiles.dereferenced.org/ifupdown-ng/ifupdown-ng-$pkgver.tar.xz"
builddir="$srcdir/ifupdown-ng-$pkgver"
# We only install the core executors right now. The other executors are
# still being ported to run under ifupdown-ng natively, and so we will
# use the ifupdown scripts for now for those cases. However, it is nice
# to make the automatic dependency resolution work, and ifupdown-ng
# provides some stubs to enable that.
_executor_stubs="bridge bond vlan"
# These are optional executors which do not conflict with what we are
# presently shipping. These executors require iproute2.
_executor_iproute2="vrf gre"
# These are all optional executors we plan to use.
_executor_opt="ppp $_executor_iproute2"
build() {
make
make docs
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" EXECUTOR_SCRIPTS_OPT="$_executor_opt" EXECUTOR_SCRIPTS_STUB="$_executor_stubs" install install_docs
}
iproute2() {
pkgdesc="ifupdown-ng integration for iproute2"
depends="iproute2-minimal"
install_if="$pkgname $depends"
for exec in $_executor_iproute2; do
amove usr/libexec/ifupdown-ng/$exec
done
}
ppp() {
pkgdesc="ifupdown-ng integration for ppp"
depends="ppp-daemon"
install_if="$pkgname $depends"
amove usr/libexec/ifupdown-ng/ppp
}
sha512sums="761450524b9c42cd6748fe40ab63f5098c88154211fbfe86a4f8cc7e58f48c9141f7aa81a9ce95c4d1332e73e57c3748115dc3212d2e00270342c418da3dc517 ifupdown-ng-0.8.0.tar.xz"
|