fixed linux-uvc, didn't read nicos comment
[openwrt.git] / package / dropbear / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dropbear
12 PKG_VERSION:=0.50
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/ \
17 http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
18 PKG_MD5SUM:=5c0f7405b915799c3d952d3a93a5df69
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/dropbearconvert
38 $(call Package/dropbear/Default)
39 SECTION:=utils
40 CATEGORY:=Utilities
41 TITLE:=Utility for converting SSH keys
42 endef
43
44 CONFIGURE_ARGS += \
45 --with-shared \
46 --disable-pam \
47 --enable-openpty \
48 --enable-syslog \
49 --disable-shadow \
50 --disable-lastlog \
51 --disable-utmp \
52 --disable-utmpx \
53 --disable-wtmp \
54 --disable-wtmpx \
55 --disable-loginfunc \
56 --disable-pututline \
57 --disable-pututxline \
58 --disable-zlib
59
60 define Build/Configure
61 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
62 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
63 $(call Build/Configure/Default)
64 endef
65
66 define Build/Compile
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 $(TARGET_CONFIGURE_OPTS) \
69 LD="$(TARGET_CC)" \
70 PROGRAMS="dropbear dbclient dropbearkey scp" \
71 MULTI=1 SCPPROGRESS=1
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 $(TARGET_CONFIGURE_OPTS) \
74 LD="$(TARGET_CC)" \
75 PROGRAMS="dropbearconvert"
76 endef
77
78 define Package/dropbear/install
79 $(INSTALL_DIR) $(1)/usr/sbin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
81 $(INSTALL_DIR) $(1)/usr/bin
82 ln -sf ../sbin/dropbear $(1)/usr/bin/scp
83 ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
84 ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
85 ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
86 $(INSTALL_DIR) $(1)/etc/config
87 $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
88 $(INSTALL_DIR) $(1)/etc/init.d
89 $(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
90 $(INSTALL_DIR) $(1)/usr/lib/ipkg/info
91 echo /etc/dropbear/dropbear_rsa_host_key > $(1)/usr/lib/ipkg/info/dropbear.conffiles
92 echo /etc/dropbear/dropbear_dss_host_key >> $(1)/usr/lib/ipkg/info/dropbear.conffiles
93 endef
94
95 define Package/dropbearconvert/install
96 $(INSTALL_DIR) $(1)/usr/bin
97 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert
98 endef
99
100 $(eval $(call BuildPackage,dropbear))
101 $(eval $(call BuildPackage,dropbearconvert))
This page took 0.041547 seconds and 5 git commands to generate.