]> CyberLeo.Net >> Repos - CDN/Mosi.git/blob - todo
script/makeworld: refactor to support command line options; clean up
[CDN/Mosi.git] / todo
1 Nabihi (remember (understand, perceive, notice))
2
3 * permanent system altroot for zpools - The best you can do is set mountpoint on the toplevel dataset; zpool mountpoints do not persist
4
5 * saveconfig:
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)
10
11 * pkg:
12   samba
13   hddtemp?
14   cfv? (python)
15
16 * /conf/
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
18
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.
20
21 # Try to work these into the library somewhere
22
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
26 leaf_ports() {
27   ( cd /var/db/pkg; ls -1 ) | while read pkg
28   do
29     pkg_info -Rq "${pkg}" | grep -q '' || pkg_info -oq "${pkg}"
30   done | sort
31 }
32
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.
37 bdep_tree() {
38   port="${1##/usr/ports/}"
39   printf "%${2}s%s\n" "" "${port}"
40   
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
45     do
46       bdep_tree "${port}" $(( ${2:-0} + 1 ))
47     done
48   )
49 }
50
51 # Display a tree of all runtime dependencies. Individual
52 # ports may appear more than once, as it is a tree and
53 # not a list.
54 rdep_tree() {
55   port="${1##/usr/ports/}"
56   printf "%${2}s%s\n" "" "${port}"
57   
58   ( cd /usr/ports/${port}
59     make run-depends-list | sort -u | while read port
60     do
61       rdep_tree "${port}" $(( ${2:-0} + 1 ))
62     done
63   )
64 }