diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-12 13:50:02 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-12 13:53:45 +0100 |
commit | 811ac7a07941f11e4e8acfcba9b75d50d009f798 (patch) | |
tree | 08cab7d5b63f664e8eed372708919cffe17a76d2 /polkit/Makefile | |
parent | 348852a7c7a039f8c53dd017ea7f4d4f03bbca92 (diff) | |
download | control-center-811ac7a07941f11e4e8acfcba9b75d50d009f798.tar control-center-811ac7a07941f11e4e8acfcba9b75d50d009f798.tar.gz control-center-811ac7a07941f11e4e8acfcba9b75d50d009f798.tar.bz2 control-center-811ac7a07941f11e4e8acfcba9b75d50d009f798.tar.xz control-center-811ac7a07941f11e4e8acfcba9b75d50d009f798.zip |
polkit: Tidy up polkit support
Diffstat (limited to 'polkit/Makefile')
-rw-r--r-- | polkit/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/polkit/Makefile b/polkit/Makefile new file mode 100644 index 00000000..4c379cd8 --- /dev/null +++ b/polkit/Makefile @@ -0,0 +1,26 @@ +BINDIR = /usr/bin +LIBEXECDIR = /usr/libexec +BINDEST = $(DESTDIR)$(BINDIR) +POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions + +POLICY_IN := $(wildcard *.policy.in) +POLICY = $(POLICY_IN:.policy.in=.policy) +WRAPPERS = $(patsubst org.mageia.%.policy,%,$(POLICY)) +# Hack for custom wrapper for drakconf +WRAPPERS = drakxconf + +all: $(WRAPPERS) $(POLICY) + +clean: + rm -f $(WRAPPERS) $(POLICY) + +%: org.mageia.%.policy.in + @echo -e "#!/bin/sh\nexec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$""*" > $@ + +%.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) |