/[gentoo-x86]/eclass/ssl-cert.eclass
Gentoo

Diff of /eclass/ssl-cert.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1.1.1 Revision 1.2
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.1.1.1 2005/11/30 09:59:20 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.2 2004/04/01 22:08:35 vapier Exp $
4# 4#
5# Author: Max Kalika <max@gentoo.org> 5# Author: Max Kalika <max@gentoo.org>
6# 6#
7# This eclass implements standard installation procedure for installing 7# This eclass implements standard installation procedure for installing
8# self-signed SSL certificates. 8# self-signed SSL certificates.
9 9
10ECLASS=ssl-cert
11INHERITED="$INHERITED $ECLASS"
12
10# Conditionally depend on OpenSSL: allows inheretence 13# Conditionally depend on OpenSSL: allows inheretence
11# without pulling extra packages if not needed 14# without pulling extra packages if not needed
12DEPEND="ssl? ( dev-libs/openssl )" 15newdepend "ssl? ( dev-libs/openssl )"
13IUSE="ssl"
14 16
15# Initializes variables and generates the needed 17# Initializes variables and generates the needed
16# OpenSSL configuration file and a CA serial file 18# OpenSSL configuration file and a CA serial file
17# 19#
18# Access: private 20# Access: private
19gen_cnf() { 21gen_cnf() {
20 # Location of the config file 22 # Location of the config file
21 SSL_CONF="${T}/${$}ssl.cnf" 23 SSL_CONF="${T}/${$}ssl.cnf"
22 # Location of the CA serial file 24 # Location of the CA serial file
23 SSL_SERIAL="${T}/${$}ca.ser" 25 SSL_SERIAL="${T}/${$}ca.ser"
24 # Location of some random files OpenSSL can use: don't use 26 # Location of some random files OpenSSL can use: don't use
25 # /dev/u?random here -- doesn't work properly on all platforms 27 # /dev/u?random here -- doesn't work properly on all platforms
26 SSL_RANDOM="${T}/environment:${T}/eclass-debug.log:/etc/resolv.conf" 28 SSL_RANDOM="${T}/evironment:${T}/eclass-debug.log:/etc/resolv.conf"
27 29
28 # These can be overridden in the ebuild 30 # These can be overridden in the ebuild
29 SSL_DAYS="${SSL_BITS:-730}" 31 SSL_DAYS="${SSL_BITS:-730}"
30 SSL_BITS="${SSL_BITS:-1024}" 32 SSL_BITS="${SSL_BITS:-1024}"
31 SSL_COUNTRY="${SSL_COUNTRY:-US}" 33 SSL_COUNTRY="${SSL_COUNTRY:-US}"
54 OU = ${SSL_UNIT} 56 OU = ${SSL_UNIT}
55 CN = ${SSL_COMMONNAME} 57 CN = ${SSL_COMMONNAME}
56 emailAddress = ${SSL_EMAIL} 58 emailAddress = ${SSL_EMAIL}
57 EOF 59 EOF
58 eend $? 60 eend $?
59 61
60 return $? 62 return $?
61} 63}
62 64
63# Simple function to determine whether we're creating 65# Simple function to determine whether we're creating
64# a CA (which should only be done once) or final part 66# a CA (which should only be done once) or final part

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20