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

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