2010-02-19 00:14:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-12-25 18:09:00 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sysfsutils
|
|
|
|
PKG_VERSION:=2.1.0
|
2010-02-27 08:22:13 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-12-25 18:09:00 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/linux-diag
|
|
|
|
PKG_MD5SUM:=14e7dcd0436d2f49aa403f67e1ef7ddc
|
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-12-10 10:34:22 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-12-25 18:09:00 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-02-27 08:22:13 +00:00
|
|
|
define Package/libsysfs
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
SUBMENU:=Filesystem
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4
|
2010-02-27 08:22:13 +00:00
|
|
|
TITLE:=Sysfs library
|
|
|
|
URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
|
|
|
|
endef
|
|
|
|
|
2006-12-25 18:09:00 +00:00
|
|
|
define Package/sysfsutils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-07-05 13:57:59 +00:00
|
|
|
SUBMENU:=Filesystem
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4 +libsysfs
|
2010-02-27 08:22:13 +00:00
|
|
|
TITLE:=System Utilities Based on Sysfs
|
2006-12-25 18:09:00 +00:00
|
|
|
URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
|
|
|
|
endef
|
|
|
|
|
2010-02-27 08:22:13 +00:00
|
|
|
define Package/libsysfs/description
|
|
|
|
The library's purpose is to provide a consistant and stable interface for
|
|
|
|
querying system device information exposed through sysfs.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sysfsutils/description
|
|
|
|
A utility built upon libsysfs that lists devices by bus, class, and topology.
|
|
|
|
endef
|
|
|
|
|
2006-12-25 18:09:00 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 19:27:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
|
2010-02-27 08:22:13 +00:00
|
|
|
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-02-27 08:22:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsysfs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
|
2006-12-25 18:09:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sysfsutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2009-12-18 19:27:29 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
|
2006-12-25 18:09:00 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-27 08:22:13 +00:00
|
|
|
$(eval $(call BuildPackage,libsysfs))
|
2006-12-25 18:09:00 +00:00
|
|
|
$(eval $(call BuildPackage,sysfsutils))
|