|
@@ -0,0 +1,102 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2014 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:=attr
|
|
11
|
+PKG_REV:=50fc862d69984089ce09138b3350ee7762290403
|
|
12
|
+PKG_VERSION:=20140610
|
|
13
|
+PKG_RELEASE:=1
|
|
14
|
+
|
|
15
|
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
16
|
+PKG_SOURCE_URL:=git://git.sv.gnu.org/attr.git
|
|
17
|
+PKG_SOURCE_PROTO:=git
|
|
18
|
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
19
|
+PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
20
|
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
21
|
+PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
|
22
|
+PKG_INSTALL:=1
|
|
23
|
+
|
|
24
|
+include $(INCLUDE_DIR)/package.mk
|
|
25
|
+
|
|
26
|
+define Package/attr/Default
|
|
27
|
+ TITLE:=Extended attributes (xattr) manipulation
|
|
28
|
+ URL:=http://savannah.nongnu.org/projects/attr
|
|
29
|
+ SUBMENU:=Filesystem
|
|
30
|
+endef
|
|
31
|
+
|
|
32
|
+define Package/attr/Default/description
|
|
33
|
+ Extended attributes support
|
|
34
|
+endef
|
|
35
|
+
|
|
36
|
+define Package/attr
|
|
37
|
+$(call Package/attr/Default)
|
|
38
|
+ SECTION:=utils
|
|
39
|
+ CATEGORY:=Utilities
|
|
40
|
+ TITLE+=utils
|
|
41
|
+ DEPENDS:=+libattr
|
|
42
|
+endef
|
|
43
|
+
|
|
44
|
+define Package/libattr
|
|
45
|
+$(call Package/attr/Default)
|
|
46
|
+ SECTION:=libs
|
|
47
|
+ CATEGORY:=Libraries
|
|
48
|
+ TITLE+=library
|
|
49
|
+ KCONFIG:= \
|
|
50
|
+ CONFIG_CIFS_XATTR=y \
|
|
51
|
+ CONFIG_EXT4_FS_XATTR=y \
|
|
52
|
+ CONFIG_JFFS2_FS_XATTR=y \
|
|
53
|
+ CONFIG_REISERFS_FS_XATTR=y \
|
|
54
|
+ CONFIG_SQUASHFS_XATTR=y \
|
|
55
|
+ CONFIG_TMPFS_XATTR=y \
|
|
56
|
+
|
|
57
|
+endef
|
|
58
|
+
|
|
59
|
+define Package/libattr/description
|
|
60
|
+$(call Package/attr/Default/description)
|
|
61
|
+ This package provides libattr
|
|
62
|
+endef
|
|
63
|
+
|
|
64
|
+define Package/attr/description
|
|
65
|
+$(call Package/attr/Default/description)
|
|
66
|
+ This package provides xattr manipulation utilities
|
|
67
|
+ - attr
|
|
68
|
+ - getfattr
|
|
69
|
+ - setfattr
|
|
70
|
+endef
|
|
71
|
+
|
|
72
|
+CONFIGURE_ARGS += --enable-static --enable-shared
|
|
73
|
+
|
|
74
|
+define Build/Prepare
|
|
75
|
+ $(call Build/Prepare/Default)
|
|
76
|
+ (cd $(PKG_BUILD_DIR); ./autogen.sh;);
|
|
77
|
+endef
|
|
78
|
+
|
|
79
|
+define Package/attr/install
|
|
80
|
+ $(INSTALL_DIR) $(1)/usr/bin
|
|
81
|
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
82
|
+endef
|
|
83
|
+
|
|
84
|
+define Package/libattr/install
|
|
85
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
86
|
+ $(INSTALL_DIR) $(1)/etc
|
|
87
|
+ $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
|
|
88
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
89
|
+endef
|
|
90
|
+
|
|
91
|
+define Package/attr/conffiles
|
|
92
|
+/etc/xattr.conf
|
|
93
|
+endef
|
|
94
|
+
|
|
95
|
+define Build/InstallDev
|
|
96
|
+ mkdir -p $(1)/usr/include
|
|
97
|
+ mkdir -p $(1)/usr/lib/pkgconfig
|
|
98
|
+ $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
|
|
99
|
+endef
|
|
100
|
+
|
|
101
|
+$(eval $(call BuildPackage,attr))
|
|
102
|
+$(eval $(call BuildPackage,libattr))
|