1 Nabihi (remember (understand, perceive, notice))
3 * permanent system altroot for zpools - The best you can do is set mountpoint on the toplevel dataset; zpool mountpoints do not persist
6 use /conf/tmp as a proc lock. /conf/tmp/pid stores the saveconfig pid.
7 If /conf/tmp is more than 5 minutes(?) old, or saveconfig isn't running as that pid, then wipe it and start over.
8 If not, then complain and exit.
9 Add saveconfig to periodic (or cron) to save every day (or hour)
17 Alter conf stuff to support tmpfs_size as well as md_size, to use tmpfs mounts instead of mdmfs mounts for diskless-remount storage
19 Try makefs? - While makefs does allow non-root manipulation, it does not provide nearly enough control over the resultant filesystem size to make it useful for packing.
21 # Try to work these into the library somewhere
23 # Leaf ports are ports that have nothing depending upon them
24 # These are generally the top-level ports; everything else should
25 # be pulled in by them
27 ( cd /var/db/pkg; ls -1 ) | while read pkg
29 pkg_info -Rq "${pkg}" | grep -q '' || pkg_info -oq "${pkg}"
33 # Display a tree of all build dependencies (and
34 # any runtime dependencies those build dependencies
35 # depend upon). Individual ports may appear more than
36 # once, as it is a tree and not a list.
38 port="${1##/usr/ports/}"
39 printf "%${2}s%s\n" "" "${port}"
41 ( cd /usr/ports/${port}
42 ( make build-depends-list
43 [ "${2:-0}" -gt 0 ] && make run-depends-list
44 ) | sort -u | while read port
46 bdep_tree "${port}" $(( ${2:-0} + 1 ))
51 # Display a tree of all runtime dependencies. Individual
52 # ports may appear more than once, as it is a tree and
55 port="${1##/usr/ports/}"
56 printf "%${2}s%s\n" "" "${port}"
58 ( cd /usr/ports/${port}
59 make run-depends-list | sort -u | while read port
61 rdep_tree "${port}" $(( ${2:-0} + 1 ))