crunch.conf revision 95047
175899Sjoe# 275899Sjoe# $FreeBSD: head/release/picobsd/bridge/crunch.conf 95047 2002-04-19 12:39:09Z ru $ 375899Sjoe# 475899Sjoe# configuration file for "bridge" floppy. 575899Sjoe# Depending on your needs, almost surely you will need to 675899Sjoe# modify your configuration to add/remove/change programs used in 775899Sjoe# the floppy image. Remember that some programs also require 875899Sjoe# matching kernel options to enable device drivers etc. 975899Sjoe# 1075899Sjoe# Next to most of the programs i have tried to indicate the approximate 1175899Sjoe# space consumed, but beware that these values change from release 1275899Sjoe# to release, and might depend on the presence of other programs which 1375899Sjoe# share the same libraries. 1475899Sjoe# 1575899Sjoe# NOTE: the string "/usr/src" will be automatically replaced with the 1675899Sjoe# correct value set in 'build' script - you should change it there 1775899Sjoe 1875899Sjoe# Default build options. Basically tell the Makefiles which understand 1975899Sjoe# that to use the most compact possible version of the code. 2075899Sjoe# 2175899Sjoebuildopts -DNOPAM -DRELEASE_CRUNCH -DNONETGRAPH -DNOIPSEC -DNOINET6 2275899Sjoe 2375899Sjoe# directories where to look for sources of various binaries. 2484312Sluigi# Some programs are especially written for PicoBSD and reside here 2584312Sluigi# Make this first in the list so we can override standard programs 2684312Sluigi# with the picobsd-specific ones. 2784312Sluigisrcdirs /usr/src/release/picobsd/tinyware 2884312Sluigi# Other places to look. 2975899Sjoesrcdirs /usr/src/bin 3075899Sjoesrcdirs /usr/src/sbin/i386 3175899Sjoesrcdirs /usr/src/sbin 3275899Sjoesrcdirs /usr/src/usr.bin 3375899Sjoesrcdirs /usr/src/gnu/usr.bin 3475899Sjoesrcdirs /usr/src/usr.sbin 3575899Sjoesrcdirs /usr/src/libexec 3675899Sjoe# 3775899Sjoe# And there are others (mostly ports) which reside in their specific 3875899Sjoe# directories. For them, we use the "special" commands to tell 3975899Sjoe# crunchgen where to look for sources, objects, which Makefile 4075899Sjoe# variables contain the list of sources and objects, and so on. 4175899Sjoe 4275899Sjoe# init is almost always necessary. 4375899Sjoeprogs init # 4KB. 4475899Sjoe# fsck is almost always necessary, unless you have everything on the 4575899Sjoe# image and use 'tar' or something similar to read/write raw blocks 4675899Sjoe# from the floppy. 4775899Sjoeprogs fsck # 24KB. 4875899Sjoe# ifconfig is needed if you want to configure interfaces... 4975899Sjoeprogs ifconfig # 4KB. 5075899Sjoe# 5175899Sjoe# You will also need a shell and a bunch of utilities. 5275899Sjoe# The standard shell is not that large, but you need many 5375899Sjoe# external programs. In fact most of them do not take much space 5475899Sjoe# as they merely issue a system call, and print the result; the 5575899Sjoe# libraries are already needed anyways, so they end up using almost 5675899Sjoe# no additional memory. 5775899Sjoe# There are a few exceptions such as 'less', which in 4.x is 5875899Sjoe# rather large. 5975899Sjoeprogs sh # 36KB. 6075899Sjoeln sh -sh 6175899Sjoeprogs echo # 0KB. 6275899Sjoeprogs pwd 6375899Sjoeprogs mkdir rmdir 6475899Sjoeprogs chmod chown 6575899Sjoeprogs mv ln # 0KB. 6675899Sjoeprogs mount 6775899Sjoeprogs minigzip # 0KB. 6875899Sjoeln minigzip gzip 6975899Sjoeprogs cp # 0KB. 7075899Sjoeprogs rm 7175899Sjoeprogs ls 7275899Sjoeprogs kill 7375899Sjoeprogs df # 0KB. 7475899Sjoeprogs ps # 4KB. 7575899Sjoeprogs ns # 4KB. 7675899Sjoeln ns netstat 7775899Sjoeprogs vm # 0KB. 7875899Sjoeprogs cat # 0KB. 7975899Sjoeprogs test # 0KB. 8075899Sjoeln test [ 8175899Sjoeprogs hostname # 0KB. 8275899Sjoeprogs login # 4KB. 8375899Sjoeprogs getty # 4KB. 8475899Sjoeprogs stty # 4KB. 8575899Sjoeprogs w # 0KB. 8675899Sjoeprogs msg # 0KB. 8775899Sjoeln msg dmesg 8875899Sjoeprogs kget # 0KB. 8975899Sjoeprogs reboot # 0KB. 9075899Sjoe#progs less # 36KB 9175899Sjoe#ln less more 9283086Sluigi#progs more # 12KB 9390661Sluigispecial more srcdir /usr/ports/misc/44bsd-more/work 9475899Sjoe 9575899Sjoeprogs sysctl 9675899Sjoeprogs swapon # 0KB. 9775899Sjoeprogs pwd_mkdb # 0KB. 9875899Sjoeprogs dev_mkdb # 0KB. 9975899Sjoeprogs umount 10075899Sjoeprogs mount_std 10175899Sjoeprogs du # 0KB. 10275899Sjoeprogs tail # 0KB. 10375899Sjoeprogs tee # 0KB. 10475899Sjoeprogs passwd # 0KB. 10575899Sjoe 10675899Sjoeprogs route # 8KB 10777579Sru# progs mount_msdosfs 10875899Sjoe# progs comcontrol 10975899Sjoe# 11075899Sjoe# If you want to run natd, remember the alias library 11175899Sjoe#progs natd # 20KB 11275899Sjoe#libs -lalias # natd 11375899Sjoe# 11475899Sjoe# ppp is rather large. Note that as of Jan.01, RELEASE_CRUNCH 11575899Sjoe# makes ppp not use libalias, so you cannot have aliasing. 11675899Sjoe#progs ppp # 112KB 11775899Sjoe 11875899Sjoe# You need an editor. ee is relatively small, though there are 11975899Sjoe# smaller ones. vi is much larger. 12075899Sjoe# The editor also usually need a curses library. 12175899Sjoeprogs ee # 32KB. 12275899Sjoelibs -lncurses 12375899Sjoe# progs vi # ?? 12475899Sjoe# libs -lcurses # for vi 12575899Sjoe 12678544Sluigi#progs tcpdump # 100KB. 12775899Sjoespecial tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump 12875899Sjoe 12975899Sjoeprogs arp # 0KB. 13075899Sjoe 13175899Sjoeprogs disklabel # 4KB. 13275899Sjoeprogs fdisk # 4KB. 13375899Sjoeprogs vnconfig # 0KB. 13475899Sjoe 13591938Sluigi#progs grep # 16KB. 13675899Sjoeprogs date # 4KB. 13783086Sluigi#progs mount_nfs # 0KB. 13875899Sjoeln mount_nfs nfs 13975899Sjoeprogs ping # 4KB. 14075899Sjoe#progs routed # 32KB. 14175899Sjoeprogs ipfw # 12KB. 14275899Sjoeprogs traceroute # 0KB. 14375899Sjoe# progs mount_cd9660 # 4KB. 14475899Sjoe# ln mount_cd9660 cd9660 14575899Sjoe# progs newfs # 12KB. 14675899Sjoe#ln newfs mount_mfs 14775899Sjoeln chown chgrp 14877579Sru# ln mount_msdosfs msdos 14975899Sjoeln mount_std procfs 15075899Sjoeln mount_std mount_procfs 15175899Sjoe 15275899Sjoe# If you need to access the box remotely, and maybe copy files 15375899Sjoe# from/to it, you can use telnet, rsh or ssh. 15475899Sjoe# inetd is only needed for telnet and rshd 15590661Sluigi#progs inetd # 12KB. 15690661Sluigi#progs telnet # 20KB. 15790661Sluigi#progs telnetd # 12KB. 15875899Sjoe#progs ftp # 28KB. 15975899Sjoe#progs tar # 32KB. 16075899Sjoe 16175899Sjoe# Check the ssh license! If you want to use this, 16275899Sjoe# go to /usr/ports/security/ssh-picobsd, do a make extract configure 16390661Sluigiprogs sshd # includes ssh and scp 16475899Sjoespecial sshd objvar SSHD_OBJS 16575899Sjoespecial sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 16675899Sjoespecial sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 16784171Sluigiln sshd ssh 16884171Sluigiln sshd ssh1 16984171Sluigiln sshd scp 17075899Sjoe 17175899Sjoe### ee uses ncurses instead of curses 17275899Sjoelibs -ledit -lutil -lmd -lcrypt -lmp -lgmp -lm -lkvm 17375899Sjoelibs -lmytinfo -lipx -lz -lpcap -lwrap 17495047Srulibs -ltermcap -lgnuregex # -lcurses 175