ipsec{4,6} depend on kmod-crypto-aead to allow esp4 and esp6 to successfully load...
[openwrt.git] / package / dropbear / Makefile
1 #
2 # Copyright (C) 2006-2008 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.51
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= \
17 http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/ \
18 http://matt.ucc.asn.au/dropbear/releases/
19 PKG_MD5SUM:=1045df60c2bdbd39c707238305a1e9e5
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/dropbear/Default
24 URL:=http://matt.ucc.asn.au/dropbear/
25 endef
26
27 define Package/dropbear
28 $(call Package/dropbear/Default)
29 SECTION:=net
30 CATEGORY:=Base system
31 TITLE:=Small SSH2 client/server
32 endef
33
34 define Package/dropbear/description
35 A small SSH2 server/client designed for small memory environments.
36 endef
37
38 define Package/dropbearconvert
39 $(call Package/dropbear/Default)
40 SECTION:=utils
41 CATEGORY:=Utilities
42 TITLE:=Utility for converting SSH keys
43 endef
44
45 CONFIGURE_ARGS += \
46 --with-shared \
47 --disable-pam \
48 --enable-openpty \
49 --enable-syslog \
50 --disable-shadow \
51 --disable-lastlog \
52 --disable-utmp \
53 --disable-utmpx \
54 --disable-wtmp \
55 --disable-wtmpx \
56 --disable-loginfunc \
57 --disable-pututline \
58 --disable-pututxline \
59 --disable-zlib
60
61 define Build/Configure
62 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
63 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
64 $(call Build/Configure/Default)
65 endef
66
67 define Build/Compile
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 $(TARGET_CONFIGURE_OPTS) \
70 LD="$(TARGET_CC)" \
71 PROGRAMS="dropbear dbclient dropbearkey scp" \
72 MULTI=1 SCPPROGRESS=1
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 $(TARGET_CONFIGURE_OPTS) \
75 LD="$(TARGET_CC)" \
76 PROGRAMS="dropbearconvert"
77 endef
78
79 define Package/dropbear/install
80 $(INSTALL_DIR) $(1)/usr/sbin
81 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
82 $(INSTALL_DIR) $(1)/usr/bin
83 ln -sf ../sbin/dropbear $(1)/usr/bin/scp
84 ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
85 ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
86 ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
87 $(INSTALL_DIR) $(1)/etc/config
88 $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
89 $(INSTALL_DIR) $(1)/etc/init.d
90 $(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
91 $(INSTALL_DIR) $(1)/usr/lib/ipkg/info
92 echo /etc/dropbear/dropbear_rsa_host_key > $(1)/usr/lib/ipkg/info/dropbear.conffiles
93 echo /etc/dropbear/dropbear_dss_host_key >> $(1)/usr/lib/ipkg/info/dropbear.conffiles
94 endef
95
96 define Package/dropbearconvert/install
97 $(INSTALL_DIR) $(1)/usr/bin
98 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert
99 endef
100
101 $(eval $(call BuildPackage,dropbear))
102 $(eval $(call BuildPackage,dropbearconvert))
This page took 0.052934 seconds and 5 git commands to generate.