summaryrefslogtreecommitdiff
path: root/main/ifupdown-ng/APKBUILD
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-08-20 05:09:15 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-08-20 05:09:15 -0600
commit5351f092017c917fb1cb7427306c6414693fe850 (patch)
tree4b277006bc8ce9fd15b0ada1346b4cfee6f09b02 /main/ifupdown-ng/APKBUILD
parent17e7cb99a4f59a83ad73b49eb4e5fbc66253a29c (diff)
downloadaports-5351f092017c917fb1cb7427306c6414693fe850.zip
main/ifupdown-ng: upgrade to 0.8.0
Diffstat (limited to 'main/ifupdown-ng/APKBUILD')
-rw-r--r--main/ifupdown-ng/APKBUILD33
1 files changed, 29 insertions, 4 deletions
diff --git a/main/ifupdown-ng/APKBUILD b/main/ifupdown-ng/APKBUILD
index e9eeb195cf2..40f83a9c255 100644
--- a/main/ifupdown-ng/APKBUILD
+++ b/main/ifupdown-ng/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=ifupdown-ng
-pkgver=0.7.0
+pkgver=0.8.0
pkgrel=0
pkgdesc="tools for managing network configuration"
url="https://github.com/ifupdown-ng/ifupdown-ng"
@@ -10,7 +10,7 @@ depends=""
checkdepends="kyua atf"
makedepends="scdoc"
install=""
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-iproute2 $pkgname-ppp"
source="https://distfiles.dereferenced.org/ifupdown-ng/ifupdown-ng-$pkgver.tar.xz"
builddir="$srcdir/ifupdown-ng-$pkgver"
@@ -21,6 +21,13 @@ builddir="$srcdir/ifupdown-ng-$pkgver"
# 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
@@ -31,7 +38,25 @@ check() {
}
package() {
- make DESTDIR="$pkgdir" EXECUTOR_SCRIPTS_OPT="" EXECUTOR_SCRIPTS_STUB="$_executor_stubs" install install_docs
+ 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="329460a51443e5a1aedd762e46f564a7cbdc7108ccdde571891939a526ee47961b5d6006774cd1cca31f30d35682fcf35427be50904b3d220133a9987b1cb708 ifupdown-ng-0.7.0.tar.xz"
+sha512sums="761450524b9c42cd6748fe40ab63f5098c88154211fbfe86a4f8cc7e58f48c9141f7aa81a9ce95c4d1332e73e57c3748115dc3212d2e00270342c418da3dc517 ifupdown-ng-0.8.0.tar.xz"