From cperciva@hexahedron.daemonology.net  Sun Oct 17 21:06:09 2004
Return-Path: <cperciva@hexahedron.daemonology.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A641A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <cperciva@daemonology.net>
Reply-To: Colin Percival <cperciva@daemonology.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [NEW PORT] FreeBSD 5.3's /sbin/sha1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72797
>Category:       ports
>Synopsis:       [NEW PORT] FreeBSD 5.3's /sbin/sha1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 17 21:10:22 GMT 2004
>Closed-Date:    Mon Oct 25 18:36:50 GMT 2004
>Last-Modified:  Mon Oct 25 18:36:50 GMT 2004
>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:

From: Clive Lin <clive@tongi.org>
To: Colin Percival <cperciva@daemonology.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/72797: [NEW PORT] FreeBSD 5.3's /sbin/sha1
Date: Tue, 19 Oct 2004 13:59:40 +0800

 On Sun, Oct 17, 2004 at 09:05:02PM +0000, Colin Percival wrote:
 > >Number:         72797
 > >Category:       ports
 > >Synopsis:       [NEW PORT] FreeBSD 5.3's /sbin/sha1
 
 Hi,
 
     Providing utility for old releases via port is pretty cool, and
 also benefits systems adminitered paranoids. <bikeshield>As to ports
 paranoids, bsdsha1 shall be favored more.. like archivers/bsdtar.
 </bikeshield>
 
 > #	sysutils/sha1
 
 -- 
 Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E

From: Colin Percival <colin.percival@wadham.ox.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org, Clive Lin <clive@tongi.org>
Cc:  
Subject: Re: ports/72797: [NEW PORT] FreeBSD 5.3's /sbin/sha1
Date: Sun, 24 Oct 2004 22:07:39 +0100

 I'm not really concerned about whether the port is called "sysutils/sha1" or 
 "sysutils/bsdsha1", <bikeshed>although I think the former makes more sense, 
 personally</bikeshed>.
 
 Colin Percival
 
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Mon Oct 25 18:36:17 GMT 2004 
State-Changed-Why:  
Committed, thanks! 


Responsible-Changed-From-To: freebsd-ports-bugs->ade 
Responsible-Changed-By: ade 
Responsible-Changed-When: Mon Oct 25 18:36:17 GMT 2004 
Responsible-Changed-Why:  
Finger of blame --> me :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72797 
>Unformatted:
