2 # Copyright (C) 2006-2012 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
17 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libsysfs
30 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
33 define Package/sysfsutils
38 TITLE:=System Utilities Based on Sysfs
39 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
42 define Package/libsysfs/description
43 The library's purpose is to provide a consistant and stable interface for
44 querying system device information exposed through sysfs.
47 define Package/sysfsutils/description
48 A utility built upon libsysfs that lists devices by bus, class, and topology.
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
59 define Package/libsysfs/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
64 define Package/sysfsutils/install
65 $(INSTALL_DIR) $(1)/usr/bin
66 $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
69 $(eval $(call BuildPackage,libsysfs))
70 $(eval $(call BuildPackage,sysfsutils))