From owner-freebsd-questions@FreeBSD.ORG Thu Jul 23 07:48:38 2009 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 11621106566B for ; Thu, 23 Jul 2009 07:48:38 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9A5D48FC1A for ; Thu, 23 Jul 2009 07:48:37 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by fxm18 with SMTP id 18so623517fxm.43 for ; Thu, 23 Jul 2009 00:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=7zqldjBVDy5JXlE8FIMNmh5Lb7ieBvpB+srMJvDasRI=; b=NngurdYQ9pOISGZG2LAsQ2YqDllVyA64+cLKMe13AR4gkEcfvxL+iuSG2MaglxbUA2 6CHbUUe229jl0OnTwHCVyRZ6u4QTZceueEHGkBLcB+MHMED8gtKkijbmCGghjhGEpQHy 4jg1CSNO8OTPhEsAo4A/f/R0PU6zX6520z6c4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=YUb3FNLnl26Pznko5QjVFm1ieREqwlZwDcBeGVtfgq8HmTqP6dtdpgVBmQWNkUdXZN 4jPCNTAcZaxQ0KHenM4frK2C0by4iD2JtyghdUJrtft2320PqJdec+gRFNP7rJJ/FTJN w6RTOvJDfQDYI+CH3W/01DLLqyibL7S3bzc38= MIME-Version: 1.0 Received: by 10.239.135.210 with SMTP id e18mr172687hbe.135.1248335316553; Thu, 23 Jul 2009 00:48:36 -0700 (PDT) Date: Thu, 23 Jul 2009 07:48:36 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: sfourman@gmail.com Subject: Re: Ports and package creation Automation 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: Thu, 23 Jul 2009 07:48:39 -0000 > I know that pkg_create command will create packages for the other 3 boxes. > if I am going to rebuild all of my ports from scratch, can I somehow > tell FreeBSD > to create a package all the time and store it in a directory? In addition to what the others have mentioned, you can also use "portmaster -g" to create the packages. > also what file do I modify to tell the other local machines where to > find the packages? > can this be a sftp url? it would be convenient cause sshd is installed in base. That depends upon how you are going to manage the package installation on the other machines. If you are using pkg_add(1), then you can either use full URLs like: pkg_add ftp://packagemachineipaddress/packagedirectory/www/firefox-3.5.1,1.tbz or you can define either PKG_PATH, PACKAGEROOT, or PACKAGESITE in the environment in which you're going to call pkg_add: env PACKAGEROOT='ftp://packagemachineipaddress/packagedirectory/' pkg_add -r firefox35 You can test your settings with "pkg_add -nvr" to see from where it is trying to fetch packages. See the pkg_add(1) manpage. Note that if you use pkg_add(1), you are limited to schemes supported by fetch(3) for remote packages. I don't think this includes sftp:// or ftps://, although I think it does support http:// with basic authentication and password-protected ftp. Of course, you could perhaps tunnel your ftp through ssh; or you could turn remote packages into "local" packages by mounting the remote package directory via Samba or NFS, protected by Kerberos or IPSEC if you wish. If you use portupgrade/portinstall -PP, then you can define PACKAGESITE and PKG_FETCH in the environment, where PKG_FETCH is an sftp-aware client like curll(1) from ftp/curl, with the appropriate flags. See the portupgrade(1) manpage. b.