n810 battery management: Add calibration data parser
[openwrt.git] / package / dropbear / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dropbear
11 PKG_VERSION:=0.52
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:= \
16 http://matt.ucc.asn.au/dropbear/releases/ \
17 http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
18 PKG_MD5SUM:=1c69ec674481d7745452f68f2ea5597e
19
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dropbear/Default
25 URL:=http://matt.ucc.asn.au/dropbear/
26 endef
27
28 define Package/dropbear
29 $(call Package/dropbear/Default)
30 SECTION:=net
31 CATEGORY:=Base system
32 TITLE:=Small SSH2 client/server
33 endef
34
35 define Package/dropbear/description
36 A small SSH2 server/client designed for small memory environments.
37 endef
38
39 define Package/dropbear/conffiles
40 /etc/dropbear/dropbear_rsa_host_key
41 /etc/dropbear/dropbear_dss_host_key
42 /etc/config/dropbear
43 endef
44
45 define Package/dropbearconvert
46 $(call Package/dropbear/Default)
47 SECTION:=utils
48 CATEGORY:=Utilities
49 TITLE:=Utility for converting SSH keys
50 endef
51
52 CONFIGURE_ARGS += \
53 --with-shared \
54 --disable-pam \
55 --enable-openpty \
56 --enable-syslog \
57 $(if $(CONFIG_SHADOW_PASSWORDS),,--disable-shadow) \
58 --disable-lastlog \
59 --disable-utmp \
60 --disable-utmpx \
61 --disable-wtmp \
62 --disable-wtmpx \
63 --disable-loginfunc \
64 --disable-pututline \
65 --disable-pututxline \
66 --disable-zlib
67
68 TARGET_CFLAGS += -DARGTYPE=3
69
70 define Build/Configure
71 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
72 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
73 $(call Build/Configure/Default)
74 endef
75
76 define Build/Compile
77 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
78 $(TARGET_CONFIGURE_OPTS) \
79 LD="$(TARGET_CC)" \
80 PROGRAMS="dropbear dbclient dropbearkey scp" \
81 MULTI=1 SCPPROGRESS=1
82 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
83 $(TARGET_CONFIGURE_OPTS) \
84 LD="$(TARGET_CC)" \
85 PROGRAMS="dropbearconvert"
86 endef
87
88 define Package/dropbear/install
89 $(INSTALL_DIR) $(1)/usr/sbin
90 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
91 $(INSTALL_DIR) $(1)/usr/bin
92 ln -sf ../sbin/dropbear $(1)/usr/bin/scp
93 ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
94 ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
95 ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
96 $(INSTALL_DIR) $(1)/etc/config
97 $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
98 $(INSTALL_DIR) $(1)/etc/init.d
99 $(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
100 $(INSTALL_DIR) $(1)/usr/lib/opkg/info
101 $(INSTALL_DIR) $(1)/etc/dropbear
102 touch $(1)/etc/dropbear/dropbear_rsa_host_key
103 touch $(1)/etc/dropbear/dropbear_dss_host_key
104 endef
105
106 define Package/dropbearconvert/install
107 $(INSTALL_DIR) $(1)/usr/bin
108 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert
109 endef
110
111 $(eval $(call BuildPackage,dropbear))
112 $(eval $(call BuildPackage,dropbearconvert))
This page took 0.048793 seconds and 5 git commands to generate.