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