dhcpcd: added systemd build option.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'dhcpcd'
|
# Template file for 'dhcpcd'
|
||||||
pkgname=dhcpcd
|
pkgname=dhcpcd
|
||||||
version=6.4.3
|
version=6.4.3
|
||||||
revision=1
|
revision=2
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --rundir=/run"
|
configure_args="--prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --rundir=/run"
|
||||||
@@ -15,8 +15,12 @@ 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"
|
||||||
checksum=36ad01619ee81ac3815467d0157c38a14f5db464371326e97f719be362d5ab9c
|
checksum=36ad01619ee81ac3815467d0157c38a14f5db464371326e97f719be362d5ab9c
|
||||||
|
|
||||||
|
build_options="systemd"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
chmod 755 ${DESTDIR}/usr/sbin/dhcpcd
|
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
|
||||||
vinstall ${FILESDIR}/dhcpcd@.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/dhcpcd@.service 644 usr/lib/systemd/system
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user