-$(PACKAGE_DIR)/$(DROPBEAR_IPK): $(DROPBEAR_DIR)/$(DROPBEAR_BINARY)
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(DROPBEAR_IPK_DIR) dropbear.control $(DROPBEAR_VERSION)-1 $(ARCH)
- cp dropbear.conffiles $(DROPBEAR_IPK_DIR)/CONTROL/conffiles
- mkdir -p $(DROPBEAR_IPK_DIR)/usr/bin
- mkdir -p $(DROPBEAR_IPK_DIR)/usr/sbin
- install -m 755 $(DROPBEAR_DIR)/$(DROPBEAR_BINARY) \
- $(DROPBEAR_IPK_DIR)/$(DROPBEAR_TARGET_BINARY)
- $(STRIP) $(DROPBEAR_IPK_DIR)/usr/sbin/dropbear
- ln -sf ../sbin/dropbear $(DROPBEAR_IPK_DIR)/usr/bin/scp
- ln -sf ../sbin/dropbear $(DROPBEAR_IPK_DIR)/usr/bin/ssh
- ln -sf ../sbin/dropbear $(DROPBEAR_IPK_DIR)/usr/bin/dropbearkey
- ln -sf ../sbin/dropbear $(DROPBEAR_IPK_DIR)/usr/bin/dropbearconvert
- mkdir -p $(DROPBEAR_IPK_DIR)/etc/init.d
- cp ./files/S50dropbear $(DROPBEAR_IPK_DIR)/etc/init.d/
- chmod a+x $(DROPBEAR_IPK_DIR)/etc/init.d/S50dropbear
- $(IPKG_BUILD) $(DROPBEAR_IPK_DIR) $(PACKAGE_DIR)
+$(IPKG_DROPBEAR): $(PKG_BUILD_DIR)/dropbearmulti
+ $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_DROPBEAR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
+ mkdir -p $(IDIR_DROPBEAR)/usr/bin
+ mkdir -p $(IDIR_DROPBEAR)/usr/sbin
+ install -m 755 $(PKG_BUILD_DIR)/dropbearmulti \
+ $(IDIR_DROPBEAR)/usr/sbin/dropbear
+ $(STRIP) $(IDIR_DROPBEAR)/usr/sbin/dropbear
+ ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
+ ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
+ ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
+ ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
+ ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearconvert
+ mkdir -p $(IDIR_DROPBEAR)/etc/init.d
+ install -m 755 ./files/S50dropbear $(IDIR_DROPBEAR)/etc/init.d/
+ $(IPKG_BUILD) $(IDIR_DROPBEAR) $(PACKAGE_DIR)