diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-12 13:31:36 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-12 13:31:36 +0100 |
commit | bdfcb6c5408cd41ccd10a838df70917b131a6aa4 (patch) | |
tree | d84ea86c300c48e049010b18f42cba3aa52b4d2a /polkit/Makefile | |
parent | f9ced290a6e6485513be1e489c855615d5802614 (diff) | |
download | drakx-kbd-mouse-x11-bdfcb6c5408cd41ccd10a838df70917b131a6aa4.tar drakx-kbd-mouse-x11-bdfcb6c5408cd41ccd10a838df70917b131a6aa4.tar.gz drakx-kbd-mouse-x11-bdfcb6c5408cd41ccd10a838df70917b131a6aa4.tar.bz2 drakx-kbd-mouse-x11-bdfcb6c5408cd41ccd10a838df70917b131a6aa4.tar.xz drakx-kbd-mouse-x11-bdfcb6c5408cd41ccd10a838df70917b131a6aa4.zip |
polkit: Tidy up polkit support
Diffstat (limited to 'polkit/Makefile')
-rw-r--r-- | polkit/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/polkit/Makefile b/polkit/Makefile new file mode 100644 index 0000000..34e8106 --- /dev/null +++ b/polkit/Makefile @@ -0,0 +1,24 @@ +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)) + +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) |