From 61b020463b9e5a9d51ddbe8761bd9fefed2a8f1f Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Fri, 7 Jul 2017 01:02:17 -0700 Subject: [PATCH] New package: ifupdown-0.8.19 Closes: #6996 [via git-merge-pr] --- srcpkgs/ifupdown/files/15-ifupdown.sh | 3 ++ srcpkgs/ifupdown/patches/installdirs.patch | 21 ++++++++++ srcpkgs/ifupdown/template | 45 ++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 srcpkgs/ifupdown/files/15-ifupdown.sh create mode 100644 srcpkgs/ifupdown/patches/installdirs.patch create mode 100644 srcpkgs/ifupdown/template diff --git a/srcpkgs/ifupdown/files/15-ifupdown.sh b/srcpkgs/ifupdown/files/15-ifupdown.sh new file mode 100644 index 0000000000..d03850b81f --- /dev/null +++ b/srcpkgs/ifupdown/files/15-ifupdown.sh @@ -0,0 +1,3 @@ +msg "Bringing up the network..." +mkdir -p /run/network +ifup -a diff --git a/srcpkgs/ifupdown/patches/installdirs.patch b/srcpkgs/ifupdown/patches/installdirs.patch new file mode 100644 index 0000000000..e2f2c90202 --- /dev/null +++ b/srcpkgs/ifupdown/patches/installdirs.patch @@ -0,0 +1,21 @@ +--- Makefile.orig 2017-07-07 00:44:37.125611266 -0700 ++++ Makefile 2017-07-07 00:45:02.196667767 -0700 +@@ -22,12 +22,12 @@ + .SECONDARY: link.c ipx.c can.c meta.c inet6.c inet.c + + install : +- install -m 0755 -d ${BASEDIR}/sbin +- install -m 0755 ifup ${BASEDIR}/sbin +- ln -s /sbin/ifup ${BASEDIR}/sbin/ifdown +- ln -s /sbin/ifup ${BASEDIR}/sbin/ifquery +- install -D -m 0755 settle-dad.sh $(BASEDIR)/lib/ifupdown/settle-dad.sh +- install -D -m 0755 wait-for-ll6.sh $(BASEDIR)/lib/ifupdown/wait-for-ll6.sh ++ install -m 0755 -d ${BASEDIR}/usr/bin ++ install -m 0755 ifup ${BASEDIR}/usr/bin ++ ln -s /usr/bin/ifup ${BASEDIR}/usr/bin/ifdown ++ ln -s /usr/bin/ifup ${BASEDIR}/usr/bin/ifquery ++ install -D -m 0755 settle-dad.sh $(BASEDIR)/usr/lib/ifupdown/settle-dad.sh ++ install -D -m 0755 wait-for-ll6.sh $(BASEDIR)/usr/lib/ifupdown/wait-for-ll6.sh + + clean : + rm -f *.o $(patsubst %.defn,%.c,$(DEFNFILES)) *~ diff --git a/srcpkgs/ifupdown/template b/srcpkgs/ifupdown/template new file mode 100644 index 0000000000..f4d9f885ae --- /dev/null +++ b/srcpkgs/ifupdown/template @@ -0,0 +1,45 @@ +# Template file for 'ifupdown' +pkgname=ifupdown +version=0.8.19 +revision=1 +wrksrc=$pkgname +build_style=gnu-makefile +make_use_env=1 +hostmakedepends="dpkg perl" +short_desc="High level tools to configure network interfaces" +maintainer="Michael Aldridge " +license="GPL-2" +homepage="https://tracker.debian.org/pkg/ifupdown" +distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_0.8.19.tar.xz" +checksum=7296220f97f85fa7049d61cfadab578ebb2b574da8363014476ea65e0a81c31e + +make_dirs="/etc/network/interfaces.d 0755 root root + /etc/network/if-pre-up.d 0755 root root + /etc/network/if-up.d 0755 root root + /etc/network/if-down.d 0755 root root + /etc/network/if-post-down.d 0755 root root" +conf_files="/etc/network/interfaces" + +post_install() { + vman interfaces.5 + vman ifup.8 + + + for _i in examples/* ; do + vsconf $_i + done + + # Install the default interfaces file referenced from the man + # page + vmkdir etc/network + echo "source interfaces.d/*" > ${DESTDIR}/etc/network/interfaces + + # Install the core services task, this enables us to promise + # that the network is up before the rest of the services start + vmkdir etc/runit/core-services + vinstall ${FILESDIR}/15-ifupdown.sh 0644 etc/runit/core-services +} + +do_check() { + make check +}