2020-05-16 12:28:52 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2020 Lucian Cristian
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libcap-ng
|
2022-11-05 03:58:25 +00:00
|
|
|
PKG_VERSION:=0.8.3
|
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:=2
|
2020-05-16 12:28:52 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://people.redhat.com/sgrubb/libcap-ng
|
2022-11-05 03:58:25 +00:00
|
|
|
PKG_HASH:=bed6f6848e22bb2f83b5f764b2aef0ed393054e803a8e3a8711cb2a39e6b492d
|
2020-05-16 12:28:52 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Lucian CRISTIAN <lucian.cristian@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=License
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_FIXUP:=autoreconf
|
2023-03-23 08:27:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=lto
|
2020-05-16 12:28:52 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libcap-ng/Default
|
|
|
|
TITLE:=POSIX capabilities library
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
URL:=https://people.redhat.com/sgrubb/libcap-ng/index.html
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng/description/Default
|
|
|
|
POSIX capabilities library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng
|
|
|
|
$(call Package/libcap-ng/Default)
|
|
|
|
TITLE += library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng-bin
|
|
|
|
$(call Package/libcap-ng/Default)
|
|
|
|
TITLE += binaries
|
|
|
|
DEPENDS += libcap-ng
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng-bin/description
|
|
|
|
$(call Package/libcap-ng/description/Default)
|
|
|
|
.
|
|
|
|
This package contains the libcap-ng utilities.
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_prog_swig_found=no
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--prefix=/usr \
|
|
|
|
--without-python \
|
|
|
|
--without-python3
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.{so*,a} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcap-ng.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/cap-ng.m4\
|
|
|
|
$(1)/usr/share/aclocal
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcap-ng-bin/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libcap-ng))
|
|
|
|
$(eval $(call BuildPackage,libcap-ng-bin))
|