2017-07-07 10:02:17 +02:00
|
|
|
# Template file for 'ifupdown'
|
|
|
|
pkgname=ifupdown
|
2017-11-02 09:33:09 +01:00
|
|
|
version=0.8.29
|
2017-10-26 05:48:49 +02:00
|
|
|
revision=1
|
2017-07-07 10:02:17 +02:00
|
|
|
wrksrc=$pkgname
|
|
|
|
build_style=gnu-makefile
|
|
|
|
make_use_env=1
|
|
|
|
hostmakedepends="dpkg perl"
|
|
|
|
short_desc="High level tools to configure network interfaces"
|
2017-07-19 05:11:10 +02:00
|
|
|
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
|
2017-07-07 10:02:17 +02:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://tracker.debian.org/pkg/ifupdown"
|
2017-07-19 04:31:05 +02:00
|
|
|
distfiles="http://http.debian.net/debian/pool/main/i/ifupdown/ifupdown_${version}.tar.xz"
|
2017-11-02 09:33:09 +01:00
|
|
|
checksum=a0b5a49d9a287ebfc00ca18b530aa7dd7301231b81e2d91721e0c9a64d66ce30
|
2017-07-07 10:02:17 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|