Port macchanger to -ng
authorFlorian Fainelli <florian@openwrt.org>
Thu, 3 Aug 2006 14:06:48 +0000 (14:06 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 3 Aug 2006 14:06:48 +0000 (14:06 +0000)
SVN-Revision: 4422

utils/macchanger/Makefile [new file with mode: 0755]

diff --git a/utils/macchanger/Makefile b/utils/macchanger/Makefile
new file mode 100755 (executable)
index 0000000..24b5a86
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=macchanger
+PKG_VERSION:=1.5.0
+PKG_RELEASE:=1
+PKG_MD5SUM:=79b7cdaeca3d8ebafa764c4b0dd03ab7
+PKG_SOURCE_URL:=@GNU/macchanger
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_CAT:=zcat
+
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/macchanger
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=utility for viewing/manipulating the MAC address
+  DESCRIPTION:=This is a GNU/Linux utility for viewing/manipulating the MAC address\\\
+of network interfaces.
+  URL:=http://www.alobbs.com/macchanger
+endef
+
+define Build/Configure
+$(call Build/Configure/Default)
+endef
+
+define Build/Compile   
+       $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
+endef
+
+define Package/macchanger/install      
+       mkdir -p $(1)
+       $(CP) $(PKG_INSTALL_DIR)/* $(1)/
+endef
+
+$(eval $(call BuildPackage,macchanger))