2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/linux-diag
16 PKG_MD5SUM:=14e7dcd0436d2f49aa403f67e1ef7ddc
19 PKG_REMOVE_FILES:=aclocal.m4 ltmain.sh
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libsysfs
31 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
34 define Package/sysfsutils
38 DEPENDS:=@!LINUX_2_4 +libsysfs
39 TITLE:=System Utilities Based on Sysfs
40 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
43 define Package/libsysfs/description
44 The library's purpose is to provide a consistant and stable interface for
45 querying system device information exposed through sysfs.
48 define Package/sysfsutils/description
49 A utility built upon libsysfs that lists devices by bus, class, and topology.
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
60 define Package/libsysfs/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
65 define Package/sysfsutils/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
70 $(eval $(call BuildPackage,libsysfs))
71 $(eval $(call BuildPackage,sysfsutils))