head	1.6;
access;
symbols
	RELENG_4_11_0_RELEASE:1.2.2.1
	RELENG_4_11:1.2.2.1.0.12
	RELENG_4_11_BP:1.2.2.1
	RELENG_4_10_0_RELEASE:1.2.2.1
	RELENG_4_10:1.2.2.1.0.10
	RELENG_4_10_BP:1.2.2.1
	RELENG_4_9_0_RELEASE:1.2.2.1
	RELENG_4_9:1.2.2.1.0.8
	RELENG_4_9_BP:1.2.2.1
	RELENG_4_8_0_RELEASE:1.2.2.1
	RELENG_4_8:1.2.2.1.0.6
	RELENG_4_8_BP:1.2.2.1
	RELENG_4_7_0_RELEASE:1.2.2.1
	RELENG_4_7:1.2.2.1.0.4
	RELENG_4_7_BP:1.2.2.1
	RELENG_4_6_2_RELEASE:1.2.2.1
	RELENG_4_6_1_RELEASE:1.2.2.1
	RELENG_4_6_0_RELEASE:1.2.2.1
	RELENG_4_6:1.2.2.1.0.2
	RELENG_4_6_BP:1.2.2.1
	RELENG_4_5_0_RELEASE:1.2
	RELENG_4_5:1.2.0.8
	RELENG_4_5_BP:1.2
	RELENG_4_4_0_RELEASE:1.2
	RELENG_4_4:1.2.0.6
	RELENG_4_4_BP:1.2
	RELENG_4_3_0_RELEASE:1.2
	RELENG_4_3:1.2.0.4
	RELENG_4_3_BP:1.2
	RELENG_4_2_0_RELEASE:1.2
	RELENG_4_1_1_RELEASE:1.2
	PRE_SMPNG:1.4
	RELENG_4_1_0_RELEASE:1.2
	RELENG_4_0_0_RELEASE:1.2
	RELENG_4:1.2.0.2
	RELENG_4_BP:1.2;
locks; strict;
comment	@# @;


1.6
date	2001.11.19.18.03.52;	author joe;	state dead;
branches;
next	1.5;

1.5
date	2001.04.03.13.34.33;	author ru;	state Exp;
branches;
next	1.4;

1.4
date	2000.07.31.11.00.01;	author nbm;	state Exp;
branches;
next	1.3;

1.3
date	2000.07.18.13.43.38;	author nbm;	state Exp;
branches;
next	1.2;

1.2
date	99.12.20.02.10.16;	author grog;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	99.12.10.21.51.56;	author grog;	state Exp;
branches;
next	;

1.2.2.1
date	2002.03.08.12.55.38;	author luigi;	state dead;
branches;
next	;


desc
@@


1.6
log
@Cull picobsd/custom.  It's bit rotted beyond all recognition.

Approved by:	freebsd-small
@
text
@#
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.5 2001/04/03 13:34:33 ru Exp $
#
SRC?=/usr/src

COMMOBJ?=	${.OBJDIR}/../../common-obj

all: crunch

crunch1.conf: crunch.conf
	@@cat ${.ALLSRC} | sed -e "s@@/usr/src@@${SRC}@@" > ${.TARGET}

crunch.mk: crunch1.conf crunch.inc
	@@crunchgen -h ${.CURDIR}/crunch.inc -m crunch.mk crunch1.conf

crunch1.mk: crunch.mk
	@@sed -e "s@@make depend@@make obj \&\& make depend@@" \
		-e "s@@/usr/obj/@@${COMMOBJ}@@" crunch.mk > ${.TARGET}

crunch: crunch1.mk
	@@if [ ! -d build ]; then mkdir build; fi
	@@cp crunch1.c build/
	@@(cd build && env MAKEOBJDIRPREFIX=${COMMOBJ} \
	    ${MAKE} -f ../crunch1.mk -DNOPAM all \
	    "CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT") #2>&1 >/dev/null

clean:
	rm -rf build
	rm  -f *.o *.stub *.lo *_stub.c *.mk \
		crunch.cache \
		crunch.mk \
		crunch.c \
		crunch1* \
		crunch \
		.tmp_* \
		*~ \
		*.gz

