3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=2bcc46e4c239aec982bf36a723dd0b0e
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 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
45 $(DISABLE_LARGEFILE
) \
59 --disable-pututxline \
63 $(PKG_BUILD_DIR
)/.built
:
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 PROGRAMS
="dropbear dbclient dropbearkey dropbearconvert scp" \
71 mkdir
-p
$(IDIR_DROPBEAR
)/usr
/bin
72 mkdir
-p
$(IDIR_DROPBEAR
)/usr
/sbin
73 install -m
755 $(PKG_BUILD_DIR
)/dropbearmulti \
74 $(IDIR_DROPBEAR
)/usr
/sbin
/dropbear
75 $(STRIP
) $(IDIR_DROPBEAR
)/usr
/sbin
/dropbear
76 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/scp
77 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/ssh
78 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dbclient
79 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dropbearkey
80 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dropbearconvert
81 mkdir
-p
$(IDIR_DROPBEAR
)/etc
/init.d
82 install -m
755 .
/files
/S50dropbear
$(IDIR_DROPBEAR
)/etc
/init.d
/
83 $(IPKG_BUILD
) $(IDIR_DROPBEAR
) $(PACKAGE_DIR
)