2020-08-07 18:57:54 +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:=semodule-utils
|
2024-01-01 23:46:18 +00:00
|
|
|
PKG_VERSION:=3.6
|
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
|
2020-08-07 18:57:54 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-03-09 08:01:37 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
2024-01-01 23:46:18 +00:00
|
|
|
PKG_HASH:=eedb88f2b2124e538f2d614be063c0d9ac3eacc0c51a4da44500ca1ed1ba16f4
|
2020-08-07 18:57:54 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
2023-06-09 12:27:58 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2020-08-07 18:57:54 +00:00
|
|
|
|
2020-09-26 23:11:34 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2020-08-07 18:57:54 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2023-06-09 12:27:58 +00:00
|
|
|
define Package/semodule-utils/Default
|
2020-08-07 18:57:54 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2020-09-26 23:11:34 +00:00
|
|
|
DEPENDS:=+libsepol
|
2023-06-09 12:27:58 +00:00
|
|
|
TITLE:=SELinux policy module utility
|
2020-08-07 18:57:54 +00:00
|
|
|
URL:=http://selinuxproject.org/page/Main_Page
|
|
|
|
endef
|
|
|
|
|
2023-06-09 12:27:58 +00:00
|
|
|
define Package/semodule-utils/Default/description
|
|
|
|
semodule-utils is a collection of utilities for dealing with policy
|
|
|
|
modules.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/semodule-utils
|
|
|
|
$(call Package/semodule-utils/Default)
|
|
|
|
TITLE+= meta-package
|
|
|
|
DEPENDS:= \
|
|
|
|
semodule-expand \
|
|
|
|
semodule-link \
|
|
|
|
semodule-package \
|
|
|
|
semodule-unpackage
|
|
|
|
endef
|
|
|
|
|
2020-08-07 18:57:54 +00:00
|
|
|
define Package/semodule-utils/description
|
2023-06-09 12:27:58 +00:00
|
|
|
$(call Package/semodule-utils/Default/description)
|
|
|
|
|
|
|
|
This is a meta-package that installs all of the semodule-utils tools.
|
2020-08-07 18:57:54 +00:00
|
|
|
endef
|
|
|
|
|
2023-06-09 12:27:58 +00:00
|
|
|
Package/semodule-utils/install:=:
|
|
|
|
|
|
|
|
define BuildUtil
|
|
|
|
define Package/semodule-$(1)
|
|
|
|
$(call Package/semodule-utils/Default)
|
|
|
|
TITLE+= semodule_$(1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/semodule-$(1)/description
|
|
|
|
$(call Package/semodule-utils/Default/description)
|
2020-08-07 18:57:54 +00:00
|
|
|
|
2023-06-09 12:27:58 +00:00
|
|
|
This contains the semodule_$(1) tool.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/semodule-$(1)/install
|
|
|
|
$$(INSTALL_DIR) $$(1)/usr/bin
|
|
|
|
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/semodule_$(1) $$(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,semodule-$(1)))
|
2020-08-07 18:57:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,semodule-utils))
|
2023-06-09 12:27:58 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildUtil,expand))
|
|
|
|
$(eval $(call BuildUtil,link))
|
|
|
|
$(eval $(call BuildUtil,package))
|
|
|
|
$(eval $(call BuildUtil,unpackage))
|