NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/54768: Missing cksum(1) convenience links



>Number:         54768
>Category:       bin
>Synopsis:       Missing cksum(1) convenience links
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 15 00:15:00 +0000 2019
>Originator:     elo
>Release:        NetBSD 9.0_BETA
>Organization:
>Environment:
System: NetBSD marmite.localnet 9.0_BETA NetBSD 9.0_BETA (BLUEBELL) #3: Sun Nov 3 02:10:56 GMT 2019 elo@marmite.localnet:/usr/obj/sys/arch/amd64/compile/BLUEBELL amd64
Architecture: x86_64
Machine: amd64
>Description:
	Most of the algorithms provided by the cksum(1) utility are
	directly accessible via convenience links, but not the three
	most recently added: SHA256, SHA384 and SHA512. As these are
	increasingly (for me, at any rate) the ones most commonly
	used, they really ought to be brought into the fold.
>How-To-Repeat:
	$ whereis sha256
	$ man sha256
>Fix:
	Apply the following patches.

diff -u a/usr/src/usr.bin/cksum/Makefile b/usr/src/usr.bin/cksum/Makefile	
--- a/usr/src/usr.bin/cksum/Makefile	2009-04-14 23:15:18.000000000 +0100
+++ b/usr/src/usr.bin/cksum/Makefile	2018-08-18 22:58:55.188898441 +0100
@@ -9,12 +9,18 @@
 LINKS+=	${BINDIR}/cksum ${BINDIR}/md4
 LINKS+=	${BINDIR}/cksum ${BINDIR}/md5
 LINKS+=	${BINDIR}/cksum ${BINDIR}/sha1
+LINKS+=	${BINDIR}/cksum ${BINDIR}/sha256
+LINKS+=	${BINDIR}/cksum ${BINDIR}/sha384
+LINKS+=	${BINDIR}/cksum ${BINDIR}/sha512
 LINKS+=	${BINDIR}/cksum ${BINDIR}/rmd160
 MLINKS=	cksum.1 sum.1
 MLINKS+=cksum.1 md2.1
 MLINKS+=cksum.1 md4.1
 MLINKS+=cksum.1 md5.1
 MLINKS+=cksum.1 sha1.1
+MLINKS+=cksum.1 sha256.1
+MLINKS+=cksum.1 sha384.1
+MLINKS+=cksum.1 sha512.1
 MLINKS+=cksum.1 rmd160.1
 
 .include <bsd.prog.mk>
diff -u a/usr/src/usr.bin/cksum/cksum.1 b/usr/src/usr.bin/cksum/cksum.1	
--- a/usr/src/usr.bin/cksum/cksum.1	2019-12-14 21:48:04.029304333 +0000
+++ b/usr/src/usr.bin/cksum/cksum.1	2019-08-13 23:38:52.275982133 +0100
@@ -42,6 +42,9 @@
 .Nm md5 ,
 .Nm rmd160 ,
 .Nm sha1 ,
+.Nm sha256 ,
+.Nm sha384 ,
+.Nm sha512 ,
 .Nm sum
 .Nd display file checksums and block counts
 .Sh SYNOPSIS
@@ -75,6 +78,18 @@
 .Op Fl npqtx
 .Op Fl s Ar string
 .Op Ar Li \&| Fl c Oo Fl w Oc Oo Ar sumfile Oc
+.Nm sha256
+.Op Fl npqtx
+.Op Fl s Ar string
+.Op Ar Li \&| Fl c Oo Fl w Oc Oo Ar sumfile Oc
+.Nm sha384
+.Op Fl npqtx
+.Op Fl s Ar string
+.Op Ar Li \&| Fl c Oo Fl w Oc Oo Ar sumfile Oc
+.Nm sha512
+.Op Fl npqtx
+.Op Fl s Ar string
+.Op Ar Li \&| Fl c Oo Fl w Oc Oo Ar sumfile Oc
 .Sh DESCRIPTION
 The
 .Nm
@@ -99,6 +114,9 @@
 .Nm md4 ,
 .Nm md5 ,
 .Nm sha1 ,
+.Nm sha256 ,
+.Nm sha384 ,
+.Nm sha512 ,
 and
 .Nm rmd160
 utilities compute cryptographic hash functions, and write to standard
diff -u a/usr/src/distrib/sets/lists/base/mi b/usr/src/distrib/sets/lists/base/mi	
--- a/usr/src/distrib/sets/lists/base/mi	2019-12-14 21:50:19.238694216 +0000
+++ b/usr/src/distrib/sets/lists/base/mi	2019-09-30 01:47:02.051547023 +0100
@@ -957,6 +945,9 @@
 ./usr/bin/setextattr				base-util-bin
 ./usr/bin/sftp					base-secsh-bin
 ./usr/bin/sha1					base-util-bin
+./usr/bin/sha256				base-util-bin
+./usr/bin/sha384				base-util-bin
+./usr/bin/sha512				base-util-bin
 ./usr/bin/shar					base-util-bin
 ./usr/bin/shlock				base-util-bin
 ./usr/bin/shmif_dumpbus				base-util-bin		rump
diff -u a/usr/src/distrib/sets/lists/man/mi b/usr/src/distrib/sets/lists/man/mi	
--- a/usr/src/distrib/sets/lists/man/mi	2019-12-14 21:51:09.564073432 +0000
+++ b/usr/src/distrib/sets/lists/man/mi	2019-09-30 01:47:02.121181903 +0100
@@ -518,6 +518,9 @@
 ./usr/share/man/cat1/sftp.0			man-secsh-catman	.cat
 ./usr/share/man/cat1/sh.0			man-util-catman		.cat
 ./usr/share/man/cat1/sha1.0			man-util-catman		.cat
+./usr/share/man/cat1/sha256.0			man-util-catman		.cat
+./usr/share/man/cat1/sha384.0			man-util-catman		.cat
+./usr/share/man/cat1/sha512.0			man-util-catman		.cat
 ./usr/share/man/cat1/shar.0			man-util-catman		.cat
 ./usr/share/man/cat1/shlock.0			man-util-catman		.cat
 ./usr/share/man/cat1/shmif_dumpbus.0		man-util-catman		rump,.cat
@@ -3759,6 +3752,9 @@
 ./usr/share/man/html1/sftp.html			man-secsh-htmlman	html
 ./usr/share/man/html1/sh.html			man-util-htmlman	html
 ./usr/share/man/html1/sha1.html			man-util-htmlman	html
+./usr/share/man/html1/sha256.html		man-util-htmlman	html
+./usr/share/man/html1/sha384.html		man-util-htmlman	html
+./usr/share/man/html1/sha512.html		man-util-htmlman	html
 ./usr/share/man/html1/shar.html			man-util-htmlman	html
 ./usr/share/man/html1/shlock.html		man-util-htmlman	html
 ./usr/share/man/html1/shmif_dumpbus.html	man-util-htmlman	rump,html
@@ -6652,6 +6638,9 @@
 ./usr/share/man/man1/sftp.1			man-secsh-man		.man
 ./usr/share/man/man1/sh.1			man-util-man		.man
 ./usr/share/man/man1/sha1.1			man-util-man		.man
+./usr/share/man/man1/sha256.1			man-util-man		.man
+./usr/share/man/man1/sha384.1			man-util-man		.man
+./usr/share/man/man1/sha512.1			man-util-man		.man
 ./usr/share/man/man1/shar.1			man-util-man		.man
 ./usr/share/man/man1/shlock.1			man-util-man		.man
 ./usr/share/man/man1/shmif_dumpbus.1		man-util-man		rump,.man



Home | Main Index | Thread Index | Old Index