Switch from Systemd to Enit

This commit is contained in:
2025-03-12 12:49:39 +02:00
parent 9d2d2413a6
commit a7607ac5a6
5 changed files with 12 additions and 30 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
name: dhcpcd
description: A DHCP and DHCPv6 client
version: 10.0.6
revision: 3
url: https://roy.marples.name/projects/dhcpcd
license: BSD-2-Clause
architecture: any
depends: ["glibc","openssl","systemd"]
depends: ["glibc","openssl","udev"]
type: source
-10
View File
@@ -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
+7
View File
@@ -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
-15
View File
@@ -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
+3 -4
View File
@@ -20,7 +20,7 @@ build() {
--libexecdir=/usr/lib/dhcpcd \
--dbdir=/var/lib/dhcpcd \
--runstatedir=/run \
--disable-privsep \
--disable-privsep
make
}
@@ -34,7 +34,6 @@ check() {
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
mkdir -p "$BPM_OUTPUT"/usr/lib/systemd/system
install -m 644 ../dhcpcdat "$BPM_OUTPUT"/usr/lib/systemd/system/[email protected]
install -m 644 ../dhcpcd "$BPM_OUTPUT"/usr/lib/systemd/system/dhcpcd.service
mkdir -p "$BPM_OUTPUT"/etc/esvm/services/
install -m 644 ../dhcpcd.esv "$BPM_OUTPUT"/etc/esvm/services/dhcpcd.esv
}