From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 18:32:00 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 665AA7E9 for ; Mon, 23 Feb 2015 18:32:00 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21E25B56 for ; Mon, 23 Feb 2015 18:31:59 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YPxnO-0001HP-7W for freebsd-questions@freebsd.org; Mon, 23 Feb 2015 19:31:55 +0100 Received: from 65.75.36.70 ([65.75.36.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2015 19:31:54 +0100 Received: from gyliamos by 65.75.36.70 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2015 19:31:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Will Parsons Subject: Re: Question regarding local scripts Date: Mon, 23 Feb 2015 18:31:40 +0000 (UTC) Lines: 21 Message-ID: References: <1556736143.91711691.1424680724984.JavaMail.zimbra@logitravel.com> <1587845035.91715373.1424680950928.JavaMail.zimbra@logitravel.com> Reply-To: gyliamos@gmail.com X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 65.75.36.70 User-Agent: slrn/1.0.2 (FreeBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 18:32:00 -0000 Raimund Sacherer wrote: > Hello, > > I am rather new to FreeBSD, putting a couple of new servers in production. I read a lot in the manuals, the man hier and googled around, but I can't find best practices for storing local scripts / apps. > > In Debian this part was easy, Debian never touches /usr/local, so I had this complete namespace for internal use. > > How to do this in FreeBSD the sane way? > > I thought of creating /scripts, but this seems odd, I thought of /opt/scripts or /opt/scripts/[s]bin hierarchy, or /opt/local/[s]bin hierarchy, but I am not sure how you are doing this sort of thing. > > I think what I like best would be to recreate a sort of /usr/local hierarchy under /opt/local. I was a bit hesitant at first too, when I moved from Linux to freeBSD, but now I have no qualms at all about installing local software under /usr/local (assuming the software is meant for general use - if just for one user, install under $HOME). There's really no need IMO to keep it separate from software installed by pkg. -- Will