fix (cosmetic) Config.in glitches
[openwrt.git] / openwrt / package / dropbear / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dropbear
6 PKG_VERSION:=0.48.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=ca8e53a766faec831882831364568421
9
10 PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19 $(eval $(call PKG_template,DBCONVERT,dropbearconvert,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h
23 $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(PKG_BUILD_DIR)/options.h
24 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
25 autoconf; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --with-shared \
50 --disable-pam \
51 --enable-openpty \
52 --enable-syslog \
53 --disable-shadow \
54 --disable-lastlog \
55 --disable-utmp \
56 --disable-utmpx \
57 --disable-wtmp \
58 --disable-wtmpx \
59 --disable-loginfunc \
60 --disable-pututline \
61 --disable-pututxline \
62 --disable-zlib \
63 );
64 touch $@
65
66 $(PKG_BUILD_DIR)/.built:
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 LD=$(TARGET_CC) \
69 PROGRAMS="dropbear dbclient dropbearkey scp" \
70 MULTI=1 SCPPROGRESS=1
71 $(MAKE) -C $(PKG_BUILD_DIR) \
72 LD=$(TARGET_CC) \
73 PROGRAMS="dropbearconvert"
74 touch $@
75
76 $(IPKG_DBCONVERT):
77 mkdir -p $(IDIR_DBCONVERT)/usr/bin
78 install -m 755 $(PKG_BUILD_DIR)/dropbearconvert \
79 $(IDIR_DBCONVERT)/usr/bin/dropbearconvert
80 $(IPKG_BUILD) $(IDIR_DBCONVERT) $(PACKAGE_DIR)
81
82 $(IPKG_DROPBEAR):
83 mkdir -p $(IDIR_DROPBEAR)/usr/bin
84 mkdir -p $(IDIR_DROPBEAR)/usr/sbin
85 install -m 755 $(PKG_BUILD_DIR)/dropbearmulti \
86 $(IDIR_DROPBEAR)/usr/sbin/dropbear
87 $(STRIP) $(IDIR_DROPBEAR)/usr/sbin/dropbear
88 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
89 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
90 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
91 ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
92 mkdir -p $(IDIR_DROPBEAR)/etc/init.d
93 install -m 755 ./files/S50dropbear $(IDIR_DROPBEAR)/etc/init.d/
94 $(IPKG_BUILD) $(IDIR_DROPBEAR) $(PACKAGE_DIR)
This page took 0.060806 seconds and 5 git commands to generate.