summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Dvorsak <eric@dvorsak.fr>2015-08-12 19:08:40 +0200
committerEric Dvorsak <eric@dvorsak.fr>2015-08-12 19:08:40 +0200
commit26b44cdee9d3c5530f1396a2258f9c234314c3f2 (patch)
treef0cfef3cc62b88c4d7a294b5af9add51ee6ea6bf
parentadding clojure and emacs-circe (diff)
downloadguix-nonfree-26b44cdee9d3c5530f1396a2258f9c234314c3f2.tar.gz
add java certs
-rwxr-xr-xcacertsbin0 -> 207134 bytes
-rw-r--r--java-certs.scm47
2 files changed, 47 insertions, 0 deletions
diff --git a/cacerts b/cacerts
new file mode 100755
index 0000000..db4ef5e
--- /dev/null
+++ b/cacerts
Binary files differ
diff --git a/java-certs.scm b/java-certs.scm
new file mode 100644
index 0000000..dffa5aa
--- /dev/null
+++ b/java-certs.scm
@@ -0,0 +1,47 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2015 Mark H Weaver <mhw@netris.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 (java-certs)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (guix build-system trivial)
+ #:use-module (gnu packages))
+
+
+(define-public java-certs
+ (package
+ (name "java-certs")
+ (version "1.0")
+ (source ("/home/yenda/src/guix/cacerts" "cacerts"))
+ (build-system trivial)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((certsdir (string-append %output "/etc/ssl/certs/java")))
+ (mkdir-p certsdir)
+ (copy-file source (string-append certsdir "/cacerts"))))))
+ (native-inputs
+ `(("source" ,source)))
+ (synopsis "Java CA certificates from Debian")
+ (description
+ "This package provides certificates for Certification Authorities (CA)
+taken from the NSS package and thus ultimately from the Mozilla project."))
+ (license license:gpl2+))