2014-06-27 07:54:59 +00:00
|
|
|
#
|
2016-06-13 18:26:02 +00:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2014-06-27 07:54:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=attr
|
2021-03-21 11:32:16 +00:00
|
|
|
PKG_VERSION:=2.5.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-06-27 07:54:59 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-07-16 03:39:22 +00:00
|
|
|
PKG_SOURCE_URL:=http://git.savannah.nongnu.org/cgit/attr.git/snapshot
|
2021-03-21 11:32:16 +00:00
|
|
|
PKG_HASH:=69991b2fc5fe7917d996b05d5d4fe3c44d074c9d806dd263b14a42fab57bfc2f
|
2015-02-07 22:46:42 +00:00
|
|
|
|
2019-08-12 22:45:26 +00:00
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
2014-06-27 07:54:59 +00:00
|
|
|
|
2015-02-07 22:46:42 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2019-08-12 22:45:26 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2015-02-07 22:46:42 +00:00
|
|
|
|
2014-06-27 07:54:59 +00:00
|
|
|
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
|
2019-08-12 22:45:26 +00:00
|
|
|
LICENSE:=GPL-2.0-or-later
|
|
|
|
LICENSE_FILES:=doc/COPYING
|
2014-06-27 07:54:59 +00:00
|
|
|
DEPENDS:=+libattr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libattr
|
|
|
|
$(call Package/attr/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+=library
|
2019-08-12 22:45:26 +00:00
|
|
|
LICENSE:=LGPL-2.1-or-later
|
|
|
|
LICENSE_FILES:=doc/COPYING.LGPL
|
2014-06-27 07:54:59 +00:00
|
|
|
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
|
2019-08-12 22:45:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2016-03-11 17:10:04 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
|
2014-06-27 07:54:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,attr))
|
|
|
|
$(eval $(call BuildPackage,libattr))
|