summaryrefslogtreecommitdiffstats
path: root/polkit
diff options
context:
space:
mode:
Diffstat (limited to 'polkit')
-rw-r--r--polkit/Makefile24
-rw-r--r--polkit/org.mageia.drakconnect.policy.in (renamed from polkit/policy/org.mageia.drakconnect.policy.in)0
-rw-r--r--polkit/org.mageia.drakfirewall.policy.in (renamed from polkit/policy/org.mageia.drakfirewall.policy.in)0
-rw-r--r--polkit/org.mageia.drakgw.policy.in (renamed from polkit/policy/org.mageia.drakgw.policy.in)0
-rw-r--r--polkit/org.mageia.drakhosts.policy.in (renamed from polkit/policy/org.mageia.drakhosts.policy.in)0
-rw-r--r--polkit/org.mageia.drakids.policy.in (renamed from polkit/policy/org.mageia.drakids.policy.in)0
-rw-r--r--polkit/org.mageia.drakinvictus.policy.in (renamed from polkit/policy/org.mageia.drakinvictus.policy.in)0
-rw-r--r--polkit/org.mageia.draknetcenter.policy.in (renamed from polkit/policy/org.mageia.draknetcenter.policy.in)0
-rw-r--r--polkit/org.mageia.draknetprofile.policy.in (renamed from polkit/policy/org.mageia.draknetprofile.policy.in)0
-rw-r--r--polkit/org.mageia.draknfs.policy.in (renamed from polkit/policy/org.mageia.draknfs.policy.in)0
-rw-r--r--polkit/org.mageia.drakproxy.policy.in (renamed from polkit/policy/org.mageia.drakproxy.policy.in)0
-rw-r--r--polkit/org.mageia.drakroam.policy.in (renamed from polkit/policy/org.mageia.drakroam.policy.in)0
-rw-r--r--polkit/org.mageia.draksambashare.policy.in (renamed from polkit/policy/org.mageia.draksambashare.policy.in)0
-rw-r--r--polkit/org.mageia.drakvpn.policy.in (renamed from polkit/policy/org.mageia.drakvpn.policy.in)0
-rw-r--r--polkit/policy/Makefile16
-rwxr-xr-xpolkit/wrappers/drakconnect2
-rwxr-xr-xpolkit/wrappers/drakfirewall2
-rwxr-xr-xpolkit/wrappers/drakgw2
-rwxr-xr-xpolkit/wrappers/drakhosts2
-rwxr-xr-xpolkit/wrappers/drakids2
-rwxr-xr-xpolkit/wrappers/drakinvictus2
-rwxr-xr-xpolkit/wrappers/draknetcenter2
-rwxr-xr-xpolkit/wrappers/draknetprofile2
-rwxr-xr-xpolkit/wrappers/draknfs2
-rwxr-xr-xpolkit/wrappers/drakproxy2
-rwxr-xr-xpolkit/wrappers/drakroam2
-rwxr-xr-xpolkit/wrappers/draksambashare2
-rwxr-xr-xpolkit/wrappers/drakvpn2
28 files changed, 24 insertions, 42 deletions
diff --git a/polkit/Makefile b/polkit/Makefile
new file mode 100644
index 0000000..b996120
--- /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\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)
diff --git a/polkit/policy/org.mageia.drakconnect.policy.in b/polkit/org.mageia.drakconnect.policy.in
index d7432ac..d7432ac 100644
--- a/polkit/policy/org.mageia.drakconnect.policy.in
+++ b/polkit/org.mageia.drakconnect.policy.in
diff --git a/polkit/policy/org.mageia.drakfirewall.policy.in b/polkit/org.mageia.drakfirewall.policy.in
index 3b15fc9..3b15fc9 100644
--- a/polkit/policy/org.mageia.drakfirewall.policy.in
+++ b/polkit/org.mageia.drakfirewall.policy.in
diff --git a/polkit/policy/org.mageia.drakgw.policy.in b/polkit/org.mageia.drakgw.policy.in
index 496ad3b..496ad3b 100644
--- a/polkit/policy/org.mageia.drakgw.policy.in
+++ b/polkit/org.mageia.drakgw.policy.in
diff --git a/polkit/policy/org.mageia.drakhosts.policy.in b/polkit/org.mageia.drakhosts.policy.in
index 93cc6d5..93cc6d5 100644
--- a/polkit/policy/org.mageia.drakhosts.policy.in
+++ b/polkit/org.mageia.drakhosts.policy.in
diff --git a/polkit/policy/org.mageia.drakids.policy.in b/polkit/org.mageia.drakids.policy.in
index de0647d..de0647d 100644
--- a/polkit/policy/org.mageia.drakids.policy.in
+++ b/polkit/org.mageia.drakids.policy.in
diff --git a/polkit/policy/org.mageia.drakinvictus.policy.in b/polkit/org.mageia.drakinvictus.policy.in
index 25f6264..25f6264 100644
--- a/polkit/policy/org.mageia.drakinvictus.policy.in
+++ b/polkit/org.mageia.drakinvictus.policy.in
diff --git a/polkit/policy/org.mageia.draknetcenter.policy.in b/polkit/org.mageia.draknetcenter.policy.in
index 3848592..3848592 100644
--- a/polkit/policy/org.mageia.draknetcenter.policy.in
+++ b/polkit/org.mageia.draknetcenter.policy.in
diff --git a/polkit/policy/org.mageia.draknetprofile.policy.in b/polkit/org.mageia.draknetprofile.policy.in
index 2ae364b..2ae364b 100644
--- a/polkit/policy/org.mageia.draknetprofile.policy.in
+++ b/polkit/org.mageia.draknetprofile.policy.in
diff --git a/polkit/policy/org.mageia.draknfs.policy.in b/polkit/org.mageia.draknfs.policy.in
index cec39f6..cec39f6 100644
--- a/polkit/policy/org.mageia.draknfs.policy.in
+++ b/polkit/org.mageia.draknfs.policy.in
diff --git a/polkit/policy/org.mageia.drakproxy.policy.in b/polkit/org.mageia.drakproxy.policy.in
index 46e9860..46e9860 100644
--- a/polkit/policy/org.mageia.drakproxy.policy.in
+++ b/polkit/org.mageia.drakproxy.policy.in
diff --git a/polkit/policy/org.mageia.drakroam.policy.in b/polkit/org.mageia.drakroam.policy.in
index 060a4a3..060a4a3 100644
--- a/polkit/policy/org.mageia.drakroam.policy.in
+++ b/polkit/org.mageia.drakroam.policy.in
diff --git a/polkit/policy/org.mageia.draksambashare.policy.in b/polkit/org.mageia.draksambashare.policy.in
index 1836316..1836316 100644
--- a/polkit/policy/org.mageia.draksambashare.policy.in
+++ b/polkit/org.mageia.draksambashare.policy.in
diff --git a/polkit/policy/org.mageia.drakvpn.policy.in b/polkit/org.mageia.drakvpn.policy.in
index f026f39..f026f39 100644
--- a/polkit/policy/org.mageia.drakvpn.policy.in
+++ b/polkit/org.mageia.drakvpn.policy.in
diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile
deleted file mode 100644
index 1de7222..0000000
--- a/polkit/policy/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions
-
-POLICY_IN := $(wildcard *.policy.in)
-POLICY = $(POLICY_IN:.policy.in=.policy)
-
-all: $(POLICY)
-
-clean:
- rm -f $(POLICY)
-
-install: all
- install -d $(POLKITPOLICYDEST)
- install -m644 $(POLICY) $(POLKITPOLICYDEST)
-
-%.policy: %.policy.in
- intltool-merge --utf8 ../../po $< $@ -x -u -c ../../po/.intltool-merge-cache
diff --git a/polkit/wrappers/drakconnect b/polkit/wrappers/drakconnect
deleted file mode 100755
index 7f2ee3f..0000000
--- a/polkit/wrappers/drakconnect
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakconnect $*
diff --git a/polkit/wrappers/drakfirewall b/polkit/wrappers/drakfirewall
deleted file mode 100755
index 9cf24ca..0000000
--- a/polkit/wrappers/drakfirewall
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakfirewall $*
diff --git a/polkit/wrappers/drakgw b/polkit/wrappers/drakgw
deleted file mode 100755
index 240f80f..0000000
--- a/polkit/wrappers/drakgw
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakgw $*
diff --git a/polkit/wrappers/drakhosts b/polkit/wrappers/drakhosts
deleted file mode 100755
index d028be8..0000000
--- a/polkit/wrappers/drakhosts
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakhosts $*
diff --git a/polkit/wrappers/drakids b/polkit/wrappers/drakids
deleted file mode 100755
index 8a5b73f..0000000
--- a/polkit/wrappers/drakids
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakids $*
diff --git a/polkit/wrappers/drakinvictus b/polkit/wrappers/drakinvictus
deleted file mode 100755
index d7f0a62..0000000
--- a/polkit/wrappers/drakinvictus
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakinvictus $*
diff --git a/polkit/wrappers/draknetcenter b/polkit/wrappers/draknetcenter
deleted file mode 100755
index 47c6f55..0000000
--- a/polkit/wrappers/draknetcenter
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/draknetcenter $*
diff --git a/polkit/wrappers/draknetprofile b/polkit/wrappers/draknetprofile
deleted file mode 100755
index e1e5bd7..0000000
--- a/polkit/wrappers/draknetprofile
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/draknetprofile $*
diff --git a/polkit/wrappers/draknfs b/polkit/wrappers/draknfs
deleted file mode 100755
index 2e90f23..0000000
--- a/polkit/wrappers/draknfs
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/draknfs $*
diff --git a/polkit/wrappers/drakproxy b/polkit/wrappers/drakproxy
deleted file mode 100755
index 3bb43c8..0000000
--- a/polkit/wrappers/drakproxy
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakproxy $*
diff --git a/polkit/wrappers/drakroam b/polkit/wrappers/drakroam
deleted file mode 100755
index 9b5747e..0000000
--- a/polkit/wrappers/drakroam
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakroam $*
diff --git a/polkit/wrappers/draksambashare b/polkit/wrappers/draksambashare
deleted file mode 100755
index 13e4c91..0000000
--- a/polkit/wrappers/draksambashare
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/draksambashare $*
diff --git a/polkit/wrappers/drakvpn b/polkit/wrappers/drakvpn
deleted file mode 100755
index 17d091f..0000000
--- a/polkit/wrappers/drakvpn
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/bin/pkexec /usr/libexec/drakvpn $*