a06031eb6c
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.
39 lines
807 B
Makefile
39 lines
807 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
SRC?=/usr/src
|
|
|
|
all: crunch
|
|
|
|
crunch:
|
|
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf
|
|
@crunchgen ./crunch1.conf
|
|
@${MAKE} -f crunch1.mk -DNOPAM all \
|
|
"CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT" #2>&1 >/dev/null
|
|
|
|
clean:
|
|
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 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>
|