/[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.16 Revision 1.17
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.16 2008/04/14 06:37:44 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.17 2009/09/16 20:11:17 mrness Exp $
4# 4#
5# @ECLASS: ssl-cert.eclass 5# @ECLASS: ssl-cert.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Author: Max Kalika <max@gentoo.org> 7# Author: Max Kalika <max@gentoo.org>
8# @BLURB: Eclass for SSL certificates 8# @BLURB: Eclass for SSL certificates
233 install -m0400 "${base}.pem" "${ROOT}${cert}.pem" 233 install -m0400 "${base}.pem" "${ROOT}${cert}.pem"
234 count=$((${count}+1)) 234 count=$((${count}+1))
235 done 235 done
236 236
237 # Resulting status 237 # Resulting status
238 if [ ! ${count} ] ; then 238 if [ ${count} = 0 ] ; then
239 eerror "No certificates were generated" 239 eerror "No certificates were generated"
240 return 1 240 return 1
241 elif [ ${count} != ${#} ] ; then 241 elif [ ${count} != ${#} ] ; then
242 ewarn "Some requested certificates were not generated" 242 ewarn "Some requested certificates were not generated"
243 fi 243 fi

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20