From owner-freebsd-ports@FreeBSD.ORG Tue Jul 24 14:18:19 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CDC716A498 for ; Tue, 24 Jul 2007 14:18:19 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id DB54013C46B for ; Tue, 24 Jul 2007 14:18:18 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 329AE654F2; Tue, 24 Jul 2007 09:18:18 -0500 (CDT) Date: Tue, 24 Jul 2007 09:18:17 -0500 From: Paul Schmehl To: Anton Berezin Message-ID: <1B50EA71ECD75693D12CE9D3@utd59514.utdallas.edu> In-Reply-To: <20070724095718.GB68140@heechee.tobez.org> References: <20070724095718.GB68140@heechee.tobez.org> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========6E0FFC9BFFC78A2FCDF0==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Ports Subject: Re: How to include new dirs in @INC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 14:18:19 -0000 --==========6E0FFC9BFFC78A2FCDF0========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Tuesday, July 24, 2007 11:57:18 +0200 Anton Berezin =20 wrote: > On Mon, Jul 23, 2007 at 05:13:50PM -0500, Paul Schmehl wrote: >> > Alternatively, you need to figure out whether you can place the = modules >> > into a standard location. It looks like you are trying to do that, = but >> > clearly you are doing something wrong. What are the names of the >> > modules and their packages? > >> After checking the scripts, all of them refer to Bro::Module except one. >> So I can put that one module (IP4.pm) in /mach and solve the problem >> that way. The others appear to be correctly coded. > > So problem solved, or? > Problem solved. I had two options; patch the script or install the one=20 module in SITE_PERL/mach. I chose the latter. The rest of the modules and = scripts work fine because they call the modules correctly - use=20 Bro::Report::Conn.pm; (for example.) The one script simply called IP4.pm=20 without any directory (use IP4.pm;) I was hoping to keep all the modules=20 in one location, unique to the port, but it made more sense to me not to=20 edit the script. BTW, maybe you know the answer to this. I can't remove the perl modules in = pkg-plist because it prepends PREFIX to SITE_PERL, making the location=20 /usr/local/usr/local/lib/perl5/site_perl/5.8.8. This seems to me to be a=20 bug. Shouldn't pkg-plist honor SITE_PERL and not prepend PREFIX? I solved the problem by writing a pkg-deinstall script that removes the=20 modules and directories, but seems like a kludgy solution to me. --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========6E0FFC9BFFC78A2FCDF0==========--