]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
release: Default to gpg2 to avoid SHA1 signatures
authorRoy Marples <roy@marples.name>
Tue, 25 Feb 2025 11:54:01 +0000 (11:54 +0000)
committerRoy Marples <roy@marples.name>
Tue, 25 Feb 2025 11:54:01 +0000 (11:54 +0000)
Fixes #457

Makefile
Makefile.inc

index a930d301ec0dd1f4b42ad9289533a0ef2d78a19c..4f7caffd5f9ced0a22145db51837f92e1bb72d1a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ distinfo: dist
        ${SHA256} ${DISTFILE} >${DISTINFO}
        wc -c <${DISTFILE} \
                | xargs printf 'Size   (${DISTFILE}) = %s\n' >>${DISTINFO}
-       ${PGP} --armour --detach-sign ${DISTFILE}
+       ${PGP} --sign --armour --detach ${DISTFILE}
        chmod 644 ${DISTSIGN}
        ls -l ${DISTFILE} ${DISTINFO} ${DISTSIGN}
 
index de18984da50efb621346d80b82fc6c38dd4be126..782ea969b10d87b9a9274cea96c98a72a01c5b95 100644 (file)
@@ -15,12 +15,10 @@ LINT?=              lint
 SED?=          sed
 HOST_SH?=      /bin/sh
 
-# This isn't very portable, but I generaly make releases from DragonFlyBSD
+# This isn't very portable, but I generaly make releases from NetBSD
 SHA256?=       sha256
-PGP?=          gpg
-# old NetBSD defs
-#SHA256?=              cksum -a SHA256
-#PGP?=         netpgp
+# Force gpg2 to avoid SHA1 signatures from gpg1
+PGP?=          gpg2
 
 SCRIPT=                ${LIBEXECDIR}/dhcpcd-run-hooks
 HOOKDIR=       ${LIBEXECDIR}/dhcpcd-hooks