install: 
	rm -f ${MFS_MOUNTPOINT}/sbin/*
	cp build/crunch1 ${MFS_MOUNTPOINT}/sbin/crunch
	chmod 555 ${MFS_MOUNTPOINT}/sbin/crunch
	for i in `crunchgen -l crunch1.conf` ; \
	do \
		ln ${MFS_MOUNTPOINT}/sbin/crunch ${MFS_MOUNTPOINT}/sbin/$${i}; \
	done
	rm ${MFS_MOUNTPOINT}/sbin/crunch
	# Install the MIB files
	#cp mibs/*.txt ${MFS_MOUNTPOINT}/usr/local/share/snmp/mibs/


.include <bsd.prog.mk>
@


1.5
log
@Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY in
${CFLAGS}.  The only supported method thus is -DRELEASE_CRUNCH.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.4 2000/07/31 11:00:01 nbm Exp $
@


1.4
log
@Fix the obvious make and sed syntax errors lurking from my last "fix".
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.3 2000/07/18 13:43:38 nbm Exp $
d25 1
a25 1
	    "CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT") #2>&1 >/dev/null
@


1.3
log
@Make a separate build directory in which to put all the generated
objects, to simplify working with PicoBSD.

Add the ability to put make instructions in crunch.inc to pass to the
build process.

Now explicitly make the objects in our own object tree, since we want to
build the objects with our own defines, and allow this to occur in a
common object tree for all PicoBSD builds, if required.  This is
controlled by the COMM_OBJ variable, for those who don't want this -
setting it to /usr/obj again will just pick up the objects from your
last make buildworld, as before.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.2 1999/12/20 02:10:16 grog Exp $
d18 1
a18 1
		-e "s/@@/usr/obj/@@${COMMOBJ}@@" crunch.mk > ${.TARGET}
d21 1
a21 1
	@@if [! -d build ]; then mkdir build; fi
d25 1
a25 1
	    "CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT" #2>&1 >/dev/null
@


1.2
log
@Install the crunched binaries into /sbin, not /stand.  This was
originally done to track down yet another case of lost init, and is
not strictly necessary, but it seems more logical to have binaries in
/sbin than in /stand.  Previously /sbin and /bin were symlinks to
/stand.  Now /bin and /stand are symlinks to /sbin.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.1 1999/12/10 21:51:56 grog Exp $
d6 2
d10 15
a24 4
crunch:
	@@cat crunch.conf|sed -e "s@@/usr/src@@${SRC}@@" >crunch1.conf
	@@crunchgen ./crunch1.conf
	@@${MAKE} -f crunch1.mk -DNOPAM all \
d28 1
d41 1
a41 1
	cp crunch1 ${MFS_MOUNTPOINT}/sbin/crunch
@


1.2.2.1
log
@Nuke this totally abandoned configuration which has been broken for ages.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/custom/crunch1/Makefile,v 1.2 1999/12/20 02:10:16 grog Exp $
@


1.1
log
@Add 'custom' directory with significantly restructured build (now
using make instead of custom scripts) and two floppies instead of
one.  The resultant floppy can do everything that the individual
floppies (dial, net, install, isp, router) could do, modulo some bit
rot that has occurred since PicoBSD last compiled.  It also includes
all the programs on the fixit floppy, which could thus also die.

/bin currently contains the following files:

-sh             dump            ln              ns              sps
[               ed              login           ping            stty
badsect         ex              ls              ps              swapon
cat             expr            mkdir           pwd             sync
chgrp           fdisk           mknod           pwd_mkdb        sysctl
chmod           find            more            rdump         syslogd
chown           fsck            mount           reboot          tar
chroot          ftp             mount_cd9660    restore         telnet
clri            getty           mount_msdos     rlogin                telnetd
cp              grep            mount_nfs       rm              test
date            gunzip          mount_std       rmdir         traceroute
dd              gzip            msg             route           umount
dev_mkdb        hostname        mt              routed          vi
df              ifconfig        mv              rrestore        view
dhclient        inetd           natd            rsh             vm
dhclient-script init            netstat         sed             w
disklabel       kget            newfs           sh              zcat
dmesg           kill            nfs             sleep

Structure is in place for using the same build for the other
directories, but I'm no longer sure we need this.  The current first
floppy will run fine by itself, but the size of a compressed kernel
has increased by nearly 50% since 3.2, and there's not much space for
anything useful on the remainder of the floppy.  The current method
creates a larger mfs and can read as many floppies as the user can
stand.  The footprint appears to be round 14 MB.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/net/crunch1/Makefile,v 1.6 1999/10/30 09:19:21 roger Exp $
d26 3
a28 3
	rm -f ${MFS_MOUNTPOINT}/stand/*
	cp crunch1 ${MFS_MOUNTPOINT}/stand/crunch
	chmod 555 ${MFS_MOUNTPOINT}/stand/crunch
d31 1
a31 1
		ln ${MFS_MOUNTPOINT}/stand/crunch ${MFS_MOUNTPOINT}/stand/$${i}; \
d33 1
a33 1
	rm ${MFS_MOUNTPOINT}/stand/crunch
@

