sysfsutils: move to the correct directory
[openwrt.git] / package / libs / sysfsutils / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sysfsutils
11 PKG_VERSION:=2.1.0
12 PKG_RELEASE:=2
13
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>
18
19 PKG_FIXUP:=autoreconf
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libsysfs
26   SECTION:=libs
27   CATEGORY:=Libraries
28   SUBMENU:=Filesystem
29   TITLE:=Sysfs library
30   URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
31 endef
32
33 define Package/sysfsutils
34   SECTION:=utils
35   CATEGORY:=Utilities
36   SUBMENU:=Filesystem
37   DEPENDS:=+libsysfs
38   TITLE:=System Utilities Based on Sysfs
39   URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
40 endef
41
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.
45 endef
46
47 define Package/sysfsutils/description
48 A utility built upon libsysfs that lists devices by bus, class, and topology.
49 endef
50
51 define Build/InstallDev
52         $(INSTALL_DIR) $(1)/usr/include
53         $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
54
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
57 endef
58
59 define Package/libsysfs/install
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
62 endef
63
64 define Package/sysfsutils/install
65         $(INSTALL_DIR) $(1)/usr/bin
66         $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
67 endef
68
69 $(eval $(call BuildPackage,libsysfs))
70 $(eval $(call BuildPackage,sysfsutils))