2000-02-08 08:27:55 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
SRC?=/usr/src
|
2000-04-25 19:00:08 +00:00
|
|
|
CRUNCHFLAGS+= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
|
2000-02-08 08:27:55 +00:00
|
|
|
|
|
|
|
all: crunch
|
|
|
|
|
|
|
|
crunch:
|
|
|
|
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf
|
|
|
|
@( if [ -f crunch.inc ] ; then \
|
|
|
|
crunchgen -h ./crunch.inc ./crunch1.conf ; \
|
|
|
|
else \
|
|
|
|
crunchgen -h ../../build/crunch.inc ./crunch1.conf ; \
|
|
|
|
fi )
|
|
|
|
@${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
|
|
|
|
"CFLAGS=${CFLAGS} ${CRUNCHFLAGS}" #2>&1 >/dev/null
|
|
|
|
strip --remove-section=.note --remove-section=.comment crunch1
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.stub *.lo *_stub.c *.mk \
|
|
|
|
crunch.cache \
|
|
|
|
crunch.mk \
|
|
|
|
crunch.c \
|
|
|
|
crunch1* \
|
|
|
|
crunch \
|
|
|
|
.tmp_* \
|
|
|
|
*.gz
|
|
|
|
|
|
|
|
install:
|
2000-04-25 19:00:08 +00:00
|
|
|
cp crunch1 ${MFS_MOUNTPOINT}/stand/crunch
|
|
|
|
chmod 555 ${MFS_MOUNTPOINT}/stand/crunch
|
2000-02-08 08:27:55 +00:00
|
|
|
for i in `crunchgen -l crunch1.conf` ; \
|
|
|
|
do \
|
2000-04-25 19:00:08 +00:00
|
|
|
ln ${MFS_MOUNTPOINT}/stand/crunch ${MFS_MOUNTPOINT}/stand/$${i}; \
|
2000-02-08 08:27:55 +00:00
|
|
|
done
|
2000-04-25 19:00:08 +00:00
|
|
|
rm ${MFS_MOUNTPOINT}/stand/crunch
|
2000-02-08 08:27:55 +00:00
|
|
|
# Install the MIB files
|
2000-04-25 19:00:08 +00:00
|
|
|
#mkdir -p ${MFS_MOUNTPOINT}/usr/local/share/snmp/mibs
|
|
|
|
#cp ../../net/crunch1/mibs/*.txt ${MFS_MOUNTPOINT}/usr/local/share/snmp/mibs/
|
2000-02-08 08:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|