procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / utils / checkpolicy / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=checkpolicy
9 PKG_VERSION:=3.3
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
14 PKG_HASH:=25c84edfa3a10ab8cb073b97bc55cb66377532d54a2723da9accdabd05431485
15 PKG_INSTALL:=1
16 PKG_BUILD_DEPENDS:=libselinux
17 HOST_BUILD_DEPENDS:=libselinux/host
18
19 PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
20 PKG_CPE_ID:=cpe:/a:selinuxproject:checkpolicy
21 PKG_LICENSE:=GPL-2.0-or-later
22 PKG_LICENSE_FILES:=COPYING
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/checkpolicy
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=SELinux policy compiler
30 URL:=http://selinuxproject.org/page/Main_Page
31 endef
32
33 define Package/checkpolicy/description
34 checkpolicy is the SELinux policy compiler. It uses libsepol
35 to generate the binary policy. checkpolicy uses the static
36 libsepol since it deals with low level details of the policy
37 that have not been encapsulated/abstracted by a proper
38 shared library interface.
39 endef
40
41 include $(INCLUDE_DIR)/host-build.mk
42
43 HOST_MAKE_FLAGS += \
44 PREFIX=$(STAGING_DIR_HOSTPKG)
45
46 define Package/checkpolicy/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
49 endef
50
51 $(eval $(call HostBuild))
52 $(eval $(call BuildPackage,checkpolicy))