diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-11 09:59:26 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-11 09:59:26 +0100 |
commit | 84942148c97222db0328dfed0fe3c7b047bb38b0 (patch) | |
tree | 5d3b2a9707b630e64a35e07c55dfcc9867e7aee8 /perl-install/standalone/polkit/Makefile | |
parent | acdd74d9e1994edab0902a51d353e799ea6097bd (diff) | |
download | drakx-84942148c97222db0328dfed0fe3c7b047bb38b0.tar drakx-84942148c97222db0328dfed0fe3c7b047bb38b0.tar.gz drakx-84942148c97222db0328dfed0fe3c7b047bb38b0.tar.bz2 drakx-84942148c97222db0328dfed0fe3c7b047bb38b0.tar.xz drakx-84942148c97222db0328dfed0fe3c7b047bb38b0.zip |
polkit: Shuffle around folders a bit
Diffstat (limited to 'perl-install/standalone/polkit/Makefile')
-rw-r--r-- | perl-install/standalone/polkit/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/perl-install/standalone/polkit/Makefile b/perl-install/standalone/polkit/Makefile new file mode 100644 index 000000000..250afc2b0 --- /dev/null +++ b/perl-install/standalone/polkit/Makefile @@ -0,0 +1,24 @@ +BINDIR = /usr/bin +LIBEXECDIR = /usr/libexec +BINDEST = $(PREFIX)$(BINDIR) +POLKITPOLICYDEST = $(PREFIX)/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\n$(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) |