From bbc47e3f8d32c66b1a9830b269e3bb9cb1e67e80 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 15 Feb 2016 07:51:01 +0100 Subject: [PATCH] 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(-) create mode 100755 debian/bin/mate-polkit.in create mode 100644 debian/man/mate-polkit.1 create mode 100644 debian/mate-polkit.manpages 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=..