Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 17:18:49 -0500
From:      Will Andrews <andrews@technologist.com>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG>
Cc:        Nik Clayton <nik@FreeBSD.ORG>, Kris Kennaway <kris@FreeBSD.ORG>, ports@FreeBSD.ORG
Subject:   Re: Feature request:  Store dist file size somewhere
Message-ID:  <20000322171849.A378@argon.blackdawn.com>
In-Reply-To: <vqcr9d2spwr.fsf@silvia.hip.berkeley.edu>; from asami@FreeBSD.ORG on Wed, Mar 22, 2000 at 12:36:36PM -0800
References:  <Pine.BSF.4.21.0003211840440.84343-100000@freefall.freebsd.org> <vqcln3bu2hw.fsf@silvia.hip.berkeley.edu> <20000322084226.A70194@catkin.nothing-going-on.org> <vqc4s9yu6xx.fsf@silvia.hip.berkeley.edu> <20000322201502.A43966@catkin.nothing-going-on.org> <vqcr9d2spwr.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 22, 2000 at 12:36:36PM -0800, Satoshi - Ports Wraith - Asami wrote:
> Err, before Richard has a heart attack.  files/md5 *is* the right
> place to put these stuff.  If we add another file, that's 3,000 more
> small files, meaning 3,000 more i-nodes and 3,000 more disk fragments
> in the ports tree.
> 
> We don't need to do anything to md5(1).  The size can be calculated
> without using md5 (think "ls" :).

<2 5004-0> (00-03-22 17:16:38) [will@shadow ~]% cksum icqnix
4248575454 1095 icqnix
<2 5005-0> (00-03-22 17:16:42) [will@shadow ~]% ll icqnix
-rw-r--r--  1 will  will  1095 Mar 21 22:03 icqnix

thus

${CKSUM} | ${AWK} '{print $2}' >> ${FILESDIR}/md5

I wouldn't trust /bin/ls if I were you, some folks might (ignorantly)
install their own version in /bin instead of /usr/local/bin.

-- 
Will Andrews <andrews@technologist.com>
GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ 
G++>+++ e->++++ h! r-->+++ y?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000322171849.A378>