void-packages/srcpkgs/dhcpcd/template
Juan RP dcd645ef90 dhcpcd: send STOPPED reason to hooks if iface is not up and down.
- Process STOPPED reason in the wpa_supplicant hook to stop it when
the interface goes down.

This has been suggested by Roy Marples (dhcpcd author) in private email.
a final review this seems to DTRT.
2014-11-28 12:45:18 +01:00

30 lines
944 B
Text

# Template file for 'dhcpcd'
pkgname=dhcpcd
version=6.6.4
revision=3
lib32disabled=yes
build_options="systemd"
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --rundir=/run"
hostmakedepends="ntp pkg-config"
makedepends="libudev-devel"
conf_files="/etc/dhcpcd.conf"
short_desc="RFC2131 compliant DHCP client"
maintainer="Juan RP <xtraeme@gmail.com>"
license="2-clause-BSD"
homepage="http://roy.marples.name/projects/dhcpcd"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
checksum=67ba7cfe96089150da8e12badbcc5853daefce39417364887984948bad0a37d0
pre_install() {
# make wpa_supplicant log to syslog rather than stdout
sed -i 's,-B,& -s,' dhcpcd-hooks/10-wpa_supplicant
}
post_install() {
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/dhcpcd@.service 644 usr/lib/systemd/system
fi
vsv dhcpcd
vsv dhcpcd-eth0
}