crunch.conf revision 173597
1#
2# $FreeBSD: head/release/picobsd/bridge/crunch.conf 173597 2007-11-14 05:42:54Z luigi $
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 du # 0KB.
107progs tail # 0KB.
108progs tee # 0KB.
109progs passwd # 0KB.
110
111progs route # 8KB
112# progs mount_msdosfs
113# progs comcontrol
114#
115# If you want to run natd, remember the alias library
116#progs natd # 20KB
117#libs -lalias	# natd
118#
119# ppp is rather large. Note that as of Jan.01, RELEASE_CRUNCH
120# makes ppp not use libalias, so you cannot have aliasing.
121#progs ppp # 112KB
122
123# You need an editor. ee is relatively small, though there are
124# smaller ones. vi is much larger.
125# The editor also usually need a curses library.
126progs ee # 32KB.
127libs -lncurses
128# progs vi # ??
129# libs -lcurses # for vi
130
131#progs tcpdump # 100KB.
132special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump
133
134progs arp # 0KB.
135
136progs bsdlabel # 4KB.
137progs fdisk # 4KB.
138progs vnconfig # 0KB.
139
140#progs grep # 16KB.
141progs date # 4KB.
142#progs mount_nfs # 0KB.
143ln mount_nfs nfs
144progs ping # 4KB.
145#progs routed # 32KB.
146progs ipfw # 12KB.
147progs traceroute # 0KB.
148# progs mount_cd9660 # 4KB.
149# ln mount_cd9660 cd9660
150# progs newfs # 12KB.
151#ln newfs mount_mfs
152ln chown chgrp
153# ln mount_msdosfs msdos
154
155# If you need to access the box remotely, and maybe copy files
156# from/to it, you can use telnet, rsh or ssh.
157# inetd is only needed for telnet and rshd
158#progs inetd # 12KB.
159#progs telnet # 20KB.
160#progs telnetd # 12KB.
161#progs ftp # 28KB.
162#progs tar # 32KB.
163
164# Check the ssh license! If you want to use this,
165# go to /usr/ports/security/ssh-picobsd, do a make extract configure
166# You also need to install /usr/ports/math/libgmp-freebsd
167#progs sshd	# includes ssh and scp
168special sshd objvar SSHD_OBJS
169special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
170special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27
171ln sshd ssh
172ln sshd ssh1
173ln sshd scp
174#libs /usr/local/lib/libgmp.a
175
176libs -ll       # used by sh
177libs -lufs     # used by mount
178### ee uses ncurses instead of curses
179libs -ledit -lutil -lmd -lcrypt -lmp -lm -lkvm
180# libs -lmytinfo
181libs -lz -lpcap -lwrap
182libs -ltermcap -lgnuregex # -lcurses
183libs -lgeom
184