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
>
20 PKG_LICENSE_FILES
:=COPYING cmd
/GPL lib
/LGPL
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libsysfs
33 URL
:=http
://linux-diag.sourceforge.net
/Sysfsutils.html
36 define Package
/sysfsutils
41 TITLE
:=System Utilities Based on Sysfs
42 URL
:=http
://linux-diag.sourceforge.net
/Sysfsutils.html
45 define Package
/libsysfs
/description
46 The library
's purpose is to provide a consistant and stable interface for
47 querying system device information exposed through sysfs.
50 define Package/sysfsutils/description
51 A utility built upon libsysfs that lists devices by bus, class, and topology.
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
62 define Package/libsysfs/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
67 define Package/sysfsutils/install
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
72 $(eval $(call BuildPackage,libsysfs))
73 $(eval $(call BuildPackage,sysfsutils))