diff options
Diffstat (limited to 'dns/dnsmasq-devel/files')
-rw-r--r-- | dns/dnsmasq-devel/files/patch-src_dnsmasq.c | 12 | ||||
-rwxr-xr-x | dns/dnsmasq-devel/files/update.py | 40 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dns/dnsmasq-devel/files/patch-src_dnsmasq.c b/dns/dnsmasq-devel/files/patch-src_dnsmasq.c new file mode 100644 index 000000000000..98c34221f71d --- /dev/null +++ b/dns/dnsmasq-devel/files/patch-src_dnsmasq.c @@ -0,0 +1,12 @@ +--- src/dnsmasq.c.orig 2025-05-24 14:09:53 UTC ++++ src/dnsmasq.c +@@ -81,7 +81,9 @@ int main (int argc, char **argv) + int tftp_prefix_missing = 0; + #endif + ++#ifdef HAVE_LINUX_NETWORK + (void)netlink_warn; ++#endif + + #if defined(HAVE_IDN) || defined(HAVE_LIBIDN2) || defined(LOCALEDIR) + setlocale(LC_ALL, ""); diff --git a/dns/dnsmasq-devel/files/update.py b/dns/dnsmasq-devel/files/update.py new file mode 100755 index 000000000000..df81cdd3880b --- /dev/null +++ b/dns/dnsmasq-devel/files/update.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python3 +"""update.py for dnsmasq-devel - (C) 2025 Matthias Andree, placed under MIT license +To use, edit Makefile with the new version, +then run files/update.py, which will download, check sigs, if GnuPG checks out, update makesum, +upload tarball and sig to my public_distfiles/ because upstream has low bandwidth, and test build. + +If things work out, commit manually and push.""" + +import os +import shutil +import subprocess +import sys + +def trace(func): + def wrapper(*args, **kwargs): + print(f"\n> {func.__name__}({args}, {kwargs})", file=sys.stderr) + retval = func(*args, **kwargs) + print(f"< {func.__name__} -> {retval!r}", file=sys.stderr) + return retval + return wrapper + +traced_run = trace(subprocess.run) + +cleanenv={'LC_ALL': 'C.UTF-8', + 'PATH': os.environ["PATH"]} +defargs={"check": "True", "env": cleanenv, "encoding": 'UTF-8'} + +distdir, master_site = map(str.strip, traced_run(['make', '-V', 'DISTDIR', '-V', 'MASTER_SITES:N*FreeBSD*'], capture_output=True, **defargs).stdout.splitlines()) +filename_tarball = traced_run('make -V DISTFILES'.split(), capture_output=True, **defargs).stdout.splitlines()[0].strip() +filename_signature = filename_tarball + '.asc' +uri_tarball = master_site + filename_tarball +uri_signature = master_site + filename_signature +traced_run(['fetch', uri_tarball, uri_signature], **defargs) +traced_run(['gpg', '--verify', filename_signature, filename_tarball], **defargs) +traced_run(['rsync', '-avHPW', '--chmod=0644', filename_tarball, filename_signature, 'freefall.freebsd.org:public_distfiles/'], **defargs) +shutil.move(filename_tarball, '/usr/ports/distfiles/' + filename_tarball) +os.remove(filename_signature) +traced_run(['make', 'makesum', 'clean'], **defargs) +traced_run(['make', 'check-plist', 'package'], **defargs) +print("\nSUCCESS\n") |