add base-files change from whiterussian
[openwrt.git] / openwrt / package / dropbear / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dropbear
6 PKG_VERSION:=0.46
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=f0e535a62b57e5bde9ecba4a11402178
9
10 PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
22 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
23 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
24 autoconf; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --with-shared \
49 --disable-pam \
50 --enable-openpty \
51 --enable-syslog \
52 --disable-shadow \
53 --disable-lastlog \
54 --disable-utmp \
55 --disable-utmpx \
56 --disable-wtmp \
57 --disable-wtmpx \
58 --disable-loginfunc \
59 --disable-pututline \
60 --disable-pututxline \
61 );
62 touch $@
63
64 $(PKG_BUILD_DIR)/.built:
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 LD=$(TARGET_CC) \
67 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
68 MULTI=1 SCPPROGRESS=1
69 touch $@
70
71 $(IPKG_DROPBEAR):
72 mkdir -p $(IDIR_DROPBEAR)/usr/bin
73 mkdir -p $(IDIR_DROPBEAR)/usr/sbin
74 install -m 755 $(PKG_BUILD_DIR)/dropbearmulti \
75 $(IDIR_DROPBEAR)/usr/sbin/dropbear
76 $(STRIP) $(IDIR_DROPBEAR)/usr/sbin/dropbear
77 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
78 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
79 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
80 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
81 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearconvert
82 mkdir -p $(IDIR_DROPBEAR)/etc/init.d
83 install -m 755 ./files/S50dropbear $(IDIR_DROPBEAR)/etc/init.d/
84 $(IPKG_BUILD) $(IDIR_DROPBEAR) $(PACKAGE_DIR)
This page took 0.060613 seconds and 5 git commands to generate.