dhcpcd: install to /usr.

This commit is contained in:
Juan RP 2012-02-29 13:04:04 +01:00
parent e9f94e292c
commit f6995cfc88
3 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@ Wants=network.target
Before=network.target
[Service]
ExecStart=/sbin/dhcpcd -q -B
ExecStart=/usr/sbin/dhcpcd -q -B
[Install]
WantedBy=multi-user.target

View File

@ -4,8 +4,8 @@ Wants=network.target
Before=network.target
[Service]
ExecStart=/sbin/dhcpcd -q -B %I
ExecStop=/sbin/dhcpcd -k %I
ExecStart=/usr/sbin/dhcpcd -q -B %I
ExecStop=/usr/sbin/dhcpcd -k %I
[Install]
Alias=multi-user.target.wants/dhcpcd@eth0.service

View File

@ -1,10 +1,11 @@
# Template file for 'dhcpcd'
pkgname=dhcpcd
version=5.5.4
revision=1
homepage="http://roy.marples.name/projects/dhcpcd"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
build_style=configure
configure_args="--libexecdir=/lib/dhcpcd"
configure_args="--prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --rundir=/run"
short_desc="RFC2131 compliant DHCP client"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Simplified BSD"
@ -22,7 +23,7 @@ Add_dependency build ntp
conf_files="/etc/dhcpcd.conf"
post_install() {
chmod 755 ${DESTDIR}/sbin/dhcpcd
chmod 755 ${DESTDIR}/usr/sbin/dhcpcd
vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system
vinstall ${FILESDIR}/dhcpcd@.service 644 lib/systemd/system
}