You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

93 lines
2.0 KiB

#
# Copyright (C) 2014-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=attr
PKG_VERSION:=2.4.48
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://git.savannah.nongnu.org/cgit/attr.git/snapshot
PKG_HASH:=095699f71230ace37e5bc680c6f9d15cf8e53eb38d00b2c46db5cc7e0712e5f3
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/attr/Default
TITLE:=Extended attributes (xattr) manipulation
URL:=http://savannah.nongnu.org/projects/attr
SUBMENU:=Filesystem
endef
define Package/attr/Default/description
Extended attributes support
endef
define Package/attr
$(call Package/attr/Default)
SECTION:=utils
CATEGORY:=Utilities
TITLE+=utils
LICENSE:=GPL-2.0-or-later
LICENSE_FILES:=doc/COPYING
DEPENDS:=+libattr
endef
define Package/libattr
$(call Package/attr/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+=library
LICENSE:=LGPL-2.1-or-later
LICENSE_FILES:=doc/COPYING.LGPL
endef
define Package/libattr/description
$(call Package/attr/Default/description)
This package provides libattr
endef
define Package/attr/description
$(call Package/attr/Default/description)
This package provides xattr manipulation utilities
- attr
- getfattr
- setfattr
endef
CONFIGURE_ARGS += --enable-static --enable-shared
define Package/attr/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef
define Package/libattr/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_INSTALL_DIR)/etc $(1)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
endef
define Package/attr/conffiles
/etc/xattr.conf
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
endef
$(eval $(call BuildPackage,attr))
$(eval $(call BuildPackage,libattr))