1
0

Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # Initial port of shellinabox to OpenWrt - Jan Jaeger 25-MAR-2010
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=shellinabox
  10. PKG_VERSION:=2.10
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=HEAD
  14. PKG_SOURCE_URL:=https://github.com/OnionIoT/shellinabox.git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  16. PKG_SOURCE:=$(PKG_NAME).tar.gz
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  18. #PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. #PKG_SOURCE_URL:=http://shellinabox.googlecode.com/files
  20. #PKG_MD5SUM:=0e144910d85d92edc54702ab9c46f032
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/shellinabox
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Shell In A Box
  26. DEPENDS:= zlib
  27. URL:=http://shellinabox.googlecode.com
  28. endef
  29. define Package/shellinabox/description
  30. Web based AJAX terminal emulator
  31. endef
  32. define Build/Configure
  33. $(call Build/Configure/Default)
  34. endef
  35. define Build/Compile
  36. $(MAKE) -C $(PKG_BUILD_DIR) \
  37. $(TARGET_CONFIGURE_OPTS) \
  38. CFLAGS="$(TARGET_CFLAGS)" \
  39. BINDIR="/usr/sbin" \
  40. all
  41. endef
  42. define Package/shellinabox/install
  43. # install the binary
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/shellinaboxd $(1)/usr/sbin/
  46. # install the init.d file
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  49. # install the css file
  50. $(INSTALL_DIR) $(1)/usr/lib/shellinabox
  51. $(INSTALL_BIN) ./files/style.css $(1)/usr/lib/shellinabox/style.css
  52. endef
  53. $(eval $(call BuildPackage,shellinabox))