Hi everyone, I'm pleased to announce a new pkgbuild image for testing. This builds on the work introduced in the pkgdev-15.1.0 image announced back in May with some additional changes:
- Updated pkgsrc bootstrap kits and source to 2015Q2. - Introduced Dave Eddy's node-fs-caching-server to automatically cache package downloads. This significantly improves chroot setup time for subsequent runs as the tools packages are now downloaded only once. - Moved under /data prefix to match other builds, and renamed image from pkgdev to pkgbuild. - Provide 'joyent' and 'wip' git submodules by default. - Many joyent/pkgbuild.git updates and improvements. The image is 317MB and available in Manta: http://us-east.manta.joyent.com/pkgsrc/public/images/pkgbuild-15.2.0.json http://us-east.manta.joyent.com/pkgsrc/public/images/pkgbuild-15.2.0.zfs.gz Once the image is installed and you have a pkgbuild zone up and running, here is an example of how to build Postfix with the 'pgsql' option enabled. - Create a 2015Q1-i386 sandbox and chroot into it. If you want 64-bit instead, use '-x86_64', or '-multiarch' for multiarch. The first time this is run the packages will need to be fetched from pkgsrc.joyent.com, but subsequent runs will re-use the cached copies under /data/packages. $ run-sandbox 2015Q2-i386 - Edit the mk.conf file, adding 'pgsql' to the postfix options. $ vi /opt/local/etc/mk.conf PKG_OPTIONS.postfix+= pgsql $ bmake show-options ... These options are currently enabled: ldap pcre pgsql sasl sqlite tls ... - Build the package. $ cd /data/pkgsrc/mail/postfix $ bmake package - Once finished, the package is now built and available under /data/packages for use. $ pkg_info -Q PKG_OPTIONS /data/packages/SmartOS/2015Q2/i386/All/postfix-2.11.6.tgz ldap pcre pgsql sasl sqlite tls - Exit the sandbox and everything will automatically be cleaned up. $ exit Please give it a spin, and provide any feedback as issues against the pkgbuild repository: https://github.com/joyent/pkgbuild Thanks! -- Jonathan Perkin - Joyent, Inc. - www.joyent.com ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
