pavement

Poudriere

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(categories)
(configuration and building)
Line 1: Line 1:
'''Poudriere''' is a program to build ports into packages inside a jail. This system allows packages to be made without logging into the jail.
+
'''Poudriere''' is a program to create packages from port builds inside a jail. This system allows packages to be made without logging into the jail.
  
 
To install:
 
To install:
Line 7: Line 7:
  
 
==Setup==
 
==Setup==
Edit ''/usr/local/etc/poudriere.conf'' based on ''poudriere.conf.sample''
+
The following configurations are done within the directory ''/usr/local/etc/''.
 +
 
 +
Edit ''poudriere.conf'' based on ''poudriere.conf.sample''
 +
 
 +
Then create ''make.conf'' in the ''/usr/local/etc/poudriere.d/'' directory with:
 +
WITH_PKG=yes
 +
For specific makefiles, create <JAILNAME>-make.conf here.
 +
% vi amd64-make.conf
 +
 
 +
To configure source options, including source retrieval, edit ''src.conf'', and for custom files create <JAILNAME>-src.conf. See the manpage for '''src.conf''' for options.
  
 
Poudriere requires a portstree; to create it type:
 
Poudriere requires a portstree; to create it type:
 
  poudriere ports -c
 
  poudriere ports -c
 +
 +
Then it requires a base for each architecture and FreeBSD version you wish to compile for:
 +
poudriere jail -c -j <JAILNAME> -v 10.1-RELEASE -a ARCHITECTURE -m svn
 +
If the architecture isn't specified, it defaults to your system's architecture.
 +
 +
==Building==
 +
Create a file with a list of ''category/port'' in it to be referenced by the build. Example contents of <list1>:
 +
multimedia/gstreamer1
 +
To compile:
 +
% poudriere bulk -f ~/<list1> -j <JAILNAME>
  
 
==References==
 
==References==

Revision as of 02:23, 10 March 2015

Poudriere is a program to create packages from port builds inside a jail. This system allows packages to be made without logging into the jail.

To install:

pkg install poudriere

or

/usr/ports/ports-mgmt/poudriere/make install clean

Setup

The following configurations are done within the directory /usr/local/etc/.

Edit poudriere.conf based on poudriere.conf.sample

Then create make.conf in the /usr/local/etc/poudriere.d/ directory with:

WITH_PKG=yes

For specific makefiles, create <JAILNAME>-make.conf here.

% vi amd64-make.conf

To configure source options, including source retrieval, edit src.conf, and for custom files create <JAILNAME>-src.conf. See the manpage for src.conf for options.

Poudriere requires a portstree; to create it type:

poudriere ports -c

Then it requires a base for each architecture and FreeBSD version you wish to compile for:

poudriere jail -c -j <JAILNAME> -v 10.1-RELEASE -a ARCHITECTURE -m svn

If the architecture isn't specified, it defaults to your system's architecture.

Building

Create a file with a list of category/port in it to be referenced by the build. Example contents of <list1>:

multimedia/gstreamer1

To compile:

% poudriere bulk -f ~/<list1> -j <JAILNAME>

References

Personal tools