add optional driver for the hw watchdog on gateworks avila boards (requires soldering...
[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:=2
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 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dropbear/Default
23 URL:=http://matt.ucc.asn.au/dropbear/
24 endef
25
26 define Package/dropbear
27 $(call Package/dropbear/Default)
28 SECTION:=net
29 CATEGORY:=Base system
30 TITLE:=Small SSH2 client/server
31 endef
32
33 define Package/dropbear/description
34 A small SSH2 server/client designed for small memory environments.
35 endef
36
37 define Package/dropbear/conffiles
38 /etc/dropbear/dropbear_rsa_host_key
39 /etc/dropbear/dropbear_dss_host_key
40 /etc/config/dropbear
41 endef
42
43 define Package/dropbearconvert
44 $(call Package/dropbear/Default)
45 SECTION:=utils
46 CATEGORY:=Utilities
47 TITLE:=Utility for converting SSH keys
48 endef
49
50 CONFIGURE_ARGS += \
51 --with-shared \
52 --disable-pam \
53 --enable-openpty \
54 --enable-syslog \
55 $(if $(CONFIG_SHADOW_PASSWORDS),,--disable-shadow) \
56 --disable-lastlog \
57 --disable-utmp \
58 --disable-utmpx \
59 --disable-wtmp \
60 --disable-wtmpx \
61 --disable-loginfunc \
62 --disable-pututline \
63 --disable-pututxline \
64 --disable-zlib
65
66 define Build/Configure
67 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
68 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
69 $(call Build/Configure/Default)
70 endef
71
72 define Build/Compile
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 $(TARGET_CONFIGURE_OPTS) \
75 LD="$(TARGET_CC)" \
76 PROGRAMS="dropbear dbclient dropbearkey scp" \
77 MULTI=1 SCPPROGRESS=1
78 $(MAKE) -C $(PKG_BUILD_DIR) \
79 $(TARGET_CONFIGURE_OPTS) \
80 LD="$(TARGET_CC)" \
81 PROGRAMS="dropbearconvert"
82 endef
83
84 define Package/dropbear/install
85 $(INSTALL_DIR) $(1)/usr/sbin
86 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
87 $(INSTALL_DIR) $(1)/usr/bin
88 ln -sf ../sbin/dropbear $(1)/usr/bin/scp
89 ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
90 ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
91 ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
92 $(INSTALL_DIR) $(1)/etc/config
93 $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
94 $(INSTALL_DIR) $(1)/etc/init.d
95 $(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
96 $(INSTALL_DIR) $(1)/usr/lib/opkg/info
97 $(INSTALL_DIR) $(1)/etc/dropbear
98 touch $(1)/etc/dropbear/dropbear_rsa_host_key
99 touch $(1)/etc/dropbear/dropbear_dss_host_key
100 endef
101
102 define Package/dropbearconvert/install
103 $(INSTALL_DIR) $(1)/usr/bin
104 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert
105 endef
106
107 $(eval $(call BuildPackage,dropbear))
108 $(eval $(call BuildPackage,dropbearconvert))
This page took 0.045915 seconds and 5 git commands to generate.