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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://matt.ucc.asn.au
/dropbear
/releases
/
18 PKG_MD5SUM
:=ca8e53a766faec831882831364568421
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/dropbear
27 TITLE
:=Small SSH
2 client
/server
28 DESCRIPTION
:=A small SSH
2 server
/client designed for small memory environments.
29 URL
:=http
://matt.ucc.asn.au
/dropbear
/
32 define Package
/dropbearconvert
33 $(call Package
/dropbear
)
34 TITLE
:=Utility for converting SSH keys
36 DESCRIPTION
:=Utility for converting SSH keys
39 define Build
/Configure
40 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR
)/options.h
41 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR
)/options.h
42 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
43 $(TARGET_CONFIGURE_OPTS
) \
44 CFLAGS
="$(TARGET_CFLAGS)" \
46 --target
=$(GNU_TARGET_NAME
) \
47 --host
=$(GNU_TARGET_NAME
) \
48 --build
=$(GNU_HOST_NAME
) \
54 --datadir=/usr
/share \
55 --includedir=/usr
/include \
56 --infodir=/usr
/share
/info \
58 --libexecdir
=/usr
/lib \
59 --localstatedir
=/var \
60 --mandir=/usr
/share
/man \
63 $(DISABLE_LARGEFILE
) \
77 --disable-pututxline \
83 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
84 $(TARGET_CONFIGURE_OPTS
) \
86 PROGRAMS
="dropbear dbclient dropbearkey scp" \
88 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
89 $(TARGET_CONFIGURE_OPTS
) \
91 PROGRAMS
="dropbearconvert"
94 define Package
/dropbear
/install
95 install -d
-m0755
$(1)/usr
/sbin
96 install -m0755
$(PKG_BUILD_DIR
)/dropbearmulti \
97 $(1)/usr
/sbin
/dropbear
98 install -d
-m0755
$(1)/usr
/bin
99 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/scp
100 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/ssh
101 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dbclient
102 ln
-sf ..
/sbin
/dropbear
$(1)/usr
/bin
/dropbearkey
103 install -d
-m0755
$(1)/etc
/init.d
104 install -m0755 .
/files
/dropbear.init
$(1)/etc
/init.d
/S50dropbear
107 define Package
/dropbearconvert
/install
108 install -d
-m0755
$(1)/usr
/bin
109 install -m0755
$(PKG_BUILD_DIR
)/dropbearconvert \
110 $(1)/usr
/bin
/dropbearconvert
113 $(eval
$(call BuildPackage
,dropbear
))
114 $(eval
$(call BuildPackage
,dropbearconvert
))