Switch from Systemd to Enit
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
name: dhcpcd
|
name: dhcpcd
|
||||||
description: A DHCP and DHCPv6 client
|
description: A DHCP and DHCPv6 client
|
||||||
version: 10.0.6
|
version: 10.0.6
|
||||||
|
revision: 3
|
||||||
url: https://roy.marples.name/projects/dhcpcd
|
url: https://roy.marples.name/projects/dhcpcd
|
||||||
license: BSD-2-Clause
|
license: BSD-2-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","openssl","systemd"]
|
depends: ["glibc","openssl","udev"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all interfaces
|
|
||||||
Wants=network.target
|
|
||||||
Before=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/sbin/dhcpcd -q -B
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
name: dhcpcd
|
||||||
|
description: run dhcpcd on all clients
|
||||||
|
dependencies: ["udevd"]
|
||||||
|
type: background
|
||||||
|
start_cmd: dhcpcd -q -B
|
||||||
|
exit_method: kill
|
||||||
|
restart: true
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=dhcpcd on %I
|
|
||||||
Wants=network.target
|
|
||||||
Before=network.target
|
|
||||||
BindsTo=sys-subsystem-net-devices-%i.device
|
|
||||||
After=sys-subsystem-net-devices-%i.device
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/run/dhcpcd/%I.pid
|
|
||||||
ExecStart=/sbin/dhcpcd -q -w %I
|
|
||||||
ExecStop=/sbin/dhcpcd -x %I
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -20,7 +20,7 @@ build() {
|
|||||||
--libexecdir=/usr/lib/dhcpcd \
|
--libexecdir=/usr/lib/dhcpcd \
|
||||||
--dbdir=/var/lib/dhcpcd \
|
--dbdir=/var/lib/dhcpcd \
|
||||||
--runstatedir=/run \
|
--runstatedir=/run \
|
||||||
--disable-privsep \
|
--disable-privsep
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +34,6 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
mkdir -p "$BPM_OUTPUT"/usr/lib/systemd/system
|
mkdir -p "$BPM_OUTPUT"/etc/esvm/services/
|
||||||
install -m 644 ../dhcpcdat "$BPM_OUTPUT"/usr/lib/systemd/system/[email protected]
|
install -m 644 ../dhcpcd.esv "$BPM_OUTPUT"/etc/esvm/services/dhcpcd.esv
|
||||||
install -m 644 ../dhcpcd "$BPM_OUTPUT"/usr/lib/systemd/system/dhcpcd.service
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user