Blame SOURCES/0002-gui-Install-.desktop-files-to-usr-share-applications.patch

0cec52
From 04b632e6de14ec0336e14988bf4c2bd581f7308e Mon Sep 17 00:00:00 2001
0cec52
From: Petr Lautrbach <plautrba@redhat.com>
0cec52
Date: Tue, 5 Mar 2019 17:25:00 +0100
709a1f
Subject: [PATCH] gui: Install .desktop files to /usr/share/applications by
709a1f
 default
0cec52
0cec52
/usr/share/applications is a standard directory for .desktop files.
0cec52
Installation path can be changed using DESKTOPDIR variable in installation
0cec52
phase, e.g.
0cec52
0cec52
make DESKTOPDIR=/usr/local/share/applications install
0cec52
0cec52
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
0cec52
---
0cec52
 gui/Makefile | 4 +++-
0cec52
 1 file changed, 3 insertions(+), 1 deletion(-)
0cec52
0cec52
diff --git a/gui/Makefile b/gui/Makefile
0cec52
index b2375fbf..ca965c94 100644
0cec52
--- a/gui/Makefile
0cec52
+++ b/gui/Makefile
0cec52
@@ -5,6 +5,7 @@ BINDIR ?= $(PREFIX)/bin
0cec52
 SHAREDIR ?= $(PREFIX)/share/system-config-selinux
0cec52
 DATADIR ?= $(PREFIX)/share
0cec52
 MANDIR ?= $(PREFIX)/share/man
0cec52
+DESKTOPDIR ?= $(PREFIX)/share/applications
0cec52
 
0cec52
 TARGETS= \
0cec52
 booleansPage.py \
0cec52
@@ -29,6 +30,7 @@ install: all
0cec52
 	-mkdir -p $(DESTDIR)$(DATADIR)/pixmaps
0cec52
 	-mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps
0cec52
 	-mkdir -p $(DESTDIR)$(DATADIR)/polkit-1/actions/
0cec52
+	-mkdir -p $(DESTDIR)$(DESKTOPDIR)
0cec52
 	install -m 755 system-config-selinux.py $(DESTDIR)$(SHAREDIR)
0cec52
 	install -m 755 system-config-selinux $(DESTDIR)$(BINDIR)
0cec52
 	install -m 755 polgengui.py $(DESTDIR)$(BINDIR)/selinux-polgengui
0cec52
@@ -44,7 +46,7 @@ install: all
0cec52
 	install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/pixmaps
0cec52
 	install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps
0cec52
 	install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/system-config-selinux
0cec52
-	install -m 644 *.desktop $(DESTDIR)$(DATADIR)/system-config-selinux
0cec52
+	install -m 644 *.desktop $(DESTDIR)$(DESKTOPDIR)
0cec52
 	-mkdir -p $(DESTDIR)$(DATADIR)/pixmaps
0cec52
 	install -m 644 sepolicy_256.png $(DESTDIR)$(DATADIR)/pixmaps/sepolicy.png
0cec52
 	for i in 16 22 32 48 256; do \
0cec52
-- 
0cec52
2.21.0
0cec52