gnu: openssh: Update to 6.9p1.
[jackhill/guix/guix.git] / gnu / packages / polkit.scm
CommitLineData
cff1c5c1
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages polkit)
4923e06f 20 #:use-module ((guix licenses) #:select (lgpl2.0+))
cff1c5c1
AE
21 #:use-module (guix packages)
22 #:use-module (guix download)
054a3921 23 #:use-module (guix build-system cmake)
cff1c5c1 24 #:use-module (guix build-system gnu)
c4bd2aca
AE
25 #:use-module (gnu packages)
26 #:use-module (gnu packages glib)
4923e06f 27 #:use-module (gnu packages gnuzilla)
c4bd2aca 28 #:use-module (gnu packages linux)
cff1c5c1 29 #:use-module (gnu packages perl)
c4bd2aca
AE
30 #:use-module (gnu packages pkg-config)
31 #:use-module (gnu packages python)
054a3921 32 #:use-module (gnu packages qt)
c4bd2aca 33 #:use-module (gnu packages xml))
cff1c5c1 34
c4bd2aca
AE
35(define-public polkit
36 (package
37 (name "polkit")
38 (version "0.112")
39 (source (origin
40 (method url-fetch)
41 (uri (string-append
42 "http://www.freedesktop.org/software/polkit/releases/"
43 name "-" version ".tar.gz"))
44 (sha256
45 (base32
46 "1xkary7yirdcjdva950nqyhmsz48qhrdsr78zciahj27p8yg95fn"))
47 (patches (list (search-patch "polkit-drop-test.patch")))))
48 (build-system gnu-build-system)
49 (inputs
50 `(("expat" ,expat)
c4bd2aca
AE
51 ("glib:bin" ,glib "bin") ; for glib-mkenums
52 ("intltool" ,intltool)
53 ("linux-pam" ,linux-pam)
54 ("mozjs" ,mozjs)
55 ("nspr" ,nspr)))
b118401f
AE
56 (propagated-inputs
57 `(("glib" ,glib))) ; required by polkit-gobject-1.pc
c4bd2aca
AE
58 (native-inputs
59 `(("pkg-config", pkg-config)))
60 (home-page "http://www.freedesktop.org/wiki/Software/polkit/")
61 (synopsis "Authorization API for privilege management")
62 (description "Polkit is an application-level toolkit for defining and
63handling the policy that allows unprivileged processes to speak to
64privileged processes. It is a framework for centralizing the decision
65making process with respect to granting access to privileged operations
66for unprivileged applications.")
67 (license lgpl2.0+)))
054a3921
AE
68
69(define-public polkit-qt
70 (package
71 (name "polkit-qt")
72 (version "1-0.112.0")
73 (source (origin
74 (method url-fetch)
75 (uri (string-append
76 "http://download.kde.org/stable/apps/KDE4.x/admin/"
77 name "-" version ".tar.bz2"))
78 (sha256
79 (base32
80 "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7"))))
81 (build-system cmake-build-system)
82 (inputs
b118401f 83 `(("polkit" ,polkit)))
054a3921
AE
84 (propagated-inputs
85 `(("qt" ,qt-4))) ; according to the pkg-config files
86 (native-inputs
87 `(("pkg-config", pkg-config)))
88 (arguments
cb151c68
LC
89 `(#:configure-flags (list (string-append "-DCMAKE_INSTALL_RPATH="
90 (assoc-ref %outputs "out")
91 "/lib:"
92 (assoc-ref %outputs "out")
93 "/lib64"))
94 #:tests? #f)) ; there is a test subdirectory, but no test target
054a3921
AE
95 (home-page "http://api.kde.org/kdesupport-api/polkit-qt-1-apidocs/")
96 (synopsis "Qt frontend to the polkit library")
97 (description "Polkit-qt is a library that lets developers use the
98PolicyKit API through a Qt-styled API. It is mainly a wrapper around
99QAction and QAbstractButton that lets you integrate those two component
100easily with PolicyKit.")
101 (license lgpl2.0+)))