/[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.18 Revision 1.20
1# Copyright 1999-2004 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.18 2010/02/16 14:23:39 pva 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: Max Kalika <max@gentoo.org> 8# Max Kalika <max@gentoo.org>
8# @BLURB: Eclass for SSL certificates 9# @BLURB: Eclass for SSL certificates
9# @DESCRIPTION: 10# @DESCRIPTION:
10# This eclass implements a standard installation procedure for installing 11# This eclass implements a standard installation procedure for installing
11# self-signed SSL certificates. 12# self-signed SSL certificates.
12# @EXAMPLE: 13# @EXAMPLE:
13# "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}
14 15
15# Conditionally depend on OpenSSL: allows inheretence 16# @ECLASS-VARIABLE: SSL_CERT_MANDATORY
16# 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
17DEPEND="ssl? ( dev-libs/openssl )" 32 DEPEND="dev-libs/openssl"
18IUSE="ssl" 33fi
19 34
20# @FUNCTION: gen_cnf 35# @FUNCTION: gen_cnf
21# @USAGE: 36# @USAGE:
22# @DESCRIPTION: 37# @DESCRIPTION:
23# Initializes variables and generates the needed 38# Initializes variables and generates the needed

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

  ViewVC Help
Powered by ViewVC 1.1.20