3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=cf634614d52278d44dfd9c224a438bf2
10 PKG_SOURCE_URL
:=http
://matt.ucc.asn.au
/dropbear
/releases
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,DROPBEAR
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
60 --disable-pututxline \
64 $(PKG_BUILD_DIR
)/.built
:
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 PROGRAMS
="dropbear dbclient dropbearkey dropbearconvert scp" \
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
)