summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/policykit/Manifest4
-rw-r--r--sys-auth/policykit/files/PolicyKit.conf13
-rw-r--r--sys-auth/policykit/files/policykit-0.7-completions.patch203
-rw-r--r--sys-auth/policykit/policykit-0.9.ebuild94
4 files changed, 0 insertions, 314 deletions
diff --git a/sys-auth/policykit/Manifest b/sys-auth/policykit/Manifest
deleted file mode 100644
index 976c180..0000000
--- a/sys-auth/policykit/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX PolicyKit.conf 391 RMD160 a9dbec3e7b2e3ef56d281d888ffaff68b3d62637 SHA1 c79e0f782f703a7091ce6ade5b5b504d33011392 SHA256 b17726dc415f022d21542ede6dd8bf45ffd4d1738da55f966b80b49d6be42ffd
-AUX policykit-0.7-completions.patch 6701 RMD160 5ee4775762a4f8f40404bf5c31b1ccd59ff700a4 SHA1 7704fc1eff5480bd4bddbd1fadfd3fbf39edde77 SHA256 8714537248aad1982e555cf2af046a371c24fab5f8b686e94082cb3246c4a635
-DIST PolicyKit-0.9.tar.gz 1254318 RMD160 197262d1c48e55558dd4bd57d7bbd8734666129c SHA1 ac99c580eff72f6d5df261c155fb047306439f85 SHA256 f40c7c6bec19d7dba2335bddcffd0457494409a0dfce11d888c748dc892e80b7
-EBUILD policykit-0.9.ebuild 2450 RMD160 e5fa083173a403826c9a48badaa239bc2d83e521 SHA1 6a076d15e0a1d7f07e621c8632b5e0a9aec5022e SHA256 362f76ce4b40afd09b52303a0d3661942a5c3f4b987f6c593c89f00e7564c8ae
diff --git a/sys-auth/policykit/files/PolicyKit.conf b/sys-auth/policykit/files/PolicyKit.conf
deleted file mode 100644
index 687ce97..0000000
--- a/sys-auth/policykit/files/PolicyKit.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
-
-<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
-"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
-
-<!-- See the manual page PolicyKit.conf(5) for file format -->
-
-<config version="0.1">
-<define_admin_auth group="wheel"/>
-<match user="root">
- <return result="yes"/>
-</match>
-</config>
diff --git a/sys-auth/policykit/files/policykit-0.7-completions.patch b/sys-auth/policykit/files/policykit-0.7-completions.patch
deleted file mode 100644
index 37f8d0d..0000000
--- a/sys-auth/policykit/files/policykit-0.7-completions.patch
+++ /dev/null
@@ -1,203 +0,0 @@
-commit afb4535accaa08e20050a7b2d508d884b02f45a0
-Author: Saleem Abdulrasool <compnerd@compnerd.org>
-Date: Mon Nov 19 15:35:03 2007 -0800
-
- add zsh completion and optionalize bash and zsh completion
-
- Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
-
-diff --git a/configure.in b/configure.in
-index 2fdb935..a9ea35a 100644
---- a/configure.in
-+++ b/configure.in
-@@ -495,6 +495,21 @@ AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_PASSWORD, "$PAM_FILE_INCLUDE_PASSWORD", [pam
- AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_SESSION, "$PAM_FILE_INCLUDE_SESSION", [pam file session])
-
- # ********************
-+# Shell Completion
-+# ********************
-+
-+AC_ARG_WITH([bash-completion],
-+ AC_HELP_STRING([--with-bash-completion],[Install bash completion scripts]),,
-+ [with_bash_completion=yes])
-+
-+AC_ARG_WITH([zsh-completion],
-+ AC_HELP_STRING([--with-zsh-completion],[Install zsh completion scripts]),,
-+ [with_zsh_completion=no])
-+
-+AM_CONDITIONAL([WITH_BASH_COMPLETION], test x"$with_bash_completion" != x"no")
-+AM_CONDITIONAL([WITH_ZSH_COMPLETION], test x"$with_zsh_completion" != x"no")
-+
-+# ********************
- # Internationalisation
- # ********************
-
-diff --git a/tools/Makefile.am b/tools/Makefile.am
-index a76e9fc..0449e12 100644
---- a/tools/Makefile.am
-+++ b/tools/Makefile.am
-@@ -25,10 +25,17 @@ polkit_auth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ $(top_builddir)/src/polkit/libpolkit
- polkit_action_SOURCES = polkit-action.c
- polkit_action_LDADD = $(top_builddir)/src/polkit/libpolkit.la
-
-+if WITH_BASH_COMPLETION
- profiledir = $(sysconfdir)/profile.d
- profile_SCRIPTS = polkit-bash-completion.sh
-+endif
-
--EXTRA_DIST = $(profile_SCRIPTS)
-+if WITH_ZSH_COMPLETION
-+zshcompletiondir = $(DESTDIR)$(datadir)/zsh/site-functions
-+zshcompletion_SCRIPTS = _polkit _polkit_auth _polkit_action
-+endif
-+
-+EXTRA_DIST = polkit-bash-completion.sh _polkit _polkit_auth _polkit_action
-
- clean-local :
- rm -f *~ polkit-reload-config
-diff --git a/tools/_polkit b/tools/_polkit
-new file mode 100644
-index 0000000..bc7bdac
---- /dev/null
-+++ b/tools/_polkit
-@@ -0,0 +1,54 @@
-+#autoload
-+
-+# vim: set et sw=3 sts=3 ts=3 ft=zsh:
-+# ZSH Completion for polkit-auth
-+# Written by Saleem Abdulrasool <compnerd@compnerd.org>
-+# Usage: _polkit actions|constraints|authorization|overriden-actions|obtainable-actions|authorized-actions
-+
-+_polkit_actions() {
-+ local actions
-+ actions=( $(polkit-action) )
-+ compadd "$@" -k actions
-+}
-+
-+_polkit_constraints() {
-+ local constraints
-+ constraints=( local active local+active )
-+ compadd "$@" -k constraints
-+}
-+
-+_polkit_authorization() {
-+ local authorization
-+ authorization=( no auth_admin_one_shot auth_admin auth_admin_keep_session auth_admin_keep_always auth_self_one_shot auth_self auth_self_keep_session auth_self_keep_always yes )
-+ compadd "$@" -k authorization
-+}
-+
-+_polkit_overriden_actions() {
-+ local overrides
-+ overrides=( $(polkit-action --show-overrides) )
-+ compadd "$@" -k overrides
-+}
-+
-+_polkit_obtainable_actions() {
-+ local actions
-+ actions=( $(polkit-auth --show-obtainable) )
-+ compadd "$@" -k actions
-+}
-+
-+_polkit_authorized_actions() {
-+ local actions
-+ actions=( $(polkit-auth --explicit) )
-+ compadd "$@" -k actions
-+}
-+
-+_polkit() {
-+ local command="$argv[$#]"
-+
-+ [[ "$command" == (actions|constraints|authorization|overriden-actions|obtainable-actions|authorized-actions) ]] || {
-+ _message "unknown command: $command"
-+ }
-+
-+ _polkit_${command/-/_}
-+}
-+
-+_polkit "$@"
-diff --git a/tools/_polkit_action b/tools/_polkit_action
-new file mode 100644
-index 0000000..7ec7365
---- /dev/null
-+++ b/tools/_polkit_action
-@@ -0,0 +1,24 @@
-+#compdef polkit-action
-+
-+# vim: set et sw=3 sts=3 ts=3 ft=zsh:
-+# ZSH Completion for polkit-action
-+# Written by Saleem Abdulrasool <compnerd@compnerd.org>
-+
-+_polkit_action() {
-+ local arguments
-+
-+ arguments=(
-+ "(-)--action[Show detailed information about a specific action]:action:_polkit actions"
-+ "(-)--reset-defaults[Reset the defaults for the specified action]:Overridden Action:_polkit overriden-actions"
-+ "(-)--show-overrides[List actions where the defaults are overridden]"
-+ "(-)--set-defaults-any[Override the any stanza for an action]:Action:_polkit _actions:Authorization:_polkit authorization"
-+ "(-)--set-defaults-inactive[Override the inactive stanza for an action]:Action:polkit _actions:Authorization:_polkit authorization"
-+ "(-)--set-defaults-active[Override the active stanza for an action]:Action:polkit _actions:Authorization:_polkit authorization"
-+ "(-)--version[Display program version]"
-+ "(-)--help[Display program help]"
-+ )
-+
-+ _arguments $arguments
-+}
-+
-+_polkit_action "$@"
-diff --git a/tools/_polkit_auth b/tools/_polkit_auth
-new file mode 100644
-index 0000000..e70f1a0
---- /dev/null
-+++ b/tools/_polkit_auth
-@@ -0,0 +1,50 @@
-+#compdef polkit-auth
-+
-+# vim: set et sw=3 sts=3 ts=3 ft=zsh:
-+# ZSH Completion for polkit-auth
-+# Written by Saleem Abdulrasool <compnerd@compnerd.org>
-+
-+_polkit_auth() {
-+ local arguments action_arguments user_arguments grant_arguments
-+ local commands actions grant=0
-+
-+ commands=( --show-obtainable --version --help )
-+ actions=( --obtain --explicit --explicit-detail --grant --revoke )
-+
-+ for (( i = 0 ; i < ${#words[@]} ; i++ )) ; do
-+ if [[ "${words[$i]##--#}" == "grant" ]] ; then
-+ grant=1
-+ break
-+ fi
-+ done
-+
-+ arguments=(
-+ '(-)--show-obtainable[Show all actions that can be obtained via authentication]'
-+ '(-)--version[Show version and exit]'
-+ '(-)--help[Show help information]'
-+ )
-+
-+ action_arguments=(
-+ "($commands $actions)--obtain[Attempt to obtain authorization to do an action]:Obtainable Actions:_polkit obtainable-actions"
-+ "($commands $actions)--explicit[Show explicit authorizations]"
-+ "($commands $actions)--explicit-detail[Show detailed information about explicit authorizations]"
-+ "($commands $actions)--grant[Grant an authorization for an action]:Obtainable Actions:_polkit actions"
-+ "($commands $actions)--revoke[Revoke all authorization for an action]:Authorized Actions:_polkit authorized-actions"
-+ )
-+
-+ user_arguments=(
-+ "($commands)--user[The user the authorization applies to]:User:_users"
-+ )
-+
-+ grant_arguments=(
-+ "($commands)--constraint[Optional constraints on the granted authorization]:Constraint:_polkit constraints"
-+ )
-+
-+ if [[ grant -eq 1 ]] ; then
-+ _arguments $arguments $user_arguments $action_arguments $grant_arguments
-+ else
-+ _arguments $arguments $user_arguments $action_arguments
-+ fi
-+}
-+
-+_polkit_auth "$@"
diff --git a/sys-auth/policykit/policykit-0.9.ebuild b/sys-auth/policykit/policykit-0.9.ebuild
deleted file mode 100644
index eeb5d8d..0000000
--- a/sys-auth/policykit/policykit-0.9.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/policykit/policykit-0.6.ebuild,v 1.6 2008/01/25 19:09:40 corsair Exp $
-
-inherit autotools bash-completion eutils multilib pam
-
-MY_PN="PolicyKit"
-
-DESCRIPTION="Policy framework for controlling privileges for system-wide services"
-HOMEPAGE="http://hal.freedesktop.org/docs/PolicyKit"
-SRC_URI="http://hal.freedesktop.org/releases/${MY_PN}-${PV}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
-IUSE="bash-completion doc pam selinux zsh-completion"
-
-RDEPEND=">=dev-libs/glib-2.6
- >=dev-libs/dbus-glib-0.73
- dev-libs/expat
- pam? ( virtual/pam )
- selinux? ( sys-libs/libselinux )"
-DEPEND="${RDEPEND}
- dev-libs/libxslt
- app-text/docbook-xsl-stylesheets
- >=dev-util/pkgconfig-0.18
- >=dev-util/intltool-0.36
- >=dev-util/gtk-doc-am-1.10-r1
- doc? ( >=dev-util/gtk-doc-1.10 )"
-
-S="${WORKDIR}/${MY_PN}-${PV}"
-
-pkg_setup() {
- enewgroup polkituser || die "failed to create group"
- enewuser polkituser -1 "-1" /dev/null polkituser || die "failed to create user"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-0.7-completions.patch"
- eautoreconf
-}
-
-src_compile() {
- local authdb=
-
- if use pam ; then
- authdb="--with-authdb=default --with-authfw=pam --with-pam-module-dir=$(getpam_mod_dir)"
- else
- authdb="--with-authdb=dummy --with-authfw=none"
- fi
-
- econf ${authdb} \
- --without-bash-completion \
- --without-zsh-completion \
- --enable-man-pages \
- --with-os-type=gentoo \
- --with-polkit-user=polkituser \
- --with-polkit-group=polkituser \
- $(use_enable doc gtk-doc) \
- $(use_enable selinux) \
- --localstatedir=/var
- # won't install with tests
- # $(use_enable test tests) \
- emake || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- dodoc NEWS README AUTHORS ChangeLog
-
- if use bash-completion; then
- dobashcompletion "${S}/tools/polkit-bash-completion.sh"
- fi
-
- if use zsh-completion ; then
- insinto /usr/share/zsh/site-functions
- doins "${S}/tools/_polkit" || die
- doins "${S}/tools/_polkit_auth" || die
- doins "${S}/tools/_polkit_action" || die
- fi
-
- einfo "Installing basic PolicyKit.conf"
- insinto /etc/PolicyKit
- doins "${FILESDIR}"/PolicyKit.conf
- # Need to keep a few directories around...
-
- diropts -m0770
- keepdir /var/run/PolicyKit
- keepdir /var/lib/PolicyKit
-}