From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_24_48,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from three.fidnet.com ([205.216.200.53] helo=mail.fidnet.com) by cvs.gentoo.org with smtp (Exim 3.30 #1) id 15FqBV-0002Cn-00 for gentoo-dev@cvs.gentoo.org; Thu, 28 Jun 2001 22:47:13 -0600 Received: (qmail 31363 invoked from network); 29 Jun 2001 04:46:44 -0000 Received: from dialup-mo-46.stjames.fidnet.com (HELO fidnet.com) (216.229.82.46) by three.fidnet.com with SMTP; 29 Jun 2001 04:46:44 -0000 Message-ID: <3B3C08E7.6341648F@fidnet.com> From: "Tod M. Neidt" X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.4-ac5 i686) X-Accept-Language: en MIME-Version: 1.0 To: "gentoo-dev@cvs.gentoo.org" Content-Type: multipart/mixed; boundary="------------B5A6808F3B5818BC2D73CEA2" Subject: [gentoo-dev] lsof with gentoo CFLAGS Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Thu Jun 28 22:48:02 2001 X-Original-Date: Thu, 28 Jun 2001 23:49:43 -0500 X-Archives-Salt: 2a52d49a-3e12-4c11-9766-c5b7e4727eec X-Archives-Hash: 251d8bec836195f03257795da938b81c This is a multi-part message in MIME format. --------------B5A6808F3B5818BC2D73CEA2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! g2boojum submitted a lsof ebuild. I merged it and it seems to be working fine. I had been working on a lsof ebuild also, but g2boojum handled the configure and wrapper archive in a more elegant way than I was trying. He mentioned in his dev-wiki post that he hadn't incorporated the gentoo optimizations (CFLAGS) into the build yet, so I modified his ebuild to do so. This ebuild is attached and it also seems to compile and merge fine. One comment. From the documentation, lsof appears to be sensitive to the system kernel. It may require some kind of dependency so that if a new kernel is merged, lsof gets rebuilt for that kernel. I am not 100% sure if that necessary though. tod --------------B5A6808F3B5818BC2D73CEA2 Content-Type: text/plain; charset=us-ascii; name="lsof-4.56-r1.ebuild" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lsof-4.56-r1.ebuild" # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Grant Goodyear # /home/cvsroot/gentoo-x86/sys-apps/lsof/lsof-4.56.ebuild,v 1.1 2001/06/29 01:10:51 g2boojum Exp P=lsof_4.56 A=${P}_W.tar.gz S0=${WORKDIR} S=${WORKDIR}/${P} DESCRIPTION="Lists open files for running Unix processes" SRC_URI="ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/${A}" HOMEPAGE="http://" DEPEND="" src_unpack() { unpack ${A} cd ${S0} try tar xvf ${P}.tar } src_compile() { #interactive script: Enable HASSECURITY, WARNINGSTATE, and HASKERNIDCK #is there a way to avoid the "echo to a file + file read"? #Just piping in the results didn't seem to work. echo -e "y\ny\ny\nn\ny\ny\n" > junk ./Configure linux < junk #Add gentoo CFLAGS from /etc/make.conf to DEBUG variable in Makefile #The DEBUG variable seems to be the suggested place. sed -e "s/DEBUG=[[:blank:]]*-O/DEBUG= ${CFLAGS}/" \ Makefile > Makefile.new mv Makefile.new Makefile try make all } src_install () { doman lsof.8 exeinto /bin/ doexe lsof into /lib dolib lib/liblsof.a dodoc 00* insinto /usr/share/lsof/scripts doins scripts/* } --------------B5A6808F3B5818BC2D73CEA2--