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