From a87e86c75e31d8b1ceb81e550251479bcdc6fe1d Mon Sep 17 00:00:00 2001 From: Rene Saavedra Date: Sat, 9 Apr 2016 23:11:24 -0500 Subject: [PATCH] gnu: Add liboauth. * gnu/packages/oauth.scm (liboauth): New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. --- gnu-system.am | 2 ++ gnu/packages/oauth.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 gnu/packages/oauth.scm diff --git a/gnu-system.am b/gnu-system.am index e413235..7865089 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -4,6 +4,7 @@ # Copyright © 2016 Mathieu Lirzin # Copyright © 2013, 2014, 2015, 2016 Mark H Weaver # Copyright © 2016 Chris Marusich +# Copyright © 2016 Rene Saavedra # # This file is part of GNU Guix. # @@ -246,6 +247,7 @@ GNU_SYSTEM_MODULES = \ gnu/packages/ntp.scm \ gnu/packages/nutrition.scm \ gnu/packages/nvi.scm \ + gnu/packages/oauth.scm \ gnu/packages/ocaml.scm \ gnu/packages/ocr.scm \ gnu/packages/onc-rpc.scm \ diff --git a/gnu/packages/oauth.scm b/gnu/packages/oauth.scm new file mode 100644 index 0000000..ed93c45 --- /dev/null +++ b/gnu/packages/oauth.scm @@ -0,0 +1,53 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 Rene Saavedra +;;; +;;; 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 oauth) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls)) + +(define-public liboauth + (package + (name "liboauth") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/liboauth/" + name "-" version ".tar.gz")) + (sha256 + (base32 + "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("openssl" ,openssl))) + (home-page "https://sourceforge.net/projects/liboauth") + (synopsis "Collection of s/POSIX-C/C/ functions implementing the OAuth API") + (description + "Liboauth provides functions to escape and encode strings according to +OAuth specifications and offers high-level functionality built on top to sign +requests or verify signatures using either NSS or OpenSSL for calculating +the hash/signatures.") + (license (list license:gpl2+ + license:openssl)))) ; OpenSSL library. -- 2.6.3