Skip to content

rworksjp/freebsd-ports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

freebsd-ports

License

The add-on ports tree for FreeBSD ports system.

How to use

To build packages in this repository:

Preparation

Install portshaker and poudriere:

# pkg install portshaker poudriere

(Recommended but optional) Install dialog4ports, to specify ports build option with poudriere options:

# pkg install dialog4ports

Put /usr/local/etc/portshaker.d/freebsd_ports:

#!/bin/sh
# $Id$

. /usr/local/share/portshaker/portshaker.subr

method="git"
git_clone_uri="https://github.com/freebsd/freebsd-ports.git"

run_portshaker_command $*

and /usr/local/etc/portshaker.d/rworksjp:

#!/bin/sh

. /usr/local/share/portshaker/portshaker.subr

method="git"
git_clone_uri="https://github.com/rworksjp/freebsd-ports.git"

run_portshaker_command $*

Edit /usr/local/etc/portshaker.conf:

mirror_base_dir=/var/cache/portshaker
poudriere_ports_mountpoint="/usr/local/poudriere/ports"

rworksjp_poudriere_tree=rworksjp
rworksjp_merge_from="freebsd_ports rworksjp"

(Optional) When you have a ZFS pool and want to build packages with it, the following instructions are required:

  • Add ZPOOL=zroot line in /usr/local/etc/poudriere.conf, if you have a ZFS pool named zroot.
  • Create a ZFS filesystem for portshaker, zfs create -o mountpoint=/var/cache/portshaker zroot/portshaker, if you have a ZFS pool named zroot.
  • Add use_zfs=yes and poudriere_dataset="data/poudriere" lines in /usr/local/etc/portshaker.conf.

For people building lots of packages, compression option of ZFS filesystem give a help to reduce disk usage.

Creating poudirere builder jail, for example:

# poudriere jails -c -j FreeBSD:10:amd64 -v 10.2-RELEASE -a amd64

Updating and building ports tree

Update ports trees and merge them with portshaker, instead of poudriere ports -u:

# portshaker

Build sysutils/glusterfs package with FreeBSD:10:amd64 builder:

# poudriere bulk -j FreeBSD:10:amd64 -p rworksjp sysutils/glusterfs

This creates packages, glusterfs its own and required, usually under /usr/local/poudriere/data/packages/FreeBSD:10:amd64-rworksjp/

License

Licensed under the BSD 2-clause License. For detailed information see LICENSE.

Further readings

About portshaker, consult following:

About poudriere, consult following:

About

The add-on ports tree for FreeBSD ports system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published