void-packages/srcpkgs/dhcpcd/template
2014-10-18 09:02:15 +02:00

28 lines
913 B
Text

# Template file for 'dhcpcd'
pkgname=dhcpcd
version=6.5.1
revision=1
replaces="runit-void<20141013_2"
lib32disabled=yes
build_options="systemd"
build_style=configure
configure_args="--prefix=/usr --libexecdir=/usr/lib --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="Simplified BSD"
homepage="http://roy.marples.name/projects/dhcpcd"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
checksum=37d3860a3787b656ae2d1a64855e2dede4460956b979304c14192ada3b550e78
post_install() {
chmod 755 ${DESTDIR}/usr/sbin/dhcpcd
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
}