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 2008-03-22 04:48:39 xinwei.niu Exp $ 8 9include $(TOPDIR)/rules.mk 10 11PKG_NAME:=detcable 12PKG_RELEASE:=1 13 14PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 15 16include $(INCLUDE_DIR)/package.mk 17 18define Package/detcable 19 SECTION:=utils 20 CATEGORY:=Base system 21 DEPENDS:=@TARGET_ipq806x 22 TITLE:=Update utility for wan cable link detect 23endef 24 25define Build/Prepare 26 mkdir -p $(PKG_BUILD_DIR) 27 $(CP) ./src/* $(PKG_BUILD_DIR)/ 28endef 29 30define Build/Compile 31endef 32 33define Package/$(PKG_NAME)/install 34 install -d -m0755 $(1)/usr/bin 35 install -d -m0755 $(1)/etc 36 install -m0755 $(PKG_BUILD_DIR)/detcable $(1)/usr/bin/ 37 install -m0755 ./files/flushRoute $(1)/usr/bin/ 38 install -d -m0755 $(1)/etc/init.d 39 install -m0755 ./files/detcable.init $(1)/etc/init.d/detcable 40endef 41 42$(eval $(call BuildPackage,$(PKG_NAME))) 43