From 4acb4328f228372e47797b952a5363c2e0121de8 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 9 Nov 2025 14:41:52 +0200 Subject: [PATCH] Switch to new download format and remove dependencies field from esvm service --- pkg.info | 13 ++++++++++++- source-files/dhcpcd.esv | 3 +-- source.sh | 10 ---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pkg.info b/pkg.info index 1c8ec9e..66b2b69 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,19 @@ name: dhcpcd description: A DHCP and DHCPv6 client version: 10.2.4 +revision: 2 url: https://roy.marples.name/projects/dhcpcd license: BSD-2-Clause architecture: any -depends: ["glibc","libmd","openssl","udev"] type: source +depends: + - glibc + - libmd + - openssl + - sh + - udev +downloads: + - url: https://github.com/NetworkConfiguration/dhcpcd/releases/download/v${BPM_PKG_VERSION}/dhcpcd-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 6721e606609226dbf4d864a78802a9e96beec0ee034a1bd84138b3e037bba7d9 diff --git a/source-files/dhcpcd.esv b/source-files/dhcpcd.esv index cd6b27f..041d8ad 100644 --- a/source-files/dhcpcd.esv +++ b/source-files/dhcpcd.esv @@ -1,6 +1,5 @@ name: dhcpcd -description: run dhcpcd on all clients -dependencies: ["udevd"] +description: Run dhcpcd on all clients type: background start_cmd: dhcpcd -B -M exit_method: kill diff --git a/source.sh b/source.sh index 228e6fb..e36a0ae 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/NetworkConfiguration/dhcpcd/releases/download/v${BPM_PKG_VERSION}/dhcpcd-${BPM_PKG_VERSION}.tar.xz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() {