diff options
Diffstat (limited to 'mail-filter/sid-milter/sid-milter-1.0.0-r6.ebuild')
-rw-r--r-- | mail-filter/sid-milter/sid-milter-1.0.0-r6.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/mail-filter/sid-milter/sid-milter-1.0.0-r6.ebuild b/mail-filter/sid-milter/sid-milter-1.0.0-r6.ebuild new file mode 100644 index 000000000000..7ff2f2f4591f --- /dev/null +++ b/mail-filter/sid-milter/sid-milter-1.0.0-r6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs user + +DESCRIPTION="A milter-based application to provide Sender-ID verification service" +HOMEPAGE="http://sourceforge.net/projects/sid-milter/" +SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz" + +LICENSE="Sendmail-Open-Source" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="ipv6" + +DEPEND="dev-libs/openssl + >=sys-libs/db-3.2 + || ( mail-filter/libmilter mail-mta/sendmail )" +RDEPEND="${DEPEND} + sys-apps/openrc" + +pkg_setup() { + enewgroup milter + # mail-milter/spamass-milter creates milter user with this home directory + # For consistency reasons, milter user must be created here with this home directory + # even though this package doesn't need a home directory for this user (#280571) + enewuser milter -1 -1 /var/lib/milter milter +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-nopra_on_spf1.patch + epatch "${FILESDIR}"/${P}-as-needed.patch + + local CC="$(tc-getCC)" + local ENVDEF="" + use ipv6 && ENVDEF="${ENVDEF} -DNETINET6" + sed -e "s:@@CC@@:${CC}:" \ + -e "s:@@CFLAGS@@:${CFLAGS}:" \ + -e "s:@@LDFLAGS@@:${LDFLAGS}:" \ + -e "s:@@ENVDEF@@:${ENVDEF}:" \ + "${FILESDIR}/gentoo-config.m4" > "${S}/devtools/Site/site.config.m4" \ + || die "failed to generate site.config.m4" +} + +src_compile() { + emake -j1 +} + +src_install() { + dodir /usr/bin + emake -j1 DESTDIR="${D}" SUBDIRS=sid-filter \ + SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ + install + + newinitd "${FILESDIR}/sid-filter.init-r1" sid-filter + newconfd "${FILESDIR}/sid-filter.conf" sid-filter + + # man build is broken; do man page installation by hand + doman */*.8 + + # some people like docs + dodoc RELEASE_NOTES *.txt sid-filter/README +} |