mariadb: update to 10.9.8
[feed/packages.git] / utils / semodule-utils / 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:=semodule-utils
9 PKG_VERSION:=3.5
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:=c9a550a737051ebaf2c102f665c7ec2f85e7232870980aa0067998459b414283
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=GPL-2.0-only
18 PKG_LICENSE_FILES:=LICENSE
19
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/semodule-utils/Default
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+libsepol
29 TITLE:=SELinux policy module utility
30 URL:=http://selinuxproject.org/page/Main_Page
31 endef
32
33 define Package/semodule-utils/Default/description
34 semodule-utils is a collection of utilities for dealing with policy
35 modules.
36 endef
37
38 define Package/semodule-utils
39 $(call Package/semodule-utils/Default)
40 TITLE+= meta-package
41 DEPENDS:= \
42 semodule-expand \
43 semodule-link \
44 semodule-package \
45 semodule-unpackage
46 endef
47
48 define Package/semodule-utils/description
49 $(call Package/semodule-utils/Default/description)
50
51 This is a meta-package that installs all of the semodule-utils tools.
52 endef
53
54 Package/semodule-utils/install:=:
55
56 define BuildUtil
57 define Package/semodule-$(1)
58 $(call Package/semodule-utils/Default)
59 TITLE+= semodule_$(1)
60 endef
61
62 define Package/semodule-$(1)/description
63 $(call Package/semodule-utils/Default/description)
64
65 This contains the semodule_$(1) tool.
66 endef
67
68 define Package/semodule-$(1)/install
69 $$(INSTALL_DIR) $$(1)/usr/bin
70 $$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/semodule_$(1) $$(1)/usr/bin/
71 endef
72
73 $$(eval $$(call BuildPackage,semodule-$(1)))
74 endef
75
76 $(eval $(call BuildPackage,semodule-utils))
77
78 $(eval $(call BuildUtil,expand))
79 $(eval $(call BuildUtil,link))
80 $(eval $(call BuildUtil,package))
81 $(eval $(call BuildUtil,unpackage))