Add wrapper script "mate-polkit" (with man page) allowing execution of the mate-polkit service outside of MATE desktops.

This commit is contained in:
Mike Gabriel 2016-02-15 07:51:01 +01:00
parent 3973091195
commit bbc47e3f8d
5 changed files with 19 additions and 2 deletions

3
debian/bin/mate-polkit.in vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/@BUILD_ARCH@/polkit-mate/polkit-mate-authentication-agent-1 &

8
debian/man/mate-polkit.1 vendored Normal file
View File

@ -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).

View File

@ -1 +1,2 @@
debian/bin/
usr/lib/*/polkit-mate/

1
debian/mate-polkit.manpages vendored Normal file
View File

@ -0,0 +1 @@
debian/man/mate-polkit.1

8
debian/rules vendored
View File

@ -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=..