2 # Copyright (C) 2014-2016 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
11 PKG_REV:=315af30d0c1a198dc662a90e6e6ae2456abf2489
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://git.savannah.gnu.org/r/attr.git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
22 PKG_LICENSE:=LGPL-2.1 GPL-2.0
23 PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
28 include $(INCLUDE_DIR)/package.mk
30 define Package/attr/Default
31 TITLE:=Extended attributes (xattr) manipulation
32 URL:=http://savannah.nongnu.org/projects/attr
36 define Package/attr/Default/description
37 Extended attributes support
41 $(call Package/attr/Default)
48 define Package/libattr
49 $(call Package/attr/Default)
55 define Package/libattr/description
56 $(call Package/attr/Default/description)
57 This package provides libattr
60 define Package/attr/description
61 $(call Package/attr/Default/description)
62 This package provides xattr manipulation utilities
68 CONFIGURE_ARGS += --enable-static --enable-shared
70 define Package/attr/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
75 define Package/libattr/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(INSTALL_DIR) $(1)/etc
78 $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
79 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
82 define Package/attr/conffiles
86 define Build/InstallDev
87 mkdir -p $(1)/usr/include
88 mkdir -p $(1)/usr/lib/pkgconfig
89 $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
92 $(eval $(call BuildPackage,attr))
93 $(eval $(call BuildPackage,libattr))