jeroen.se
by jnieuwen
a quick glance at my package building host
03 March 2009 18:11 - During the last past months I have migrated from a FreeBSD 5.2 server to a FreeBSD 7.1 server. This also meant I had to migrate my jails to the new FreeBSD 7.1 machine. To save time compiling the same ports over and over again I created a package building jail, which contains all the generic packages for my jails. In this post a quick overview of the settings I made to get this working.
In the build jail I first installed portupgrade from the ports to make it easier to upgrade ports. After this I made the following setting in /etc/make.conf.
PACKAGES=/packages
This indicates that all packages should be created in the /packages directory. That being the location where I keep my packages on this host. Besides setting this in /etc/make.conf I also have to set this in /usr/local/etc/pkgtools.conf. This can be done by making sure the PACKAGES environment variable is set in this file. I.e.
ENV['PACKAGES'] ||= '/packages'
After this I just had to install all the base packages with make package-recursive. Upgrading of the packages can now be done with portupgrade -vrRap to make sure packages are being build during the upgrade process.
To allow the other jails and other machine I have exported the /packages directory on the build host as http://buildhost/packages
Configuring the clients is now straight forward in fact. In the /usr/local/etc/pkgtools.conf on the other jails I just had to set the PKG_SITES variable. I.e.
PKG_SITES = [ 'http://buildhost/packages/', ]
After this upgrading of the packages on the client jails can easily be done with portupgrade -avRrP. Or you can set the USE_PKGS_ONLY option in the pkgtools.conf file to specify the packages that only should be installed/upgraded from a package.
0 comments
Categories
Cycling (2)
Gadgets (3)
IPv6 (1)
Misc (27)
Scripting (25)
Travel (7)
Unix (24)
Archive
January 2013 (1)
October 2012 (1)
September 2012 (1)
May 2012 (1)
February 2012 (1)
January 2012 (1)
January 2011 (1)
November 2010 (1)
June 2010 (1)
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)