4c23e86a02fe71ca8cbb259823b1ba88219cca4b
[openwrt/svn-archive/archive.git] / net / wdiag / Makefile
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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wdiag
12 PKG_VERSION:=0.8
13 PKG_RELEASE:=1
14
15 PKG_MD5SUM:=248bc2ca318f697e9edce1af945c57bd
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=@SF/wdiag
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/wdiag
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=Westell DSL Modem Diagnostics for Linux
27 URL:=http://sourceforge.net/projects/wdiag/
28 endef
29
30 define Package/wdiag/description
31 A collection of utilities to get DSL stats from Westell DSL modems.
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)/src \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)"
38 endef
39
40 define Package/wdiag/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(CP) $(PKG_BUILD_DIR)/src/w{start,stop,estell} $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,wdiag))