From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 07:34:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA6AB16A4CE for ; Sat, 6 Dec 2003 07:34:43 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB25F43FE1 for ; Sat, 6 Dec 2003 07:34:40 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hB6FYKJZ029967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Dec 2003 15:34:33 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hB6FYKg8029966; Sat, 6 Dec 2003 15:34:20 GMT (envelope-from matthew) From: Matthew Seaman To: Marty Landman Message-ID: <20031206153420.GA29555@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Marty Landman , FreeBSD-Questions@freebsd.org References: <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD-Questions@freebsd.org Subject: Re: md5 newbie question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sat, 06 Dec 2003 15:34:43 -0000 X-Original-Date: Sat, 6 Dec 2003 15:34:20 +0000 X-List-Received-Date: Sat, 06 Dec 2003 15:34:43 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 06, 2003 at 09:59:07AM -0500, Marty Landman wrote: > Trying to verify a d/l before compiling: >=20 > Swami: md5 -s 466c63bb71b710d20a5c353df8c1a19c /tmp/httpd-2.0.48.tar.gz > MD5 ("466c63bb71b710d20a5c353df8c1a19c") =3D 017b97dd023763b82a219bdfedd5= cc29 > MD5 (/tmp/httpd-2.0.48.tar.gz) =3D 466c63bb71b710d20a5c353df8c1a19c > Swami: >=20 > By eyeballing the first part of line1 against the second part of line 2= =20 > they appear equal so I guess my d/l's integrity is intact. What is the mo= re=20 > automated way to do this though, so that I get a line at the end saying= =20 > "ok" or "ah, phooey". Or am I supposed to extract and diff these myself? md5 -s "some string" will give you the md5 hash of "some string" -- it's not what you want. You need to run: md5 httpd-2.0.48.tar.gz and then compare that output to the distinfo file in the www/apache2 port: % cat distinfo=20 MD5 (apache2/httpd-2.0.48.tar.gz) =3D 466c63bb71b710d20a5c353df8c1a19c MD5 (apache2/powerlogo.gif) =3D 0f106073b3c7844cf22d4df126b27c62 Yup. You've got the correct httpd-2.0.48.tar.gz sources. Of couse, you don't have to do this by hand. It's done automatically as part of building the port. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/0fb8dtESqEQa7a0RAgpIAJ4jO67Gk7wP3MfuJu3UkR3Fzn5H1QCfW6oc 4eN71KshOOoJpJqwYpwKn7U= =YD+b -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--