From owner-freebsd-questions@FreeBSD.ORG Sat Mar 6 19:35:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A98E16A4CE for ; Sat, 6 Mar 2004 19:35:58 -0800 (PST) Received: from watcher.puryear-it.com (unknown [69.2.39.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEFAD43D2F for ; Sat, 6 Mar 2004 19:35:57 -0800 (PST) (envelope-from dap99@i-55.com) Received: from localhost (unknown [127.0.0.1]) by watcher.puryear-it.com (Postfix) with ESMTP id CB7DB34D1F for ; Sat, 6 Mar 2004 21:28:59 -0600 (CST) Received: from watcher.puryear-it.com ([127.0.0.1]) by localhost (watcher.puryear-it.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00809-03 for ; Sat, 6 Mar 2004 21:28:58 -0600 (CST) Received: from yourqqh4336axf (localhost [127.0.0.1]) by watcher.puryear-it.com (Postfix) with SMTP id 96FD734D1E for ; Sat, 6 Mar 2004 21:28:58 -0600 (CST) Message-ID: <001701c403f5$1a0ff220$6401a8c0@yourqqh4336axf> From: "adp" To: Date: Sat, 6 Mar 2004 21:33:32 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Virus-Scanned: by amavisd-new Subject: Handling lots of custom packages.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2004 03:35:58 -0000 I use the software from ports extensively. I also use a lot of compile-time options (for example, WITH_IMAP=yes for lang/php4). Rather than recompile our source each time we bring up a server we just build from ports and then build a package using 'make ..options.. package'. We then use this package. Now, if we just want to add this package to a system using pkg_add we have to first install the dependencies: # pkg_add dep1.tgz # pkg_add dep2.tgz # pkg_add php4-..tgz Instead, we have a copy of ftp.freebsd.org/.../packages/All and we use: # pkg_add -r ftp://localftp/.../packages/All/php4-...tgz This has the benefit that we don't know or care what needs to get pulled in. (Well, we know, we just don't have to add it to an install script.) So far so good. But we may have different options for different packages of the same software depending on where we will use it. So on a general purpose web server I may have a lot of options for php4, but for running php4 on a much more targeted use (say, on a webmail server that only connects using imap) I will have less options specified. (And there are other examples, this is just the easiest to consider.) So this means I can't really just dump our custom packages to packages/All since files will get overwritten. So I wanted to do something like: /repos/ftp.freebsd.org/.../packages/All /repos/ftp.freebsd.org/.../packages/mail-custom /repos/ftp.freebsd.org/.../packages/db-custom /repos/ftp.freebsd.org/.../packages/web-custom The All are the original packages from ftp.freebsd.org and everything else is custom compiled packages. I then create symlinks for everything in All to mail-custom/, db-custom/, and so on. This doesn't work. When I pkg_add -r it always ends up looking in All/. I have to rename a dir to All, like so: # mv All All.old # mv mail-custom All And then it works. What is the best way to do this? Again, my goal is to only need to specify the one package I want rather than all of the dependencies too.