]> source.dussan.org Git - tigervnc.git/commitdiff
SELinux: Add missing compression and install policy to correct directory
authorJan Grulich <jgrulich@redhat.com>
Mon, 17 May 2021 11:44:32 +0000 (13:44 +0200)
committerJan Grulich <jgrulich@redhat.com>
Mon, 17 May 2021 12:01:48 +0000 (14:01 +0200)
unix/vncserver/selinux/Makefile

index 7497bf846ae9704054c895ea9be7262cd91a019b..b23f20f60ac6f2b844e44a787e772c405eedf2a7 100644 (file)
 PREFIX=/usr
 DATADIR=$(PREFIX)/share
 
-all: vncsession.pp
+all: vncsession.pp.bz2
+
+%.pp.bz2: %.pp
+       bzip2 -9 $^
 
 %.pp: %.te
        make -f $(DATADIR)/selinux/devel/Makefile $@
 
 clean:
-       rm -f *.pp
+       rm -f *.pp *.pp.bz2
        rm -rf tmp
 
-install: vncsession.pp
-       mkdir -p $(DESTDIR)$(DATADIR)/selinux/packages
-       install vncsession.pp $(DESTDIR)$(DATADIR)/selinux/packages/vncsession.pp
+install: vncsession.pp.bz2
+       mkdir -p $(DESTDIR)$(DATADIR)/selinux/packages/targeted/
+       install vncsession.pp.bz2 $(DESTDIR)$(DATADIR)/selinux/packages/targeted/vncsession.pp.bz2