OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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:=3
13  
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/linux-diag
16 PKG_HASH:=e865de2c1f559fff0d3fc936e660c0efaf7afe662064f2fb97ccad1ec28d208a
17 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
18  
19 PKG_LICENSE:=LGPL-2.1
20 PKG_LICENSE_FILES:=COPYING cmd/GPL lib/LGPL
21  
22 PKG_FIXUP:=autoreconf
23  
24 PKG_INSTALL:=1
25  
26 include $(INCLUDE_DIR)/package.mk
27  
28 define Package/libsysfs
29 SECTION:=libs
30 CATEGORY:=Libraries
31 SUBMENU:=Filesystem
32 TITLE:=Sysfs library
33 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
34 ABI_VERSION:=2
35 endef
36  
37 define Package/sysfsutils
38 SECTION:=utils
39 CATEGORY:=Utilities
40 SUBMENU:=Filesystem
41 DEPENDS:=+libsysfs
42 TITLE:=System Utilities Based on Sysfs
43 URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
44 endef
45  
46 define Package/libsysfs/description
47 The library's purpose is to provide a consistant and stable interface for
48 querying system device information exposed through sysfs.
49 endef
50  
51 define Package/sysfsutils/description
52 A utility built upon libsysfs that lists devices by bus, class, and topology.
53 endef
54  
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
58  
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
61 endef
62  
63 define Package/libsysfs/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so.* $(1)/usr/lib/
66 endef
67  
68 define Package/sysfsutils/install
69 $(INSTALL_DIR) $(1)/etc/init.d
70 $(INSTALL_BIN) ./files/sysfsutils $(1)/etc/init.d/
71  
72 $(INSTALL_DATA) ./files/sysfs.conf $(1)/etc/
73 $(INSTALL_DIR) $(1)/etc/sysfs.d
74 $(INSTALL_DATA) ./files/local.conf $(1)/etc/sysfs.d/
75  
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
78 endef
79  
80 define Package/sysfsutils/conffiles
81 /etc/sysfs.conf
82 /etc/sysfs.d/local.conf
83 endef
84  
85 $(eval $(call BuildPackage,libsysfs))
86 $(eval $(call BuildPackage,sysfsutils))