parent
ccd7ec3f19
commit
61b020463b
3 changed files with 69 additions and 0 deletions
3
srcpkgs/ifupdown/files/15-ifupdown.sh
Normal file
3
srcpkgs/ifupdown/files/15-ifupdown.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
msg "Bringing up the network..."
|
||||||
|
mkdir -p /run/network
|
||||||
|
ifup -a
|
21
srcpkgs/ifupdown/patches/installdirs.patch
Normal file
21
srcpkgs/ifupdown/patches/installdirs.patch
Normal file
|
@ -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)) *~
|
45
srcpkgs/ifupdown/template
Normal file
45
srcpkgs/ifupdown/template
Normal file
|
@ -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 <aldridge.mac@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in a new issue