void-packages/srcpkgs/dhcpcd/template

29 lines
928 B
Bash

# Template file for 'dhcpcd'
pkgname=dhcpcd
version=6.9.0
revision=3
lib32disabled=yes
build_pie=yes
build_style=configure
configure_args="--prefix=/usr --sbindir=/usr/bin --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@voidlinux.eu>"
license="2-clause-BSD"
homepage="http://roy.marples.name/projects/dhcpcd"
distfiles="http://ftp.osuosl.org/pub/blfs/conglomeration/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=1566a58ef785880c07762ff6c520e974cf42872be5fbb23b4520f4446b120a68
pre_install() {
# make wpa_supplicant log to syslog rather than stdout
sed -i 's,-B,& -s,' dhcpcd-hooks/10-wpa_supplicant
}
post_install() {
vsv dhcpcd
vsv dhcpcd-eth0
# Enable controlgroup by default, to make dhcpcd-ui work.
sed -i 's,^#\(controlgroup.*\),\1,' ${DESTDIR}/etc/dhcpcd.conf
}