vp-build/templates/dhcpcd/template
Juan RP 4e77f39a43 dhcpcd: use $openrc_services and its trigger.
--HG--
extra : convert_revision : c9ef97b1884d0755c8528546e30fe3c8e4a75dbc
2009-05-04 23:31:50 +02:00

36 lines
1010 B
Plaintext

# Template file for 'dhcpcd'
pkgname=dhcpcd
version=5.0.1
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
build_style=gnu_makefile
short_desc="RFC2131 compliant DHCP client"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=8d2a8caa411edf18e9689e54242c6f9874e476e8c20b371e4f4627e9938f466b
long_desc="
dhcpcd is a RFC 2131 compliant DHCP client. It's also a RFC 3927 compliant
IPv4LL (aka ZeroConf) client.
In layman's terms, dhcpcd runs on your machine and silently configures your
computer to work on the attached networks without trouble and mostly without
configuration."
Add_dependency run glibc
Add_dependency run OpenRC
conf_files="/etc/dhcpcd.conf"
openrc_services="dhcpcd default"
triggers="openrc-service"
pre_configure()
{
cd $wrksrc
sed -i 's/\/libexec/\/lib\/dhcpcd/' Makefile
sed -i 's/\/libexec/\/lib\/dhcpcd/' dhcpcd-hooks/Makefile
}
post_install()
{
# Install the OpenRC service
install -D -m755 ${FILESDIR}/dhcpcd.rc ${DESTDIR}/etc/init.d/dhcpcd
}