mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
b0d8a3d384
This commit converts plain HTTP URLs to HTTPS, and updates old or outdated URLs. Signed-off-by: Yanase Yuki <dev@zpc.st>
77 lines
2.1 KiB
Makefile
77 lines
2.1 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-selinux
|
|
PKG_VERSION:=3.10
|
|
PKG_RELEASE:=1
|
|
|
|
SRC_NAME:=libselinux
|
|
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
|
PKG_HASH:=1ef216c5b56fb7e0a51cd2909787a175a17ee391e0467894807873539ebe766b
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(SRC_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
PKG_LICENSE:=libselinux-1.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux
|
|
|
|
PKG_BUILD_DEPENDS:= \
|
|
swig/host \
|
|
python-setuptools/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
PYTHON3_PKG_BUILD:=0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-selinux
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=SELinux runtime library bindings
|
|
DEPENDS:=+python3-light +libselinux
|
|
URL:=https://github.com/selinuxproject
|
|
endef
|
|
|
|
define Package/python3-selinux/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
|
|
|
|
MAKE_VARS += \
|
|
$(PYTHON3_VARS) \
|
|
$(HOST_PYTHON3_PIP_VARS) \
|
|
PYTHON_SETUP_ARGS="--no-compile --no-build-isolation"
|
|
|
|
MAKE_FLAGS += \
|
|
SHLIBDIR=/usr/lib
|
|
|
|
ifneq ($(CONFIG_USE_MUSL),)
|
|
MAKE_FLAGS += FTS_LDLIBS=-lfts
|
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
|
endif
|
|
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,pywrap)
|
|
endef
|
|
|
|
define Build/Install
|
|
$(call Build/Install/Default,install-pywrap)
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-selinux))
|
|
$(eval $(call BuildPackage,python3-selinux))
|
|
$(eval $(call BuildPackage,python3-selinux-src))
|