Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ssl-cert.eclass
Date: Mon, 14 Apr 2008 06:37:47
Message-Id: E1JlIK0-0000dY-T7@stork.gentoo.org
1 ulm 08/04/14 06:37:44
2
3 Modified: ssl-cert.eclass
4 Log:
5 Add magic comments for eclass-manpages.
6
7 Revision Changes Path
8 1.16 eclass/ssl-cert.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ssl-cert.eclass?rev=1.16&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ssl-cert.eclass?rev=1.16&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ssl-cert.eclass?r1=1.15&r2=1.16
13
14 Index: ssl-cert.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v
17 retrieving revision 1.15
18 retrieving revision 1.16
19 diff -u -r1.15 -r1.16
20 --- ssl-cert.eclass 14 Apr 2008 06:27:45 -0000 1.15
21 +++ ssl-cert.eclass 14 Apr 2008 06:37:44 -0000 1.16
22 @@ -1,17 +1,25 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.15 2008/04/14 06:27:45 ulm Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.16 2008/04/14 06:37:44 ulm Exp $
27 #
28 +# @ECLASS: ssl-cert.eclass
29 +# @MAINTAINER:
30 # Author: Max Kalika <max@g.o>
31 -#
32 -# This eclass implements standard installation procedure for installing
33 +# @BLURB: Eclass for SSL certificates
34 +# @DESCRIPTION:
35 +# This eclass implements a standard installation procedure for installing
36 # self-signed SSL certificates.
37 +# @EXAMPLE:
38 +# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
39
40 # Conditionally depend on OpenSSL: allows inheretence
41 # without pulling extra packages if not needed
42 DEPEND="ssl? ( dev-libs/openssl )"
43 IUSE="ssl"
44
45 +# @FUNCTION: gen_cnf
46 +# @USAGE:
47 +# @DESCRIPTION:
48 # Initializes variables and generates the needed
49 # OpenSSL configuration file and a CA serial file
50 #
51 @@ -60,6 +68,10 @@
52 return $?
53 }
54
55 +# @FUNCTION: get_base
56 +# @USAGE: [if_ca]
57 +# @RETURN: <base path>
58 +# @DESCRIPTION:
59 # Simple function to determine whether we're creating
60 # a CA (which should only be done once) or final part
61 #
62 @@ -72,6 +84,9 @@
63 fi
64 }
65
66 +# @FUNCTION: gen_key
67 +# @USAGE: <base path>
68 +# @DESCRIPTION:
69 # Generates an RSA key
70 #
71 # Access: private
72 @@ -85,6 +100,9 @@
73 return $?
74 }
75
76 +# @FUNCTION: gen_csr
77 +# @USAGE: <base path>
78 +# @DESCRIPTION:
79 # Generates a certificate signing request using
80 # the key made by gen_key()
81 #
82 @@ -99,6 +117,9 @@
83 return $?
84 }
85
86 +# @FUNCTION: gen_crt
87 +# @USAGE: <base path>
88 +# @DESCRIPTION:
89 # Generates either a self-signed CA certificate using
90 # the csr and key made by gen_csr() and gen_key() or
91 # a signed server certificate using the CA cert previously
92 @@ -125,6 +146,9 @@
93 return $?
94 }
95
96 +# @FUNCTION: gen_pem
97 +# @USAGE: <base path>
98 +# @DESCRIPTION:
99 # Generates a PEM file by concatinating the key
100 # and cert file created by gen_key() and gen_cert()
101 #
102 @@ -145,11 +169,12 @@
103 die
104 }
105
106 -# Uses all the private functions above to generate
107 -# and install the requested certificates
108 -#
109 -# Usage: install_cert <certificates>
110 -# where <certificates> are full pathnames relative to ROOT, without extension.
111 +# @FUNCTION: install_cert
112 +# @USAGE: <certificates>
113 +# @DESCRIPTION:
114 +# Uses all the private functions above to generate and install the
115 +# requested certificates.
116 +# <certificates> are full pathnames relative to ROOT, without extension.
117 #
118 # Example: "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
119 #
120
121
122
123 --
124 gentoo-commits@l.g.o mailing list