aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-06-12 23:07:38 +0200
committerPapoteur <papoteur@mageia.org>2020-06-13 06:40:57 +0200
commit479794a7041895deeceddc4ac0ec75f117817e06 (patch)
treee36e55334207d5ebdaec21984172290925cfb1de
parent5463fdfe9da0d9e750bc0a42e29ed687db2515ee (diff)
downloadisodumper-479794a7041895deeceddc4ac0ec75f117817e06.tar
isodumper-479794a7041895deeceddc4ac0ec75f117817e06.tar.gz
isodumper-479794a7041895deeceddc4ac0ec75f117817e06.tar.bz2
isodumper-479794a7041895deeceddc4ac0ec75f117817e06.tar.xz
isodumper-479794a7041895deeceddc4ac0ec75f117817e06.zip
Clean makefile to have installation of config file for polkit (mga#26776)
-rw-r--r--polkit/Makefile24
1 files changed, 2 insertions, 22 deletions
diff --git a/polkit/Makefile b/polkit/Makefile
index 5f418eb..334fc57 100644
--- a/polkit/Makefile
+++ b/polkit/Makefile
@@ -14,7 +14,6 @@
# Author Makefile file= Yuri Chornoivan <yurchor@ukr.net>
BINDIR = /usr/bin
-LIBEXECDIR = /usr/libexec
BINDEST = $(DESTDIR)$(BINDIR)
POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions
@@ -22,33 +21,14 @@ POLICY_IN := $(wildcard *.policy.in)
POLICY = $(POLICY_IN:.policy.in=.policy)
WRAPPERS = $(patsubst org.mageia.%.policy,%,$(POLICY))
-all: $(WRAPPERS) $(POLICY)
+all: $(POLICY)
clean:
- rm -f $(WRAPPERS) $(POLICY)
-
-%: org.mageia.%.policy.in
- @echo -e \
- '#!/bin/sh\n'\
- '#\n'\
- '\n'\
- '# Copyright (C) 2013 THE isodumper`S COPYRIGHT HOLDER\n'\
- '# This file is distributed under the same license as the isodumper package.\n'\
- '\n'\
- '# Author isodumper software= papoteur <papoteur@mageialinux-online.org>\n'\
- '# Author binary polkit file= Geiger David <david.david@mageialinux-online.org>\n'\
- '\n'\
- 'if [[ "$$UID" != "0" ]] ; then\n'\
- ' pkexec $(LIBEXECDIR)/$@ "$$USER $$''@"\n'\
- 'else\n'\
- ' exec $(LIBEXECDIR)/$@ "$$USER $$''@"\n'\
- 'fi\n'\
- > $@
+ rm -f $(POLICY)
%.policy: %.policy.in
intltool-merge --utf8 ../po $< $@ -x -u -c ../po/.intltool-merge-cache
install: all
install -d $(BINDEST) $(POLKITPOLICYDEST)
- install -m755 $(WRAPPERS) $(BINDEST)
install -m644 $(POLICY) $(POLKITPOLICYDEST)