#!/bin/sh #This script creates packages of all installed ports. #Pretty fly when you are planning a reinstall of the system. find /var/db/pkg -maxdepth 1 -type d \ | while read port; do pkg_create -b $(basename "$port"); done