From owner-freebsd-ports@FreeBSD.ORG Mon Aug 9 17:32:04 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83DF316A4CE for ; Mon, 9 Aug 2004 17:32:04 +0000 (GMT) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39B8243D46 for ; Mon, 9 Aug 2004 17:32:02 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1])i79HW13v028077 for ; Mon, 9 Aug 2004 13:32:01 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost)i79HW1ZW028076 for ports@freebsd.org; Mon, 9 Aug 2004 13:32:01 -0400 (EDT) (envelope-from mwlucas) Date: Mon, 9 Aug 2004 13:32:01 -0400 From: "Michael W. Lucas" To: ports@freebsd.org Message-ID: <20040809173201.GA27989@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Subject: ugly perl module install X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 17:32:04 -0000 Hi, Before I go state in an article that we have an ugly port, I thought I'd mention it to the maintainer (ports@) to see if you guys want to / can do anything. If your answer is a straight "Yep, that's ugly, don't it suck?" I'll run with what I have. I'm working on getting netflow and flowscan working. To make flowscan recognize the format used by flow-capture, I have to use the copy of flowscan provided in the contrib directory of flow-tools. I followed this process: -- make (do not install!) net-mgmt/flow-tools cd /usr/ports/net-mgmt/flow-tools/work/flow-tools-0.67/contrib/Cflow-1.051 perl Makefile.PL make no do "make install" on net-mgmt/flowscan will install all the dependencies now cd /usr/ports/net-mgmt/flow-tools/work/flow-tools-0.67/contrib/Cflow-1.051 and do make install. -- The Makefile for Cflow does an explicit check for a library provided by flow-tools, but in a hard-coded manner: .. if (-f '../../lib/libft.a') { .. of course, once you do a "make install" for the port, the library is moved to /usr/local/lib. Surely we could, say, include a patch to net-mgmt/p5-Cflow to make the port check for $PREFIX/lib/libft.a rather than the ../../lib/libft.a? If not, I'll document the ugliness in this instance and make a cranky comment about how knowing how to actually build software is still useful these days, and these kids don't know how good they have it with "configure" and so on... ;-) Thanks, ==ml -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org "I'm sorry, but 'Social Darwinism' is no excuse for killing all of your co-workers." -- Ivan Brunetti http://www.BlackHelicopters.org/~mwlucas/