crunch.conf revision 139115
150471Speter# 21556Srgrimes# $FreeBSD: head/release/picobsd/bridge/crunch.conf 139115 2004-12-21 10:49:29Z ru $ 31556Srgrimes# 41556Srgrimes# configuration file for "bridge" floppy. 51556Srgrimes# Depending on your needs, almost surely you will need to 61556Srgrimes# modify your configuration to add/remove/change programs used in 71556Srgrimes# the floppy image. Remember that some programs also require 81556Srgrimes# matching kernel options to enable device drivers etc. 91556Srgrimes# 101556Srgrimes# Next to most of the programs i have tried to indicate the approximate 111556Srgrimes# space consumed, but beware that these values change from release 121556Srgrimes# to release, and might depend on the presence of other programs which 131556Srgrimes# share the same libraries. 1427965Ssteve# 151556Srgrimes# NOTE: the string "/usr/src" will be automatically replaced with the 161556Srgrimes# correct value set in 'build' script - you should change it there 171864Swollman 181556Srgrimes# Default build options. Basically tell the Makefiles which understand 191556Srgrimes# that to use the most compact possible version of the code. 201556Srgrimes# 211556Srgrimesbuildopts -DNOPAM -DRELEASE_CRUNCH -DNONETGRAPH -DNOIPSEC -DNO_INET6 2227965Ssteve 231556Srgrimes# directories where to look for sources of various binaries. 2427965Ssteve# @__CWD__@ is a magic keyword in the picobsd's (Makefile.conf) 251556Srgrimes# which is replaced with the picobsd directory. 2627965Sstevesrcdirs @__CWD__@/src 2727965Ssteve 2827965Ssteve# Some programs are especially written for PicoBSD and reside here 2927965Ssteve# Make this first in the list so we can override standard programs 3027965Ssteve# with the picobsd-specific ones. 3127965Sstevesrcdirs /usr/src/release/picobsd/tinyware 3227965Ssteve 331556Srgrimes# 341556Srgrimes# standard locations 3527969Ssteve# 3627969Sstevesrcdirs /usr/src/bin 3727969Sstevesrcdirs /usr/src/sbin/i386 381556Srgrimessrcdirs /usr/src/sbin 3927969Sstevesrcdirs /usr/src/usr.bin 401556Srgrimessrcdirs /usr/src/gnu/usr.bin 411556Srgrimessrcdirs /usr/src/usr.sbin 42srcdirs /usr/src/libexec 43# 44# And there are others (mostly ports) which reside in their specific 45# directories. For them, we use the "special" commands to tell 46# crunchgen where to look for sources, objects, which Makefile 47# variables contain the list of sources and objects, and so on. 48 49# init is almost always necessary. 50progs init # 4KB. 51# fsck is almost always necessary, unless you have everything on the 52# image and use 'tar' or something similar to read/write raw blocks 53# from the floppy. 54progs fsck # 24KB. 55# ifconfig is needed if you want to configure interfaces... 56progs ifconfig # 4KB. 57# 58# You will also need a shell and a bunch of utilities. 59# The standard shell is not that large, but you need many 60# external programs. In fact most of them do not take much space 61# as they merely issue a system call, and print the result; the 62# libraries are already needed anyways, so they end up using almost 63# no additional memory. 64# There are a few exceptions such as 'less', which in 4.x is 65# rather large. 66progs sh # 36KB. 67ln sh -sh 68progs echo # 0KB. 69progs pwd 70progs mkdir rmdir 71progs chmod chown 72progs mv ln # 0KB. 73progs mount 74progs minigzip # 0KB. 75ln minigzip gzip 76progs cp # 0KB. 77progs rm 78progs ls 79progs kill 80progs df # 0KB. 81progs ps # 4KB. 82progs ns # 4KB. 83ln ns netstat 84progs vm # 0KB. 85progs cat # 0KB. 86progs test # 0KB. 87ln test [ 88progs hostname # 0KB. 89progs login # 4KB. 90progs getty # 4KB. 91progs stty # 4KB. 92progs w # 0KB. 93progs msg # 0KB. 94ln msg dmesg 95progs reboot # 0KB. 96#progs less # 36KB 97#ln less more 98#progs more # 12KB 99special more srcdir /usr/ports/misc/44bsd-more/work 100 101progs sysctl 102progs swapon # 0KB. 103progs pwd_mkdb # 0KB. 104progs umount 105progs mount_std 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 disklabel # 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 154ln mount_std procfs 155ln mount_std mount_procfs 156 157# If you need to access the box remotely, and maybe copy files 158# from/to it, you can use telnet, rsh or ssh. 159# inetd is only needed for telnet and rshd 160#progs inetd # 12KB. 161#progs telnet # 20KB. 162#progs telnetd # 12KB. 163#progs ftp # 28KB. 164#progs tar # 32KB. 165 166# Check the ssh license! If you want to use this, 167# go to /usr/ports/security/ssh-picobsd, do a make extract configure 168# You also need to install /usr/ports/math/libgmp-freebsd 169#progs sshd # includes ssh and scp 170special sshd objvar SSHD_OBJS 171special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 172special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 173ln sshd ssh 174ln sshd ssh1 175ln sshd scp 176#libs /usr/local/lib/libgmp.a 177 178libs -ll # used by sh 179libs -lufs # used by mount 180### ee uses ncurses instead of curses 181libs -ledit -lutil -lmd -lcrypt -lmp -lm -lkvm 182libs -lmytinfo -lipx -lz -lpcap -lwrap 183libs -ltermcap -lgnuregex # -lcurses 184