void-packages/srcpkgs/dhcpcd/template
Juan RP 82eda70e52 dhcpcd: /etc/dhcpcd.conf: enable controlgroup by default.
- Users in the wheel group will be able to control dhcpcd via dhcpcd-ui.
2014-12-18 09:06:13 +01:00

32 lines
1 KiB
Text

# Template file for 'dhcpcd'
pkgname=dhcpcd
version=6.6.6
revision=2
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=26bdbb0cc8313f7d0e6a1b073724ad1315cfe7ae50b31d147e16990f7b7c2321
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
# Enable controlgroup by default, to make dhcpcd-ui work.
sed -i 's,^#\(controlgroup.*\),\1,' ${DESTDIR}/etc/dhcpcd.conf
}