2009-03-06 08:18:38 +01:00
|
|
|
# Template file for 'dhcpcd'
|
|
|
|
pkgname=dhcpcd
|
2015-03-28 05:06:40 +01:00
|
|
|
version=6.8.1
|
|
|
|
revision=1
|
2014-03-29 15:32:57 +01:00
|
|
|
lib32disabled=yes
|
2015-03-04 19:44:01 +01:00
|
|
|
build_pie=yes
|
2014-09-17 08:21:31 +02:00
|
|
|
build_options="systemd"
|
2009-09-03 10:20:39 +02:00
|
|
|
build_style=configure
|
2014-11-08 08:34:24 +01:00
|
|
|
configure_args="--prefix=/usr --sysconfdir=/etc --rundir=/run"
|
2014-10-18 09:02:15 +02:00
|
|
|
hostmakedepends="ntp pkg-config"
|
2014-09-06 12:42:09 +02:00
|
|
|
makedepends="libudev-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/dhcpcd.conf"
|
2009-03-06 08:18:38 +01:00
|
|
|
short_desc="RFC2131 compliant DHCP client"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-10-29 10:26:08 +01:00
|
|
|
license="2-clause-BSD"
|
2012-07-09 12:26:14 +02:00
|
|
|
homepage="http://roy.marples.name/projects/dhcpcd"
|
|
|
|
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
|
2015-03-28 05:06:40 +01:00
|
|
|
checksum=27b60cbf726a8319e6f1e7691132082c9cdac473317ea47cb093d0dd3d32af82
|
2014-08-20 11:48:03 +02:00
|
|
|
|
2014-11-06 17:35:19 +01:00
|
|
|
pre_install() {
|
|
|
|
# make wpa_supplicant log to syslog rather than stdout
|
|
|
|
sed -i 's,-B,& -s,' dhcpcd-hooks/10-wpa_supplicant
|
|
|
|
}
|
2012-01-30 12:45:51 +01:00
|
|
|
post_install() {
|
2014-08-20 11:48:03 +02: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 11:52:12 +02:00
|
|
|
vsv dhcpcd
|
|
|
|
vsv dhcpcd-eth0
|
2014-12-18 09:05:17 +01:00
|
|
|
# Enable controlgroup by default, to make dhcpcd-ui work.
|
|
|
|
sed -i 's,^#\(controlgroup.*\),\1,' ${DESTDIR}/etc/dhcpcd.conf
|
2009-04-30 02:00:16 +02:00
|
|
|
}
|