diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-12 14:18:04 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-12 14:28:57 +0100 |
commit | b41295b9c893a210913e8e85c71a9ba7e056973b (patch) | |
tree | 65348659fea222f6012d359b89dfab28cd9a24a6 /polkit/Makefile | |
parent | 1dd7dba00303fa14bbfcbdd0a8fe05071134754d (diff) | |
download | rpmdrake-b41295b9c893a210913e8e85c71a9ba7e056973b.tar rpmdrake-b41295b9c893a210913e8e85c71a9ba7e056973b.tar.gz rpmdrake-b41295b9c893a210913e8e85c71a9ba7e056973b.tar.bz2 rpmdrake-b41295b9c893a210913e8e85c71a9ba7e056973b.tar.xz rpmdrake-b41295b9c893a210913e8e85c71a9ba7e056973b.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 00000000..34e81069 --- /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) |