[mate-polkit] 01/03: Add wrapper script "mate-polkit" (with man page) allowing execution of the mate-polkit service outside of MATE desktops.

Mike Gabriel sunweaver at debian.org
Mon Feb 15 07:08:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-polkit.

commit bbc47e3f8d32c66b1a9830b269e3bb9cb1e67e80
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Feb 15 07:51:01 2016 +0100

    Add wrapper script "mate-polkit" (with man page) allowing execution of the mate-polkit service outside of MATE desktops.
---
 debian/bin/mate-polkit.in   | 3 +++
 debian/man/mate-polkit.1    | 8 ++++++++
 debian/mate-polkit.install  | 1 +
 debian/mate-polkit.manpages | 1 +
 debian/rules                | 8 ++++++--
 5 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/bin/mate-polkit.in b/debian/bin/mate-polkit.in
new file mode 100755
index 0000000..5da838e
--- /dev/null
+++ b/debian/bin/mate-polkit.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/lib/@BUILD_ARCH@/polkit-mate/polkit-mate-authentication-agent-1 &
diff --git a/debian/man/mate-polkit.1 b/debian/man/mate-polkit.1
new file mode 100644
index 0000000..8dfe81d
--- /dev/null
+++ b/debian/man/mate-polkit.1
@@ -0,0 +1,8 @@
+.TH mate-polkit 1 "" ""
+.SH NAME
+mate-polkit \- MATE PolicyKit-1 executable wrapper
+.SH SYNOPSIS
+.B mate-polkit
+.SH DESCRIPTION
+A wrapper for the MATE PolicyKit-1 executable. Make MATE PolicyKit-1 easily
+accessible on non-MATE desktops (e.g., i3, awesome, ratpoison and such).
diff --git a/debian/mate-polkit.install b/debian/mate-polkit.install
index b0bfa1a..9e7a027 100644
--- a/debian/mate-polkit.install
+++ b/debian/mate-polkit.install
@@ -1 +1,2 @@
+debian/bin/
 usr/lib/*/polkit-mate/
diff --git a/debian/mate-polkit.manpages b/debian/mate-polkit.manpages
new file mode 100644
index 0000000..43f8a64
--- /dev/null
+++ b/debian/mate-polkit.manpages
@@ -0,0 +1 @@
+debian/man/mate-polkit.1
diff --git a/debian/rules b/debian/rules
index 91cf568..78fdd5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,11 +22,15 @@ DEB_CONFIGURE_EXTRA_FLAGS := --disable-silent-rules \
                              --disable-static \
                              --with-gtk=2.0
 
-common-install-indep:: remove-cruft
-common-install-arch:: remove-cruft
+common-install-indep:: remove-cruft install-wrapper
+common-install-arch:: remove-cruft install-wrapper
 
 remove-cruft::
 	rm -fv debian/tmp/usr/lib/*/*.la
 
+install-wrapper::
+	mkdir -p debian/tmp/usr/bin/
+	cat debian/bin/mate-polkit.in  | sed -e 's/@BUILD_ARCH@/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/' > debian/tmp/usr/bin/mate-polkit
+
 get-orig-source:
 	uscan --noconf --force-download --rename --download-current-version --destdir=..

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-polkit.git



More information about the pkg-mate-commits mailing list