initrd: Add various binaries and scripts
[dragonfly.git] / share / initrd / bin / Makefile
1 #$FreeBSD: head/rescue/rescue/Makefile 252356 2013-06-28 21:00:08Z davide $
2 #       @(#)Makefile    8.1 (Berkeley) 6/2/93
3
4 NO_MAN= YES
5
6 .include <bsd.own.mk>
7
8 PROG=   rescue
9 BINDIR= /usr/share/initrd/bin
10
11 ###################################################################
12 # Programs from stock /bin
13 #
14 # WARNING: Changing this list may require adjusting
15 # /usr/include/paths.h as well!  You were warned!
16 #
17 CRUNCH_SRCDIRS+= bin
18 CRUNCH_PROGS_bin=       \
19         cat             \
20         chmod           \
21         cp              \
22         cpdup           \
23         dd              \
24         df              \
25         echo            \
26         kill            \
27         ln              \
28         ls              \
29         mined           \
30         mkdir           \
31         mv              \
32         ps              \
33         pwd             \
34         rm              \
35         rmdir           \
36         sh              \
37         sleep           \
38         sync            \
39         test
40
41 CRUNCH_LIBS+= -lcrypt -ledit -lkvm -ll -lmd -ltermcap -lutil
42 CRUNCH_BUILDTOOLS+= bin/sh
43
44 # Additional options for specific programs
45 CRUNCH_ALIAS_test= [
46
47 CRUNCH_ALIAS_sh= -sh
48 # The -sh alias shouldn't appear in /rescue as a hard link
49 CRUNCH_SUPPRESS_LINK_-sh= 1
50
51 CRUNCH_ALIAS_ln= link
52 CRUNCH_ALIAS_rm= unlink
53
54
55 CRUNCH_SRCDIRS+= usr.bin
56 CRUNCH_PROGS_usr.bin= du less
57 CRUNCH_ALIAS_less= more
58
59 CRUNCH_SRCDIRS+= secure/usr.bin
60 CRUNCH_PROGS_secure/usr.bin= ssh
61
62 CRUNCH_KEEP_ssh= roaming_write roaming_read add_recv_bytes
63
64 CRUNCH_LIBS+= -lssh -lcrypto -lz
65
66 .include <bsd.crunchgen.mk>
67 .include <bsd.prog.mk>