Date: Sat, 06 Dec 2003 15:34:43 -0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Marty Landman <MLandman@face2interface.com> Cc: FreeBSD-Questions@freebsd.org Subject: Re: md5 newbie question Message-ID: <20031206153420.GA29555@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com> References: <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031206153420.GA29555>
