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