From owner-freebsd-questions@FreeBSD.ORG Tue Apr 5 15:52:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05E15106566C for ; Tue, 5 Apr 2011 15:52:47 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id A609F8FC13 for ; Tue, 5 Apr 2011 15:52:46 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id p35FpWFL022818; Tue, 5 Apr 2011 11:51:32 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id p35FpWLh022817; Tue, 5 Apr 2011 11:51:32 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 5 Apr 2011 11:51:32 -0400 From: Jerry McAllister To: Michael =?iso-8859-1?Q?Gr=FCnewald?= Message-ID: <20110405155132.GC22718@gizmo.acns.msu.edu> References: <4D9B3403.2070704@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4D9B3403.2070704@yahoo.fr> User-Agent: Mutt/1.4.2.2i Cc: FreeBSD questions Subject: Re: Place to install library of shell functions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 15:52:47 -0000 On Tue, Apr 05, 2011 at 05:23:47PM +0200, Michael Grünewald wrote: > Dear FreeBSD users, > > > today I come to you with what seems to be somehow pedantic question: > where is the best place to install libraries of shell functions. > > I read hier(4) carefully and it seems the correct place for this would > be somewhere under `/usr/local/share': > > share/ architecture-independent files I would go with /usr/local/lib. ////jerry > > On the base systems, many macros (make templates and groff macros) are > actually installed under /usr/share. However, the only library of shell > functions I am aware of is `/etc/rc.subr', that landed on this funny > location, probably to be pretty sure that this library is on the same > filesystem as the scripts under /etc/rc.d. > > Several of the ports install shell scripts under `/usr/local/lib' that > hier(4) devotes to ``shared and archive ar(1)-type libraries''. These > shell scripts are: > > > find /usr/local/lib -name '*.sh' > /usr/local/lib/tk8.5/tkConfig.sh > /usr/local/lib/seamonkey/run-mozilla.sh > /usr/local/lib/libxul/run-mozilla.sh > /usr/local/lib/rpm/convertrpmrc.sh > /usr/local/lib/rpm/find-lang.sh > /usr/local/lib/rpm/getpo.sh > /usr/local/lib/rpm/u_pkg.sh > /usr/local/lib/rpm/vpkg-provides.sh > /usr/local/lib/rpm/vpkg-provides2.sh > /usr/local/lib/firefox/run-mozilla.sh > /usr/local/lib/tcl8.5/tclConfig.sh > /usr/local/lib/thunderbird/run-mozilla.sh > /usr/local/lib/llvm-gcc-2.8/gcc/x86_64-portbld-freebsd8.2/4.2.1/install-tools/fixinc.sh > > Two files (the `/usr/local/lib/tcl8.5/tclConfig.sh' one and the > `s/tcl/tk/g' one) are actually shell script libraries (defining a bunch > of variables), and all the others are ancillary scripts, that would > maybe better fit in `/usr/local/libexec'. > > So, practical experience does not really second my a priori that these > files sould go under the `share' hierarchy and I would like to have your > opinion on this question. > -- > Best Regards, > Michael > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"