fix bogus ln -sf line
[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 PKG_MD5SUM:=248bc2ca318f697e9edce1af945c57bd
15
16 PKG_SOURCE_URL:=@SF/wdiag
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wdiag
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Westell DSL Modem Diagnostics for Linux
29 DESCRIPTION:=A collection of utilities to get DSL stats from Westell DSL modems.\\\
30 URL:=http://sourceforge.net/projects/wdiag/
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)/src \
35 $(TARGET_CONFIGURE_OPTS) \
36 prefix="$(PKG_INSTALL_DIR)/usr"
37 endef
38
39 define Package/wdiag/install
40 install -m0755 -d $(1)/usr/sbin
41 $(CP) $(PKG_BUILD_DIR)/src/w{start,stop,estell} $(1)/usr/sbin
42 endef
43
44 $(eval $(call BuildPackage,wdiag))