diff --git a/srcpkgs/ifupdown-ng/patches/fix-tests.patch b/srcpkgs/ifupdown-ng/patches/fix-tests.patch new file mode 100644 index 00000000000..90fe95c5986 --- /dev/null +++ b/srcpkgs/ifupdown-ng/patches/fix-tests.patch @@ -0,0 +1,37 @@ +--- a/tests/linux/tunnel_test ++++ b/tests/linux/tunnel_test +@@ -17,9 +17,9 @@ + atf_check -s exit:0 \ + -o match:"ip -4 tunnel add tun0" \ + -o match:"mode gre" \ +- -o match:"ttl '255'" \ +- -o match:"local '1.2.3.4'" \ +- -o match:"remote '5.6.7.8'" \ ++ -o match:"ttl 255" \ ++ -o match:"local 1.2.3.4" \ ++ -o match:"remote 5.6.7.8" \ + ${EXECUTOR} + } + +@@ -39,8 +39,8 @@ + atf_check -s exit:0 \ + -o match:"ip -4 link add foo" \ + -o match:"type gretap" \ +- -o match:"local '1.2.3.4'" \ +- -o match:"remote '5.6.7.8'" \ ++ -o match:"local 1.2.3.4" \ ++ -o match:"remote 5.6.7.8" \ + ${EXECUTOR} + } + +@@ -58,8 +58,8 @@ + atf_check -s exit:0 \ + -o match:"ip -6 link add foo" \ + -o match:"type gretap" \ +- -o match:"local '2001:db8::aaaa'" \ +- -o match:"remote '2001:db8::eeee'" \ ++ -o match:"local 2001:db8::aaaa" \ ++ -o match:"remote 2001:db8::eeee" \ + ${EXECUTOR} + } + diff --git a/srcpkgs/ifupdown-ng/template b/srcpkgs/ifupdown-ng/template new file mode 100644 index 00000000000..e8c32d3f8d1 --- /dev/null +++ b/srcpkgs/ifupdown-ng/template @@ -0,0 +1,25 @@ +# Template file for 'ifupdown-ng' +pkgname=ifupdown-ng +version=0.12.1 +revision=1 +build_style=gnu-makefile +make_build_args="all docs" +make_install_args="SBINDIR=/usr/bin" +hostmakedepends="scdoc" +checkdepends="kyua" +short_desc="Flexible ifup/ifdown implementation" +maintainer="Orphaned " +license="ISC" +homepage="https://github.com/ifupdown-ng/ifupdown-ng" +distfiles="https://github.com/ifupdown-ng/ifupdown-ng/archive/refs/tags/ifupdown-ng-${version}.tar.gz" +checksum=d42c8c18222efbce0087b92a14ea206de4e865d5c9dde6c0864dcbb2b45f2d85 + +conflicts="ifupdown" + +post_install() { + for man in doc/*.5 doc/*.7 doc/*.8; do + vman "$man" + done + + vlicense COPYING +}