2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://github.com
/SELinuxProject
/selinux
/releases
/download
/20200710
14 PKG_HASH
:=22d6c75526e40d1781c30bcf29abf97171bdfe6780923f11c8e1c76a75a21ff8
15 HOST_BUILD_DEPENDS
:=audit
/host libselinux
/host bzip2
/host
17 PKG_MAINTAINER
:=Thomas Petazzoni
<thomas.petazzoni@bootlin.com
>
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/host-build.mk
24 define Package
/libsemanage
26 DEPENDS
:=+libaudit
+libselinux
+libbz2
28 TITLE
:=SELinux policy management library
29 URL
:=http
://selinuxproject.org
/page
/Main_Page
32 define Package
/libsemanage
/description
33 libsemanage is the policy management library. It uses
34 libsepol for binary policy manipulation and libselinux for
35 interacting with the SELinux system. It also exec
's helper
36 programs for loading policy and for checking whether the
37 file_contexts configuration is valid (load_policy and
38 setfiles from policycoreutils) presently, although this may
39 change at least for the bootstrapping case (for rpm).
44 DESTDIR
=$(STAGING_DIR_HOSTPKG
) \
48 define Build
/Configure
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
55 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsemanage.
pc $(1)/usr
/lib
/pkgconfig
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
60 define Package
/libsemanage
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsemanage.so.
* $(1)/usr
/lib
/
65 $(eval
$(call HostBuild
))
66 $(eval
$(call BuildPackage
,libsemanage
))