release: Default to gpg2 to avoid SHA1 signatures

Fixes #457
This commit is contained in:
Roy Marples 2025-02-25 11:54:01 +00:00
parent 2669fb715f
commit 685a9714f2
2 changed files with 4 additions and 6 deletions

View File

@ -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}

View 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