From owner-freebsd-ports Mon Jun 15 20:43:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA23861 for freebsd-ports-outgoing; Mon, 15 Jun 1998 20:43:10 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from bubble.didi.com (sji-ca5-26.ix.netcom.com [209.109.234.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23820 for ; Mon, 15 Jun 1998 20:42:54 -0700 (PDT) (envelope-from asami@sunrise.cs.berkeley.edu) Received: (from asami@localhost) by bubble.didi.com (8.8.8/8.8.8) id UAA05842; Mon, 15 Jun 1998 20:41:58 -0700 (PDT) (envelope-from asami) Date: Mon, 15 Jun 1998 20:41:58 -0700 (PDT) Message-Id: <199806160341.UAA05842@bubble.didi.com> To: jseger@freebsd.scds.com CC: ports@FreeBSD.ORG, jseger@freebsd.scds.com In-reply-to: <199806160244.WAA26468@freebsd.scds.com> (jseger@freebsd.scds.com) Subject: Re: Size of a port... From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * A few people have expressed interest in a file being stored with every port * that contains the size of the installed port. Here are a few lines that could * be added to bsd.port.mk to create such a file. Please let me know what you * think. * # Target to make a size file * * .if !target(makesize) * makesize: * @( cd ${PREFIX} ; \ * du -ck `${GREP} -v @ ${PLIST}` | tail -n 1 | \ "duck" sounds cute (quack, quack) but I assume you meant "du -sk" here. :) Also, "@" is a valid filename, you may want to grep "^@" instead. One more thing, why do you need to "tail" when "du -s" will only print out one line? (Do du error messages go to stdout?) * ${AWK} '{print $$1}' > ${FILESDIR}/size ) * @${ECHO} ">> Size of ${PKGNAME} is: `${CAT} ${FILESDIR}/size`k" We may want to put this in the package too. (I know you can take a look at the size of the package file itself but it's still not the same thing.) Any ideas on how to go about that? Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message