1# 2# Copyright (C) 2006 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7# $Id: Makefile,v 1.1.2.1 2007/01/09 00:57:44 ronger Exp $ 8 9include $(TOPDIR)/rules.mk 10 11PKG_NAME:=proccgi 12PKG_RELEASE:=4 13 14PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 15 16include $(INCLUDE_DIR)/package.mk 17 18define Package/proccgi 19 SECTION:=utils 20 CATEGORY:=Base system 21 DEFAULT:=y 22 TITLE:=The CGI interface 23endef 24 25define Build/Prepare 26 mkdir -p $(PKG_BUILD_DIR) 27 $(CP) ./src/* $(PKG_BUILD_DIR)/ 28endef 29 30define Package/proccgi/install 31 install -d -m0755 $(1)/www/cgi-bin 32 install -m0755 $(PKG_BUILD_DIR)/proccgi $(1)/www/cgi-bin/ 33endef 34 35$(eval $(call BuildPackage,proccgi)) 36