From ae67010fdd52e9d9254d4965ac850473185d4710 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Thu, 23 Sep 2010 21:00:15 -0500 Subject: [PATCH] todo: update --- todo | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/todo b/todo index 81b31b5..8dcb7a0 100644 --- a/todo +++ b/todo @@ -1,6 +1,6 @@ Nabihi (remember (understand, perceive, notice)) -* permanent system altroot for zpools +* permanent system altroot for zpools - The best you can do is set mountpoint on the toplevel dataset; zpool mountpoints do not persist * saveconfig: use /conf/tmp as a proc lock. /conf/tmp/pid stores the saveconfig pid. @@ -16,4 +16,49 @@ Nabihi (remember (understand, perceive, notice)) * /conf/ Alter conf stuff to support tmpfs_size as well as md_size, to use tmpfs mounts instead of mdmfs mounts for diskless-remount storage -Try makefs? \ No newline at end of file +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. + +# Try to work these into the library somewhere + +# Leaf ports are ports that have nothing depending upon them +# These are generally the top-level ports; everything else should +# be pulled in by them +leaf_ports() { + ( cd /var/db/pkg; ls -1 ) | while read pkg + do + pkg_info -Rq "${pkg}" | grep -q '' || pkg_info -oq "${pkg}" + done | sort +} + +# Display a tree of all build dependencies (and +# any runtime dependencies those build dependencies +# depend upon). Individual ports may appear more than +# once, as it is a tree and not a list. +bdep_tree() { + port="${1##/usr/ports/}" + printf "%${2}s%s\n" "" "${port}" + + ( cd /usr/ports/${port} + ( make build-depends-list + [ "${2:-0}" -gt 0 ] && make run-depends-list + ) | sort -u | while read port + do + bdep_tree "${port}" $(( ${2:-0} + 1 )) + done + ) +} + +# Display a tree of all runtime dependencies. Individual +# ports may appear more than once, as it is a tree and +# not a list. +rdep_tree() { + port="${1##/usr/ports/}" + printf "%${2}s%s\n" "" "${port}" + + ( cd /usr/ports/${port} + make run-depends-list | sort -u | while read port + do + rdep_tree "${port}" $(( ${2:-0} + 1 )) + done + ) +} -- 2.42.0