From d8becfb0ef38ada3ea497ea70226734ce5299825 Mon Sep 17 00:00:00 2001 From: Mat Boehlke Date: Sun, 1 Sep 2024 18:15:13 -0500 Subject: [PATCH] ndhc: update to 20240524. Patch Makefile to respect LDFLAGS, which also fixes the static build option. --- srcpkgs/ndhc/patches/ldflags.patch | 11 +++++++++++ srcpkgs/ndhc/template | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/ndhc/patches/ldflags.patch diff --git a/srcpkgs/ndhc/patches/ldflags.patch b/srcpkgs/ndhc/patches/ldflags.patch new file mode 100644 index 00000000000..98368f41e05 --- /dev/null +++ b/srcpkgs/ndhc/patches/ldflags.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -9,7 +9,7 @@ CPPFLAGS += $(INCL) + all: ragel ndhc + + ndhc: $(NDHC_OBJS) +- $(CC) $(CFLAGS) $(INCL) -o $@ $^ ++ $(CC) $(CFLAGS) $(INCL) -o $@ $^ $(LDFLAGS) + + -include $(NDHC_DEP) + diff --git a/srcpkgs/ndhc/template b/srcpkgs/ndhc/template index 557c54e3feb..24e6dad4ad3 100644 --- a/srcpkgs/ndhc/template +++ b/srcpkgs/ndhc/template @@ -1,6 +1,6 @@ # Template file for 'ndhc' pkgname=ndhc -version=20220308 +version=20240524 revision=1 _dashversion="${version:0:4}-${version:4:2}-${version:6:2}" build_style=gnu-makefile @@ -12,8 +12,8 @@ short_desc="Privilege-seperated secure DHCPv4 client" maintainer="Duncaen " license="MIT" homepage="https://github.com/niklata/ndhc" -distfiles="https://github.com/niklata/ndhc/archive/v${_dashversion}.tar.gz" -checksum=30f595b7c1cc2e60599b8c6aa82e0b1ee4ef2243a67fcebf812b60746db7de4d +distfiles="https://github.com/niklata/ndhc/archive/refs/tags/v${_dashversion}.tar.gz" +checksum=4612e1b01e65e3c64b39e39d8e67e46e571ed651b33e3087d6c0d257cd25644c export CFLAGS="-std=gnu99 -D_GNU_SOURCE -DNK_USE_CAPABILITY"