2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://matt.ucc.asn.au
/dropbear
/releases
/
17 PKG_MD5SUM
:=ca8e53a766faec831882831364568421
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/dropbear
/Default
25 URL
:=http
://matt.ucc.asn.au
/dropbear
/
28 define Package
/dropbear
29 $(call Package
/dropbear
/Default
)
33 TITLE
:=Small SSH2 client
/server
35 A small SSH2 server
/client designed for small memory environments.
38 define Package
/dropbearconvert
39 $(call Package
/dropbear
/Default
)
42 TITLE
:=Utility for converting SSH keys
45 define Build
/Configure
46 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
47 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
48 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
49 $(TARGET_CONFIGURE_OPTS
) \
50 CFLAGS
="$(TARGET_CFLAGS)" \
52 --target
=$(GNU_TARGET_NAME
) \
53 --host
=$(GNU_TARGET_NAME
) \
54 --build
=$(GNU_HOST_NAME
) \
60 --datadir=/usr
/share \
61 --includedir=/usr
/include \
62 --infodir=/usr
/share
/info \
64 --libexecdir
=/usr
/lib \
65 --localstatedir
=/var \
66 --mandir=/usr
/share
/man \
69 $(DISABLE_LARGEFILE
) \
83 --disable-pututxline \
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
90 $(TARGET_CONFIGURE_OPTS
) \
92 PROGRAMS
="dropbear dbclient dropbearkey scp" \
94 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
95 $(TARGET_CONFIGURE_OPTS
) \
97 PROGRAMS
="dropbearconvert"
100 define Package
/dropbear
/install
101 install -d
-m0755
$(1)/usr
/sbin
102 install -m0755
$(PKG_BUILD_DIR
)/dropbearmulti \
103 $(1)/usr
/sbin
/dropbear
104 install -d
-m0755
$(1)/usr
/bin
105 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
106 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
107 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
108 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
109 install -d
-m0755
$(1)/etc
/config
110 install -m0755 .
/files
/dropbear.config
$(1)/etc
/config
/dropbear
111 install -d
-m0755
$(1)/etc
/init.d
112 install -m0755 .
/files
/dropbear.init
$(1)/etc
/init.d
/dropbear
115 define Package
/dropbearconvert
/install
116 install -d
-m0755
$(1)/usr
/bin
117 install -m0755
$(PKG_BUILD_DIR
)/dropbearconvert \
118 $(1)/usr
/bin
/dropbearconvert
121 $(eval
$(call BuildPackage
,dropbear
))
122 $(eval
$(call BuildPackage
,dropbearconvert
))