Skip to content

Instantly share code, notes, and snippets.

@wiedi
Last active November 18, 2021 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiedi/e4dd12ed084193a3f76f to your computer and use it in GitHub Desktop.
Save wiedi/e4dd12ed084193a3f76f to your computer and use it in GitHub Desktop.
quick copy paste guide to pkgsrc build zone

build zone

a copy paste guide to pkgsrc building.

make sure your zone has a delegate_dataset

pkgin install -y build-essential nano pkgdiff url2pkg
echo "export EDITOR=nano" >> ~/.profile

DDS=zones/$(mdata-get sdc:uuid)/data
zfs create ${DDS}/pkgsrc
zfs set mountpoint=/content ${DDS}/pkgsrc
zfs set compression=lz4     ${DDS}/pkgsrc

cd /content/
git clone git://github.com/joyent/pkgsrc.git
cd pkgsrc
git checkout joyent/release/trunk
git submodule init
git submodule update

mkdir -p /content/{distfiles,packages}

nano /opt/local/etc/mk.conf.local

append:

DISTDIR=        /content/distfiles
PACKAGES=       /content/packages
WRKOBJDIR=      /var/tmp/pkgsrc-build
ALLOW_VULNERABLE_PACKAGES=      yes
SKIP_LICENSE_CHECK=             yes

MAKE_JOBS=      32

FETCH_USING=    curl
PKG_DEVELOPER=yes

USE_CWRAPPERS=			yes

JPEG_DEFAULT= libjpeg-turbo

PKG_OPTIONS.exim+=      spf exim-lookup-sqlite exim-lookup-redis
PKG_OPTIONS.znc+=       sasl

PKG_OPTIONS.gnustep+=	fragile

PKGMANDIR=	share/man

in /opt/local/etc/pkg_install.conf remove

VERIFIED_INSTALLATION=trusted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment