[packages] tor: update to 0.2.1.29 (CVE-2011-0427)
[openwrt/svn-archive/archive.git] / libs / sysfsutils / Makefile
1 #
2 # Copyright (C) 2006-2010 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
18 PKG_FIXUP:=libtool
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libsysfs
25 SECTION:=libs
26 CATEGORY:=Libraries
27 SUBMENU:=Filesystem
28 DEPENDS:=@!LINUX_2_4
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:=@!LINUX_2_4 +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))