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 Before=network.target
[Service] [Service]
ExecStart=/sbin/dhcpcd -q -B ExecStart=/usr/sbin/dhcpcd -q -B
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

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

View file

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