1
0

Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cgi-io
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-2.0+
  11. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Package/cgi-io
  15. SECTION:=net
  16. CATEGORY:=Network
  17. SUBMENU:=Web Servers/Proxies
  18. DEPENDS:=+libubox +libubus
  19. TITLE:=CGI utility for handling up/downloading of files
  20. endef
  21. define Package/cgi-io/description
  22. This package contains an cgi utility that is useful for up/downloading files
  23. endef
  24. define Build/Prepare
  25. mkdir -p $(PKG_BUILD_DIR)
  26. $(CP) ./src/* $(PKG_BUILD_DIR)/
  27. endef
  28. define Package/cgi-io/install
  29. $(INSTALL_DIR) $(1)/usr/libexec $(1)/www/cgi-bin/
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi-io $(1)/usr/libexec
  31. $(LN) ../../usr/libexec/cgi-io $(1)/www/cgi-bin/cgi-upload
  32. $(LN) ../../usr/libexec/cgi-io $(1)/www/cgi-bin/cgi-download
  33. endef
  34. $(eval $(call BuildPackage,cgi-io))