void-packages/srcpkgs/dhcpcd/template

33 lines
1 KiB
Text
Raw Normal View History

# Template file for 'dhcpcd'
pkgname=dhcpcd
2015-01-31 08:34:40 +00:00
version=6.7.1
revision=3
lib32disabled=yes
2014-09-17 06:21:31 +00:00
build_options="systemd"
build_style=configure
2014-11-08 07:34:24 +00:00
configure_args="--prefix=/usr --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@gmail.com>"
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"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
2015-01-31 08:34:40 +00:00
checksum=cb65d3e783fa5484ed095bb940c3274a5a91d3ed4a9d9ae66a49d9637165bd98
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-08-20 09:48:03 +00:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/dhcpcd@.service 644 usr/lib/systemd/system
fi
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
}