/[gentoo-x86]/eclass/qmail.eclass
Gentoo

Diff of /eclass/qmail.eclass

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

Revision 1.5 Revision 1.6
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/qmail.eclass,v 1.5 2011/11/24 00:04:13 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.6 2012/01/08 03:38:03 vapier Exp $
4 4
5# @ECLASS: qmail.eclass 5# @ECLASS: qmail.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# qmail-bugs@gentoo.org 7# qmail-bugs@gentoo.org
8# @BLURB: common qmail functions 8# @BLURB: common qmail functions
97# The following commands patch the conf-{cc,ld} files to use the user's 97# The following commands patch the conf-{cc,ld} files to use the user's
98# specified CFLAGS and LDFLAGS. These rather complex commands are needed 98# specified CFLAGS and LDFLAGS. These rather complex commands are needed
99# because a user supplied patch might apply changes to these files, too. 99# because a user supplied patch might apply changes to these files, too.
100# See bug #165981. 100# See bug #165981.
101qmail_set_cc() { 101qmail_set_cc() {
102 cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #") 102 local cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #")
103 ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #") 103 local ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #")
104 104
105 echo "${cc} ${CFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.' 105 echo "${cc} ${CFLAGS} ${CPPFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.'
106 echo "${ld} ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.' 106 echo "${ld} ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.'
107} 107}
108 108
109# @FUNCTION: qmail_create_groups 109# @FUNCTION: qmail_create_groups
110# @DESCRIPTION: 110# @DESCRIPTION:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20