#!/bin/sh set -e mkdir -p /usr/local/etc/ssl /usr/local/etc/pkg/repos fetch -o /usr/local/etc/ssl/mouf.net_ca_cert.pem http://meatwad.mouf.net/~swills/mouf.net_ca_cert.pem echo 'pkg_env: { SSL_CA_CERT_FILE: "/usr/local/etc/ssl/mouf.net_ca_cert.pem" }' > /usr/local/etc/pkg.conf echo 'FreeBSD: { enabled: false }' > /usr/local/etc/pkg/repos/FreeBSD.conf cat << EOF > /usr/local/etc/pkg/repos/mouf.conf mouf: { url: "https://pkg.mouf.net/\${ABI}" } EOF OS=`uname -s` PLAT=`uname -p` VER=`uname -r | sed -e 's/\..*//g'` ABI=${OS}:${VER}:${PLAT} env ASSUME_ALWAYS_YES=yes \ SIGNATURE_TYPE=none \ SSL_CA_CERT_FILE=/usr/local/etc/ssl/mouf.net_ca_cert.pem \ PACKAGESITE=https://pkg.mouf.net/${ABI}/ \ pkg bootstrap