Blame SOURCES/tigervnc-selinux-missing-compression-and-correct-location.patch

2a5d62
From 6125695b80f6a43002f454786115b0a6c1730831 Mon Sep 17 00:00:00 2001
2a5d62
From: Jan Grulich <jgrulich@redhat.com>
2a5d62
Date: Mon, 17 May 2021 13:44:32 +0200
2a5d62
Subject: [PATCH] SELinux: Add missing compression and install policy to
2a5d62
 correct directory
2a5d62
2a5d62
---
2a5d62
 unix/vncserver/selinux/Makefile | 13 ++++++++-----
2a5d62
 1 file changed, 8 insertions(+), 5 deletions(-)
2a5d62
2a5d62
diff --git a/unix/vncserver/selinux/Makefile b/unix/vncserver/selinux/Makefile
2a5d62
index 7497bf846..b23f20f60 100644
2a5d62
--- a/unix/vncserver/selinux/Makefile
2a5d62
+++ b/unix/vncserver/selinux/Makefile
2a5d62
@@ -10,15 +10,18 @@
2a5d62
 PREFIX=/usr
2a5d62
 DATADIR=$(PREFIX)/share
2a5d62
 
2a5d62
-all: vncsession.pp
2a5d62
+all: vncsession.pp.bz2
2a5d62
+
2a5d62
+%.pp.bz2: %.pp
2a5d62
+	bzip2 -9 $^
2a5d62
 
2a5d62
 %.pp: %.te
2a5d62
 	make -f $(DATADIR)/selinux/devel/Makefile $@
2a5d62
 
2a5d62
 clean:
2a5d62
-	rm -f *.pp
2a5d62
+	rm -f *.pp *.pp.bz2
2a5d62
 	rm -rf tmp
2a5d62
 
2a5d62
-install: vncsession.pp
2a5d62
-	mkdir -p $(DESTDIR)$(DATADIR)/selinux/packages
2a5d62
-	install vncsession.pp $(DESTDIR)$(DATADIR)/selinux/packages/vncsession.pp
2a5d62
+install: vncsession.pp.bz2
2a5d62
+	mkdir -p $(DESTDIR)$(DATADIR)/selinux/packages/targeted/
2a5d62
+	install vncsession.pp.bz2 $(DESTDIR)$(DATADIR)/selinux/packages/targeted/vncsession.pp.bz2
2a5d62