massive Makefile cleanup, add missing 'svn:keywords' property
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/wdiag
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Westell DSL Modem Diagnostics for Linux
28 DESCRIPTION:=A collection of utilities to get DSL stats from Westell DSL modems.
29 URL:=http://sourceforge.net/projects/wdiag/
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR)/src \
34 $(TARGET_CONFIGURE_OPTS) \
35 CFLAGS="$(TARGET_CFLAGS)"
36 endef
37
38 define Package/wdiag/install
39 install -m0755 -d $(1)/usr/sbin
40 $(CP) $(PKG_BUILD_DIR)/src/w{start,stop,estell} $(1)/usr/sbin/
41 endef
42
43 $(eval $(call BuildPackage,wdiag))