sstrip, nas support, mppe support, mac os x patches, syslogd on bootup, inittab corre...
[openwrt.git] / obsolete-buildroot / make / dropbear_sshd.mk
1 #############################################################
2 #
3 # dropbear_sshd
4 #
5 #############################################################
6 DROPBEAR_SSHD_SOURCE:=dropbear-0.43.tar.bz2
7 DROPBEAR_SSHD_SITE:=http://matt.ucc.asn.au/dropbear/releases/
8 DROPBEAR_SSHD_DIR:=$(BUILD_DIR)/dropbear-0.43
9 DROPBEAR_SSHD_CAT:=bzcat
10 DROPBEAR_SSHD_BINARY:=dropbearmulti
11 DROPBEAR_SSHD_TARGET_BINARY:=usr/sbin/dropbear
12
13
14 $(DL_DIR)/$(DROPBEAR_SSHD_SOURCE):
15 $(WGET) -P $(DL_DIR) $(DROPBEAR_SSHD_SITE)/$(DROPBEAR_SSHD_SOURCE)
16
17 dropbear_sshd-source: $(DL_DIR)/$(DROPBEAR_SSHD_SOURCE)
18
19 $(DROPBEAR_SSHD_DIR)/.unpacked: $(DL_DIR)/$(DROPBEAR_SSHD_SOURCE)
20 $(DROPBEAR_SSHD_CAT) $(DL_DIR)/$(DROPBEAR_SSHD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
21 touch $(DROPBEAR_SSHD_DIR)/.unpacked
22
23 $(DROPBEAR_SSHD_DIR)/.configured: $(DROPBEAR_SSHD_DIR)/.unpacked
24 (cd $(DROPBEAR_SSHD_DIR); rm -rf config.cache; \
25 autoconf; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --sbindir=/usr/sbin \
36 --libexecdir=/usr/lib \
37 --sysconfdir=/etc \
38 --datadir=/usr/share \
39 --localstatedir=/var \
40 --mandir=/usr/man \
41 --infodir=/usr/info \
42 $(DISABLE_NLS) \
43 --with-shared \
44 \
45 --disable-zlib \
46 --disable-syslog \
47 --disable-lastlog \
48 --disable-utmp \
49 --disable-utmpx \
50 --disable-wtmp \
51 --disable-wtmpx \
52 --disable-loginfunc \
53 --disable-pututline \
54 --disable-pututxline \
55 );
56 touch $(DROPBEAR_SSHD_DIR)/.configured
57
58 $(DROPBEAR_SSHD_DIR)/$(DROPBEAR_SSHD_BINARY): $(DROPBEAR_SSHD_DIR)/.configured
59 $(MAKE) $(TARGET_CONFIGURE_OPTS) LD=$(TARGET_CC) \
60 -C $(DROPBEAR_SSHD_DIR) strip
61
62 $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY): $(DROPBEAR_SSHD_DIR)/$(DROPBEAR_SSHD_BINARY)
63 #$(MAKE) DESTDIR=$(TARGET_DIR) $(TARGET_CONFIGURE_OPTS) \
64 # LD=$(TARGET_CC) -C $(DROPBEAR_SSHD_DIR) install
65 #rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
66 # $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
67 # install -d -m 755 $(TARGET_DIR)/usr/sbin
68 # install -d -m 755 $(TARGET_DIR)/usr/bin
69 # install -m 755 $(DROPBEAR_SSHD_DIR)/$(DROPBEAR_SSHD_BINARY) \
70 # $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY)
71 # ln -sf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearkey
72 # ln -sf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearconvert
73
74 dropbear_sshd: uclibc zlib $(TARGET_DIR)/$(DROPBEAR_SSHD_TARGET_BINARY)
75
76 dropbear_sshd-clean:
77 $(MAKE) DESTDIR=$(TARGET_DIR) $(TARGET_CONFIGURE_OPTS) \
78 LD=$(TARGET_CC) -C $(DROPBEAR_SSHD_DIR) uninstall
79 -$(MAKE) -C $(DROPBEAR_SSHD_DIR) clean
80
81 dropbear_sshd-dirclean:
82 rm -rf $(DROPBEAR_SSHD_DIR)
83
This page took 0.044335 seconds and 5 git commands to generate.