/[gentoo-x86]/mail-filter/libmilter/libmilter-1.0.2.ebuild
Gentoo

Contents of /mail-filter/libmilter/libmilter-1.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 4 23:53:03 2012 UTC (22 months, 2 weeks ago) by zmedico
Branch: MAIN
Changes since 1.4: +2 -2 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-filter/libmilter/libmilter-1.0.2.ebuild,v 1.4 2012/05/31 07:29:22 eras Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib toolchain-funcs
8
9 # This library is part of sendmail, but it does not share the version number with it.
10 # In order to find the right libmilter version number, check SMFI_VERSION definition
11 # that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* defines).
12 # For example, version 1.0.1 has a SMFI_VERSION of 0x01000001.
13 SENDMAIL_VER=8.14.5
14
15 DESCRIPTION="The Sendmail Filter API (Milter)"
16 HOMEPAGE="http://www.sendmail.org/"
17 SRC_URI="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${SENDMAIL_VER}.tar.gz"
18
19 LICENSE="Sendmail"
20 SLOT="0"
21 KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
22 IUSE="ipv6 poll"
23
24 DEPEND="!mail-mta/sendmail
25 !mail-mta/sendmail"
26 RDEPEND="!mail-mta/sendmail"
27
28 S="${WORKDIR}/sendmail-${SENDMAIL_VER}"
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${PN}-build-system.patch
32 epatch "${FILESDIR}"/${PN}-sharedlib.patch
33
34 local CC="$(tc-getCC)"
35 local ENVDEF="-DNETUNIX -DNETINET"
36 use ipv6 && ENVDEF="${ENVDEF} -DNETINET6"
37 use poll && ENVDEF="${ENVDEF} -DSM_CONF_POLL=1"
38
39 sed -e "s:@@CFLAGS@@:${CFLAGS}:" \
40 -e "s:@@LDFLAGS@@:${LDFLAGS}:" \
41 -e "s:@@CC@@:${CC}:" \
42 -e "s:@@ENVDEF@@:${ENVDEF}:" \
43 "${FILESDIR}/gentoo.config.m4" > "${S}/devtools/Site/site.config.m4" \
44 || die "failed to generate site.config.m4"
45 }
46
47 src_compile() {
48 pushd libmilter
49 emake -j1 MILTER_SOVER=${PV} || die "libmilter compilation failed"
50 popd
51 }
52
53 src_install () {
54 local MY_LIBDIR=/usr/$(get_libdir)
55 dodir "${MY_LIBDIR}"
56 emake DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
57 SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
58 LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
59 MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
60 MSPQOWN=root CFOWN=root CFGRP=root \
61 MILTER_SOVER=${PV} \
62 install -C obj.*/libmilter \
63 || die "install failed"
64
65 dodoc libmilter/README
66 dohtml libmilter/docs/*
67 }

  ViewVC Help
Powered by ViewVC 1.1.20