Date: Sun, 17 Oct 2004 21:05:02 +0000 From: Colin Percival <cperciva@daemonology.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/72797: [NEW PORT] FreeBSD 5.3's /sbin/sha1 Message-ID: <20041017210502.13562.qmail@hexahedron.daemonology.net> Resent-Message-ID: <200410172110.i9HLAMbo034041@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72797 >Category: ports >Synopsis: [NEW PORT] FreeBSD 5.3's /sbin/sha1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 17 21:10:22 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Colin Percival >Release: FreeBSD 5.2.1-SECURITY i386 >Organization: >Environment: System: FreeBSD hexahedron.daemonology.net 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Tue Sep 28 17:27:41 GMT 2004 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: I want to use /sbin/sha1 in a port I'm writing, but it doesn't exist in FreeBSD releases prior to 5.3. >How-To-Repeat: -bash-2.05b$ /sbin/sha1 foobar -bash: /sbin/sha1: No such file or directory >Fix: Extract src/sbin/md5 from the FreeBSD 5.3 source tree, and turn it into a port so that it can be installed on previous FreeBSDs. (While there are other sha1 implementations in the ports tree, I'd prefer to have this one added so that we can be certain of compatibility with the sha1 in the base system.) I hope I got the conditional IGNORE= ... part right. --- sha1.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sysutils/sha1 # sysutils/sha1/pkg-descr # sysutils/sha1/distinfo # sysutils/sha1/Makefile # echo c - sysutils/sha1 mkdir -p sysutils/sha1 > /dev/null 2>&1 echo x - sysutils/sha1/pkg-descr sed 's/^X//' >sysutils/sha1/pkg-descr << 'END-of-sysutils/sha1/pkg-descr' XThis is the command-line sha1 utility from FreeBSD 5.3. X X- Colin Percival Xcperciva@daemonology.net END-of-sysutils/sha1/pkg-descr echo x - sysutils/sha1/distinfo sed 's/^X//' >sysutils/sha1/distinfo << 'END-of-sysutils/sha1/distinfo' XMD5 (sha1-5.3.tar.gz) = 8392360ff3bc262f285a07436c95ff97 XSIZE (sha1-5.3.tar.gz) = 4729 END-of-sysutils/sha1/distinfo echo x - sysutils/sha1/Makefile sed 's/^X//' >sysutils/sha1/Makefile << 'END-of-sysutils/sha1/Makefile' X# New ports collection makefile for: FreeBSD sha1 utility X# Date created: 17 October 2004 X# Whom: cperciva@daemonology.net X# X# $FreeBSD$ X# X XPORTNAME= sha1 XPORTVERSION= 5.3 XCATEGORIES= sysutils security XMASTER_SITES= http://www.daemonology.net/misc/ X XMAINTAINER= cperciva@daemonology.net XCOMMENT= FreeBSD sha1 utility X XBINDIR= ${PREFIX}/sbin XMANDIR= ${PREFIX}/man/man XMAKE_ARGS= BINDIR="${BINDIR}" MANDIR="${MANDIR}" -DNOMANCOMPRESS X XMAN1= sha1.1 XPLIST_FILES= sbin/sha1 X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} > 502113 XIGNORE= "sha1 now contained in the base system" X.endif X.if ${OSVERSION} > 491100 X.if ${OSVERSION} < 500000 XIGNORE= "sha1 now contained in the base system" X.endif X.endif X X.include <bsd.port.post.mk> END-of-sysutils/sha1/Makefile exit --- sha1.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041017210502.13562.qmail>