;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Andy Wingo ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages elogind) #:use-module ((guix licenses) #:select (lgpl2.1+)) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages docbook) #:use-module (gnu packages gettext) #:use-module (gnu packages gperf) #:use-module (gnu packages glib) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml)) (define-public elogind (let ((commit "b952404")) (package (name "elogind") (version (string-append "216." commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/andywingo/elogind") ; (url "file:///home/wingo/src/elogind") (commit commit))) (sha256 (base32 "0h54jw7h8csgfcjnyhijpmic5511jj0z5ln03p0b0mx0gvm11lsa")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'autogen (lambda _ (and (zero? (system* "intltoolize" "--force" "--automake")) (zero? (system* "autoreconf" "-vif"))))) (add-before 'build 'fix-docbook (lambda* (#:key inputs #:allow-other-keys) (substitute* "man/custom-html.xsl" (("http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl") (string-append (assoc-ref inputs "docbook-xsl") "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl) "/html/docbook.xsl"))) (substitute* "man/custom-man.xsl" (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") (string-append (assoc-ref inputs "docbook-xsl") "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl) "/manpages/docbook.xsl"))) #; (setenv "XML_CATALOG_FILES" (string-append (assoc-ref inputs "docbook-xml") "/xml/dtd/docbook/catalog.xml")) #t))))) (native-inputs `(("intltool" ,intltool) ("gettext" ,gnu-gettext) ("docbook-xsl" ,docbook-xsl) ("xsltproc" ,libxslt) ("pkg-config", pkg-config) ("autoconf" ,autoconf) ("automake" ,automake) ("libtool" ,libtool) ("gperf" ,gperf) )) (inputs `(("linux-pam" ,linux-pam) ("linux-libre-headers" ,linux-libre-headers) ("libcap" ,libcap) ("dbus" ,dbus) ("eudev" ,eudev) )) (home-page "https://github.com/andywingo/elogind") (synopsis "User, seat, and session management service") (description "Elogind is the systemd project's \"logind\" service, extracted out as a separate project. Elogind integrates with PAM to provide the org.freedesktop.login1 interface over the system bus, allowing other parts of a the system to know what users are logged in, and where.") (license lgpl2.1+))))