void-packages/srcpkgs/dhcpcd/template

29 lines
907 B
Bash
Raw Normal View History

# Template file for 'dhcpcd'
pkgname=dhcpcd
2015-09-04 19:25:25 +00:00
version=6.9.3
2015-07-10 04:58:49 +00:00
revision=1
lib32disabled=yes
build_pie=yes
build_style=configure
2015-06-02 06:10:28 +00:00
configure_args="--prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --rundir=/run"
2014-10-18 07:02:15 +00:00
hostmakedepends="ntp pkg-config"
makedepends="libudev-devel"
conf_files="/etc/dhcpcd.conf"
short_desc="RFC2131 compliant DHCP client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2014-10-29 09:26:08 +00:00
license="2-clause-BSD"
2012-07-09 10:26:14 +00:00
homepage="http://roy.marples.name/projects/dhcpcd"
2015-07-10 04:58:49 +00:00
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-${version}.tar.xz"
2015-09-04 19:25:25 +00:00
checksum=6089471ed695fa62ac8351466b96b4b6365fd14ec455a120a6524663808eae53
2014-08-20 09:48:03 +00:00
pre_install() {
# make wpa_supplicant log to syslog rather than stdout
sed -i 's,-B,& -s,' dhcpcd-hooks/10-wpa_supplicant
}
post_install() {
2014-10-13 09:52:12 +00:00
vsv dhcpcd
vsv dhcpcd-eth0
# Enable controlgroup by default, to make dhcpcd-ui work.
sed -i 's,^#\(controlgroup.*\),\1,' ${DESTDIR}/etc/dhcpcd.conf
}