summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/network/utils/rtkmib/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/network/utils/rtkmib/Makefile b/package/network/utils/rtkmib/Makefile
new file mode 100644
index 000000000..d671766f3
--- /dev/null
+++ b/package/network/utils/rtkmib/Makefile
@@ -0,0 +1,54 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=rtkmib
+PKG_VERSION:=5dd1e3de
+PKG_RELEASE:=1
+
+PKG_SOURCE_MIRROR:=0
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)
+PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
+PKG_SOURCE_VERSION:=$(PKG_VERSION)
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://git.nprove.in/$(PKG_NAME)
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+PKG_ROOTFS_DIR:=/usr/bin
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
+
+
+define Package/$(PKG_NAME)
+ SECTION:=utils
+ CATEGORY:=Utilities
+ VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
+ TITLE:=Realtek MIB reader
+ MAINTAINER:=Roman Yeryomin <roman@advem.lv>
+ DEPENDS:=@TARGET_realtek
+endef
+
+define Package/$(PKG_NAME)/description
+ Realtek MIB data (calibration, MAC addresses, etc.) reader utility
+endef
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC="$(TARGET_CC) -fhonour-copts" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
+ ARCH="$(ARCH)" \
+ AR="$(TARGET_CROSS)ar" \
+ RANLIB="$(TARGET_CROSS)ranlib" \
+ EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
+ all
+endef
+
+define Package/$(PKG_NAME)/install
+ $(INSTALL_DIR) $(1)$(PKG_ROOTFS_DIR)
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)$(PKG_ROOTFS_DIR)/
+# $(INSTALL_DIR) $(1)/etc/init.d
+# $(INSTALL_BIN) base-files/etc/init.d/rtkmib $(1)/etc/init.d/
+endef
+
+$(eval $(call HostBuild))
+$(eval $(call BuildPackage,$(PKG_NAME)))