;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2016, 2017, 2018 Ludovic Courtès ;;; Copyright © 2016 Efraim Flashner ;;; ;;; 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 wordnet) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix licenses) #:use-module (guix download) #:use-module (gnu packages) #:use-module (gnu packages gcc) #:use-module (gnu packages tcl)) (define-public wordnet (package (name "wordnet") (version "3.0") (source (origin (method url-fetch) (uri (string-append "http://wordnetcode.princeton.edu/" version "/WordNet-" version ".tar.bz2")) (sha256 (base32 "08pgjvd2vvmqk3h641x63nxp7wqimb9r30889mkyfh2agc62sjbc")) (patches (search-patches "wordnet-CVE-2008-2149.patch" "wordnet-CVE-2008-3908-pt1.patch" "wordnet-CVE-2008-3908-pt2.patch")))) (build-system gnu-build-system) (arguments `(#:configure-flags (list (string-append "--with-tcl=" (assoc-ref %build-inputs "tcl") ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org> ;;; ;;; 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 <http://www.gnu.org/licenses/>. (define-module (gnu system nss) #:use-module (rnrs enums) #:use-module (guix records) #:use-module (srfi srfi-9) #:use-module (ice-9 match) #:export (name-service-switch? name-service-switch name-service? name-service lookup-specification %default-nss %mdns-host-lookup-nss %files %compat %dns name-service-switch->string)) ;;; Commentary: ;;; ;;; Bindings for libc's name service switch (NSS) configuration. ;;; ;;; Code: (define-record-type* <name-service> name-service make-name-service name-service? (name name-service-name) (reaction name-service-reaction (default (lookup-specification)))) ;; Lookup specification (info "(libc) Actions in the NSS Configuration"). (define-enumeration lookup-action (return continue) make-lookup-action) (define-enumeration lookup-status (success not-found unavailable try-again) make-lookup-status) (define-record-type <lookup-status-negation> (lookup-status-negation status) lookup-status-negation? (status lookup-status-negation-status)) (define-record-type <lookup-reaction> (make-lookup-reaction status action) lookup-reaction? (status lookup-reaction-status) (action lookup-reaction-action)) (define-syntax lookup-reaction (syntax-rules (not =>) ((_ ((not status) => action)) (make-lookup-reaction (lookup-status-negation (lookup-status status)) (lookup-action action))) ((_ (status => action)) (make-lookup-reaction (lookup-status status) (lookup-action action))))) (define-syntax-rule (lookup-specification reaction ...) "Return an NSS lookup specification." (list (lookup-reaction reaction) ...)) ;;; ;;; Common name services and default NSS configuration. ;;; (define %compat ;; Note: Starting fro