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