/[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.19 Revision 1.20
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
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.19 2011/08/22 04:46:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.20 2013/01/03 19:19:55 alonbl Exp $
4 4
5# @ECLASS: ssl-cert.eclass 5# @ECLASS: ssl-cert.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# @AUTHOR: 7# @AUTHOR:
8# Max Kalika <max@gentoo.org> 8# Max Kalika <max@gentoo.org>
11# This eclass implements a standard installation procedure for installing 11# This eclass implements a standard installation procedure for installing
12# self-signed SSL certificates. 12# self-signed SSL certificates.
13# @EXAMPLE: 13# @EXAMPLE:
14# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} 14# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
15 15
16# Conditionally depend on OpenSSL: allows inheretence 16# @ECLASS-VARIABLE: SSL_CERT_MANDATORY
17# without pulling extra packages if not needed 17# @DESCRIPTION:
18# Set to non zero if ssl-cert is mandatory for ebuild.
19#
20SSL_CERT_MANDATORY="${SSL_CERT_MANDATORY:-0}"
21
22# @ECLASS-VARIABLE: SSL_CERT_USE
23# @DESCRIPTION:
24# Use flag to append dependency to.
25#
26SSL_CERT_USE="${SSL_CERT_USE:-ssl}"
27
28if [[ "${SSL_CERT_MANDATORY}" = 0 ]]; then
29 DEPEND="${SSL_CERT_USE}? ( dev-libs/openssl )"
30 IUSE="${SSL_CERT_USE}"
31else
18DEPEND="ssl? ( dev-libs/openssl )" 32 DEPEND="dev-libs/openssl"
19IUSE="ssl" 33fi
20 34
21# @FUNCTION: gen_cnf 35# @FUNCTION: gen_cnf
22# @USAGE: 36# @USAGE:
23# @DESCRIPTION: 37# @DESCRIPTION:
24# Initializes variables and generates the needed 38# Initializes variables and generates the needed

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20