From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 17 21:10:22 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E935116A4CE for ; Sun, 17 Oct 2004 21:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB94543D48 for ; Sun, 17 Oct 2004 21:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9HLAMk9034042 for ; Sun, 17 Oct 2004 21:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9HLAMbo034041; Sun, 17 Oct 2004 21:10:22 GMT (envelope-from gnats) Resent-Date: Sun, 17 Oct 2004 21:10:22 GMT Resent-Message-Id: <200410172110.i9HLAMbo034041@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Colin Percival Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A641A16A4CE for ; Sun, 17 Oct 2004 21:06:09 +0000 (GMT) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42B1F43D1F for ; Sun, 17 Oct 2004 21:06:09 +0000 (GMT) (envelope-from cperciva@hexahedron.daemonology.net) Received: from pd5mr3so.prod.shaw.ca (pd5mr3so-qfe3.prod.shaw.ca [10.0.141.144]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I5Q00840YKGY800@l-daemon> for FreeBSD-gnats-submit@freebsd.org; Sun, 17 Oct 2004 15:05:04 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd5mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I5Q00IWIYKGJT00@pd5mr3so.prod.shaw.ca> for FreeBSD-gnats-submit@freebsd.org; Sun, 17 Oct 2004 15:05:04 -0600 (MDT) Received: from hexahedron.daemonology.net (S0106006067227a4a.vc.shawcable.net [24.87.233.42]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with SMTP id <0I5Q00H7PYKE0E@l-daemon> for FreeBSD-gnats-submit@freebsd.org; Sun, 17 Oct 2004 15:05:04 -0600 (MDT) Received: (qmail 13563 invoked by uid 1001); Sun, 17 Oct 2004 21:05:02 +0000 Message-Id: <20041017210502.13562.qmail@hexahedron.daemonology.net> Date: Sun, 17 Oct 2004 21:05:02 +0000 From: Colin Percival To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/72797: [NEW PORT] FreeBSD 5.3's /sbin/sha1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Colin Percival List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 21:10:23 -0000 >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 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 END-of-sysutils/sha1/Makefile exit --- sha1.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: