diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-06-08 15:34:09 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-06-19 15:47:09 +0800 |
| commit | a205483547ca835d98d5da1284e8a77c88eb5f97 (patch) | |
| tree | 730537d3a21179758452e71e9870ea744c1c4e0d /lang/python/python3-libselinux/Makefile | |
| parent | 6938f58a4528c6b3d314808fd2ec6da2a2dff77c (diff) | |
python3-libselinux: Update to 3.5, rename source/target package
* Rename:
* Source package from python3-libselinux to python-selinux
* Target package from python3-libselinux to python3-selinux
* Update dependents with new target package name
* Remove patches:
* 010-setup-py-custom-cc.patch: LDSHARED is already set as part of
$(PYTHON3_VARS)
* 020-Make-use-of-variables-when-defining-libdir-and-inclu.patch: This
package doesn't install the libselinux.pc file
* Update package title and dependencies
* Remove Build/InstallDev (files not used by any other package)
* Use Py3Package to build Python bytecode and source packages
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-libselinux/Makefile')
| -rw-r--r-- | lang/python/python3-libselinux/Makefile | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/lang/python/python3-libselinux/Makefile b/lang/python/python3-libselinux/Makefile deleted file mode 100644 index f56483b44..000000000 --- a/lang/python/python3-libselinux/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -SRC_NAME:=libselinux -PKG_NAME:=python3-$(SRC_NAME) -PKG_VERSION:=3.3 -PKG_RELEASE:=3 - -PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION) -PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION) -PKG_HASH:=acfdee27633d2496508c28727c3d41d3748076f66d42fccde2e6b9f3463a7057 -PKG_BUILD_DEPENDS:=swig/host - -PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com> -PKG_LICENSE:=libselinux-1.0 -PKG_LICENSE_FILES:=LICENSE -PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux -PYTHON3_PKG_BUILD:=0 -PKG_INSTALL:=1 -MAKE_PATH:=src - -include $(INCLUDE_DIR)/package.mk -include ../python3-package.mk - -define Package/python3-libselinux - TITLE:=Python bindings for the runtime SELinux library - SUBMENU:=Python - SECTION:=lang - CATEGORY:=Languages - DEPENDS:=+libpcre +musl-fts +python3 +libselinux - URL:=http://selinuxproject.org/page/Main_Page -endef - -define Package/python3-libselinux/description - libselinux is the runtime SELinux library that provides - interfaces (e.g. library functions for the SELinux kernel - APIs like getcon(), other support functions like - getseuserbyname()) to SELinux-aware applications. libselinux - may use the shared libsepol to manipulate the binary policy - if necessary (e.g. to downgrade the policy format to an - older version supported by the kernel) when loading policy. - - This package provides the Python bindings for libselinux. -endef - -ifneq ($(CONFIG_USE_MUSL),) - TARGET_CFLAGS += -D_LARGEFILE64_SOURCE -endif - -MAKE_FLAGS += \ - FTS_LDLIBS=-lfts \ - SHLIBDIR=/usr/lib \ - PYTHON=$(PYTHON3) \ - PYINC="-I $(PYTHON3_INC_DIR)" \ - PYLIBS="-lpython$(PYTHON3_VERSION)" \ - $(PYTHON3_VARS) - -define Build/Compile - $(call Build/Compile/Default,swigify pywrap) -endef - -define Build/Install - $(call Build/Install/Default,install-pywrap) -endef - -define Build/InstallDev - $(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR) - $(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR) -endef - -define Package/python3-libselinux/install - $(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR) - $(CP) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* $(1)$(PYTHON3_PKG_DIR) -endef - -$(eval $(call BuildPackage,python3-libselinux)) |
