From owner-freebsd-questions@FreeBSD.ORG Fri Feb 18 19:49:31 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 B3FCD106566B for ; Fri, 18 Feb 2011 19:49:31 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2758FC0A for ; Fri, 18 Feb 2011 19:49:31 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqWKX-0005iW-78 for freebsd-questions@freebsd.org; Fri, 18 Feb 2011 20:49:29 +0100 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 20:49:29 +0100 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 20:49:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Fri, 18 Feb 2011 14:50:57 -0500 Lines: 52 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: Install Squid on FBSD with different configure options? 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: Fri, 18 Feb 2011 19:49:31 -0000 Ed Flecko wrote: > Hi folks, > I want to install squid from the ports package (i.e., > /usr/ports/www/squid) instead of installing from source (which, it's > my understanding, would force me to create a squid user, squid group, > etc. manually). > > However, I want squid to be installed with the ability to restrict end > users internet access based upon their PCs MAC address, which means I > need the --enable-arp-acl option when installing squid. > > I have modified the Makefile (/usr/ports/www/squid/Makefile) to > include this option, but now I'm a little confused - if I use the > standard pkg_add squid command, won't that just fetch the package from > the internet? There are two ways to install software in FreeBSD. pkg_add will download and install a binary that has been previously compiled using the ports system, just it is prebuilt. You will not be able to change build-time parameters, e.g the Makefile changes above will have no effect on a package. The other way is to utilize the ports system to compile from source locally. This allows for build-time config changes, such as your Makefile edit. Generally, most of the time, most of these options already exist and make config will give you a menu to choose them. In this case, you will download the source code tarball and not a prebuilt package. > How do I install squid from the ports package that's on my hard drive? As per instructions in other email. There is not a ports 'package' on your hard drive. There is a 'ports system', which is a build system for compiling applications locally. It is this same build system which is used to generate the binary packages for use with pkg_add. Please read the pertinent sections in the Handbook for more detailed information. Pay attention to something referred to as 'updating the ports tree' as this is usually something newcomers stumble over. Hint: the ports tree is responsible for dependency tracking/resolution. So anytime before installing or updating software you should update your ports tree first. There are sections in the Handbook which cover this. > I am correct in that when I install the package from my local hard > drive, it will automatically create the necessary users/groups for me, > right? > Yes. -Mike