]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - release/picobsd/qemu/crunch.conf
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / release / picobsd / qemu / crunch.conf
1 #
2 # $FreeBSD$
3 #
4 # Configuration file for "qemu" images..
5 #
6 # Depending on your needs, you will almost surely need to
7 # add/remove/change programs according to your needs.
8 # Remember that some programs require matching kernel options to
9 # enable device drivers etc.
10 #
11 # To figure out how much space is used by each program, do
12 #
13 #       size build_dir-bridge/crunch/*lo
14 #
15 # Remember that programs require libraries, which add up to the
16 # total size. The final binary is build_dir-bridge/mfs.tree/stand/crunch
17 # and you can check which libraries it uses with
18 #
19 #       ldd build_dir-bridge/mfs.tree/stand/crunch
20
21 # crunchgen configuration to build the crunched binary, see "man crunchgen"
22 # We need to specify generic build options, the places where to look
23 # for sources, and the list of program and libraries we want to put
24 # in the crunched binary.
25 #
26 # NOTE: the string "/usr/src" below will be automatically replaced with
27 # the path set in the 'build' script.
28
29 # Default build options. Basically tell the Makefiles
30 # that to use the most compact possible version of the code.
31
32 buildopts -DNO_PAM -DRELEASE_CRUNCH -DPPP_NO_NETGRAPH
33 buildopts -DTRACEROUTE_NO_IPSEC -DNO_INET6
34 buildopts -DWITHOUT_IPX
35
36 # Directories where to look for sources of various binaries.
37 # @__CWD__@ is a magic keyword in the picobsd's (Makefile.conf)
38 # which is replaced with the directory with the picobsd configuration
39 # corresponding to your image. This way you can have custom sources
40 # in that directory overriding system programs.
41
42 srcdirs @__CWD__@/src
43
44 # Some programs are especially written for PicoBSD and reside in
45 # release/picobsd/tinyware.
46 # Put this entry near the head of the list to override standard binaries.
47
48 srcdirs /usr/src/release/picobsd/tinyware
49
50 # Other standard locations for sources.
51 # If a program uses its own source directory, add
52
53 srcdirs /usr/src/bin
54 srcdirs /usr/src/sbin/i386
55 srcdirs /usr/src/sbin
56 srcdirs /usr/src/usr.bin
57 srcdirs /usr/src/gnu/usr.bin
58 srcdirs /usr/src/usr.sbin
59 srcdirs /usr/src/libexec
60
61 # For programs that reside in different places, the best option
62 # is to use the command "special XXX srcdir YYY" where XXX is the
63 # program name and YYY is the directory path.
64 # "special XXX ..." can be used to specify more options, see again
65 # the crunchgen manpage.
66
67 #--- Basic configuraton
68 # init is always necessary (unless you have a replacement, oinit)
69 progs init
70
71 # fsck is almost always necessary, unless you have everything on the
72 # image and use 'tar' or something similar to read/write raw blocks
73 # from the floppy.
74
75 progs fsck
76
77 # ifconfig is needed if you want to configure interfaces.
78 progs ifconfig
79
80 # You will also need a shell and a bunch of utilities.
81 # The standard shell is not that large, but you need many
82 # external programs. In fact most of them do not take much space
83 # as they merely issue a system call, and print the result.
84 # For a more compact version of shell and utilities, you could
85 # try busybox, however most system management commands in busybox
86 # will not work as they use linux-specific interfaces.
87
88 progs sh
89 ln sh -sh
90
91 # the small utilities
92 progs echo
93 progs pwd mkdir rmdir
94 progs chmod chown
95 ln chown chgrp
96 progs mv ln cp rm ls
97 progs cat tail tee
98 progs test
99 ln test [
100
101 progs less
102 ln less more
103 progs mount
104 progs minigzip
105 ln minigzip gzip
106 progs kill
107 progs df
108 progs ps
109 progs ns        # this is the picobsd version
110 ln ns netstat
111 progs vm
112 progs hostname
113 progs login
114 progs getty
115 progs stty
116 progs w
117 progs msg
118 ln msg dmesg
119 progs reboot
120
121 progs sysctl
122 progs swapon
123 progs pwd_mkdb
124 progs umount
125 progs du
126 progs passwd
127
128 progs route
129
130 # If you want to run natd, remember the alias library
131 progs natd
132 libs_so -lalias # natd
133 progs tcpdump
134 special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump
135 libs_so -lpcap # used by tcpdump
136
137 # ppp is rather large. Note that as of Jan.01, RELEASE_CRUNCH
138 # makes ppp not use libalias, so you cannot have aliasing.
139 #progs ppp
140
141 # You need an editor. ee is relatively small, though there are
142 # smaller ones. vi is much larger.
143 # The editor also usually need a curses library.
144 progs ee
145
146 progs arp
147
148 # these require libgeom
149 # progs bsdlabel fdisk mdconfig
150
151 progs kldload kldunload kldstat
152 progs kldxref
153 progs grep
154 libs_so -lgnuregex -lbz2
155 # dhclient-script requires 'sed'
156 progs dhclient
157 progs sed
158 progs date
159 progs time
160 progs ping
161 #progs routed
162 progs ipfw
163 progs traceroute
164 progs mdmfs
165 ln mdmfs mount_mfs
166 # Various filesystem support -- remember to enable the kernel parts
167 # progs mount_msdosfs
168 progs mount_nfs
169 # progs mount_cd9660
170 ln mount_nfs nfs
171 ln mount_cd9660 cd9660
172 #progs newfs
173 #ln newfs mount_mfs
174 # ln mount_msdosfs msdos
175
176 # For a small ssh client/server use dropbear
177
178 # Now the libraries
179 libs_so -lc             # the C library
180 libs_so -ll             # used by sh (really ?)
181 libs_so -lufs           # used by mount
182 ### ee uses ncurses but as a dependency
183 #libs_so -lncurses
184 libs_so -lm
185 libs_so -ledit -lutil
186 libs_so -lcrypt
187 libs_so -lkvm
188 libs_so -lz
189 libs_so -lbsdxml
190 libs_so -lsbuf
191 libs_so -ljail  # used by ifconfig