crunch.conf revision 156905
1#
2# $FreeBSD: head/release/picobsd/bridge/crunch.conf 156905 2006-03-20 14:24:58Z ru $
3#
4# configuration file for "bridge" floppy.
5# Depending on your needs, almost surely you will need to
6# modify your configuration to add/remove/change programs used in
7# the floppy image. Remember that some programs also require
8# matching kernel options to enable device drivers etc.
9#
10# Next to most of the programs i have tried to indicate the approximate
11# space consumed, but beware that these values change from release
12# to release, and might depend on the presence of other programs which
13# share the same libraries.
14#
15# NOTE: the string "/usr/src" will be automatically replaced with the
16# correct value set in 'build' script - you should change it there
17
18# Default build options. Basically tell the Makefiles which understand
19# that to use the most compact possible version of the code.
20#
21buildopts -DNO_PAM -DRELEASE_CRUNCH -DPPP_NO_NETGRAPH -DTRACEROUTE_NO_IPSEC -DNO_INET6
22buildopts -DWITHOUT_IPX
23
24# directories where to look for sources of various binaries.
25# @__CWD__@ is a magic keyword in the picobsd's (Makefile.conf)
26# which is replaced with the picobsd directory.
27srcdirs @__CWD__@/src
28
29# Some programs are especially written for PicoBSD and reside here
30# Make this first in the list so we can override standard programs
31# with the picobsd-specific ones.
32srcdirs /usr/src/release/picobsd/tinyware
33
34#
35# standard locations
36#
37srcdirs /usr/src/bin
38srcdirs /usr/src/sbin/i386
39srcdirs /usr/src/sbin
40srcdirs /usr/src/usr.bin
41srcdirs /usr/src/gnu/usr.bin
42srcdirs /usr/src/usr.sbin
43srcdirs /usr/src/libexec
44#
45# And there are others (mostly ports) which reside in their specific
46# directories. For them, we use the "special" commands to tell
47# crunchgen where to look for sources, objects, which Makefile
48# variables contain the list of sources and objects, and so on.
49
50# init is almost always necessary.
51progs init # 4KB.
52# fsck is almost always necessary, unless you have everything on the
53# image and use 'tar' or something similar to read/write raw blocks
54# from the floppy.
55progs fsck # 24KB.
56# ifconfig is needed if you want to configure interfaces...
57progs ifconfig # 4KB.
58#
59# You will also need a shell and a bunch of utilities.
60# The standard shell is not that large, but you need many
61# external programs. In fact most of them do not take much space
62# as they merely issue a system call, and print the result; the
63# libraries are already needed anyways, so they end up using almost
64# no additional memory.
65# There are a few exceptions such as 'less', which in 4.x is
66# rather large.
67progs sh # 36KB.
68ln sh -sh
69progs echo # 0KB.
70progs pwd
71progs mkdir rmdir
72progs chmod chown
73progs mv ln # 0KB.
74progs mount
75progs minigzip # 0KB.
76ln minigzip gzip
77progs cp # 0KB.
78progs rm
79progs ls
80progs kill
81progs df # 0KB.
82progs ps # 4KB.
83progs ns # 4KB.
84ln ns netstat
85progs vm # 0KB.
86progs cat # 0KB.
87progs test # 0KB.
88ln test [
89progs hostname # 0KB.
90progs login # 4KB.
91progs getty # 4KB.
92progs stty # 4KB.
93progs w # 0KB.
94progs msg # 0KB.
95ln msg dmesg
96progs reboot # 0KB.
97#progs less # 36KB
98#ln less more
99#progs more # 12KB
100special more srcdir /usr/ports/misc/44bsd-more/work
101
102progs sysctl
103progs swapon # 0KB.
104progs pwd_mkdb # 0KB.
105progs umount
106progs mount_std
107progs du # 0KB.
108progs tail # 0KB.
109progs tee # 0KB.
110progs passwd # 0KB.
111
112progs route # 8KB
113# progs mount_msdosfs
114# progs comcontrol
115#
116# If you want to run natd, remember the alias library
117#progs natd # 20KB
118#libs -lalias	# natd
119#
120# ppp is rather large. Note that as of Jan.01, RELEASE_CRUNCH
121# makes ppp not use libalias, so you cannot have aliasing.
122#progs ppp # 112KB
123
124# You need an editor. ee is relatively small, though there are
125# smaller ones. vi is much larger.
126# The editor also usually need a curses library.
127progs ee # 32KB.
128libs -lncurses
129# progs vi # ??
130# libs -lcurses # for vi
131
132#progs tcpdump # 100KB.
133special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump
134
135progs arp # 0KB.
136
137progs bsdlabel # 4KB.
138progs fdisk # 4KB.
139progs vnconfig # 0KB.
140
141#progs grep # 16KB.
142progs date # 4KB.
143#progs mount_nfs # 0KB.
144ln mount_nfs nfs
145progs ping # 4KB.
146#progs routed # 32KB.
147progs ipfw # 12KB.
148progs traceroute # 0KB.
149# progs mount_cd9660 # 4KB.
150# ln mount_cd9660 cd9660
151# progs newfs # 12KB.
152#ln newfs mount_mfs
153ln chown chgrp
154# ln mount_msdosfs msdos
155ln mount_std procfs
156ln mount_std mount_procfs
157
158# If you need to access the box remotely, and maybe copy files
159# from/to it, you can use telnet, rsh or ssh.
160# inetd is only needed for telnet and rshd
161#progs inetd # 12KB.
162#progs telnet # 20KB.
163#progs telnetd # 12KB.
164#progs ftp # 28KB.
165#progs tar # 32KB.
166
167# Check the ssh license! If you want to use this,
168# go to /usr/ports/security/ssh-picobsd, do a make extract configure
169# You also need to install /usr/ports/math/libgmp-freebsd
170#progs sshd	# includes ssh and scp
171special sshd objvar SSHD_OBJS
172special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
173special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
174ln sshd ssh
175ln sshd ssh1
176ln sshd scp
177#libs /usr/local/lib/libgmp.a
178
179libs -ll       # used by sh
180libs -lufs     # used by mount
181### ee uses ncurses instead of curses
182libs -ledit -lutil -lmd -lcrypt -lmp -lm -lkvm
183libs -lmytinfo -lz -lpcap -lwrap
184libs -ltermcap -lgnuregex # -lcurses
185libs -lgeom
186