DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / utils / macchanger / 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:=macchanger
12 PKG_VERSION:=1.5.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/macchanger
17 PKG_MD5SUM:=79b7cdaeca3d8ebafa764c4b0dd03ab7
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/macchanger
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=utility for viewing/manipulating the MAC address
29 URL:=http://www.alobbs.com/macchanger
30 endef
31
32 define Package/macchanger/description
33 This is a GNU/Linux utility for viewing/manipulating the MAC address
34 of network interfaces.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/macchanger/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(CP) $(PKG_INSTALL_DIR)/usr/bin/macchanger $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/share
47 $(CP) $(PKG_INSTALL_DIR)/usr/share/macchanger $(1)/usr/share/
48 endef
49
50 $(eval $(call BuildPackage,macchanger))