Skip to content

Commit 685a971

Browse files
committed
release: Default to gpg2 to avoid SHA1 signatures
Fixes #457
1 parent 2669fb7 commit 685a971

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ distinfo: dist
7171
${SHA256} ${DISTFILE} >${DISTINFO}
7272
wc -c <${DISTFILE} \
7373
| xargs printf 'Size (${DISTFILE}) = %s\n' >>${DISTINFO}
74-
${PGP} --armour --detach-sign ${DISTFILE}
74+
${PGP} --sign --armour --detach ${DISTFILE}
7575
chmod 644 ${DISTSIGN}
7676
ls -l ${DISTFILE} ${DISTINFO} ${DISTSIGN}
7777

Makefile.inc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ LINT?= lint
1515
SED?= sed
1616
HOST_SH?= /bin/sh
1717

18-
# This isn't very portable, but I generaly make releases from DragonFlyBSD
18+
# This isn't very portable, but I generaly make releases from NetBSD
1919
SHA256?= sha256
20-
PGP?= gpg
21-
# old NetBSD defs
22-
#SHA256?= cksum -a SHA256
23-
#PGP?= netpgp
20+
# Force gpg2 to avoid SHA1 signatures from gpg1
21+
PGP?= gpg2
2422

2523
SCRIPT= ${LIBEXECDIR}/dhcpcd-run-hooks
2624
HOOKDIR= ${LIBEXECDIR}/dhcpcd-hooks

0 commit comments

Comments
 (0)