46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
|
# 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
|
||
|
}
|