lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1049B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=cgi-io
     11 PKG_RELEASE:=1
     12 
     13 PKG_LICENSE:=GPL-2.0+
     14 
     15 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
     16 
     17 include $(INCLUDE_DIR)/package.mk
     18 include $(INCLUDE_DIR)/cmake.mk
     19 
     20 define Package/cgi-io
     21   SECTION:=net
     22   CATEGORY:=Network
     23   SUBMENU:=Web Servers/Proxies
     24   DEPENDS:=+libubox +libubus
     25   TITLE:=CGI utility for handling up/downloading of files
     26 endef
     27 
     28 define Package/cgi-io/description
     29   This package contains an cgi utility that is useful for up/downloading files
     30 endef
     31 
     32 define Build/Prepare
     33 	mkdir -p $(PKG_BUILD_DIR)
     34 	$(CP) ./src/* $(PKG_BUILD_DIR)/
     35 endef
     36 
     37 define Package/cgi-io/install
     38 	$(INSTALL_DIR) $(1)/usr/libexec $(1)/www/cgi-bin/
     39 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi-io $(1)/usr/libexec
     40 	$(LN) ../../usr/libexec/cgi-io $(1)/www/cgi-bin/cgi-upload 
     41 	$(LN) ../../usr/libexec/cgi-io $(1)/www/cgi-bin/cgi-download 
     42 endef
     43 
     44 $(eval $(call BuildPackage,cgi-io))