580ff6134b6fd46dba520654025d4b516d7c763c
[packages.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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/macchanger
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=utility for viewing/manipulating the MAC address
25   URL:=http://www.alobbs.com/macchanger
26 endef
27
28 define Package/macchanger/description
29         This is a GNU/Linux utility for viewing/manipulating the MAC address 
30         of network interfaces.
31 endef
32
33 define Build/Compile    
34         $(MAKE) -C $(PKG_BUILD_DIR) \
35                 DESTDIR="$(PKG_INSTALL_DIR)" \
36                 all install
37 endef
38
39 define Package/macchanger/install       
40         $(INSTALL_DIR) $(1)/usr/bin
41         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/macchanger $(1)/usr/bin/
42         $(INSTALL_DIR) $(1)/usr/share
43         $(CP) $(PKG_INSTALL_DIR)/usr/share/macchanger $(1)/usr/share/
44 endef
45
46 $(eval $(call BuildPackage,macchanger))