You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.2 KiB
92 lines
2.2 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opensmtpd-extras/opensmtpd-extras-5.4.5.201506020835.ebuild,v 1.1 2015/06/02 12:00:05 zx2c4 Exp $
|
||
9 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
9 years ago
|
inherit versionator eutils flag-o-matic autotools
|
||
9 years ago
|
|
||
|
DESCRIPTION="Extra tables, filters, and various other addons for OpenSMTPD"
|
||
|
HOMEPAGE="https://github.com/OpenSMTPD/OpenSMTPD-extras"
|
||
9 years ago
|
SRC_URI="https://www.opensmtpd.org/archives/${PN}-$(get_version_component_range 4-).tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
MY_COMPONENTS="
|
||
9 years ago
|
filter-clamav
|
||
|
filter-dkim-signer
|
||
|
filter-dnsbl
|
||
|
filter-lua
|
||
|
filter-monkey
|
||
|
filter-pause
|
||
|
filter-perl
|
||
|
filter-python
|
||
|
filter-regex
|
||
|
filter-spamassassin
|
||
|
filter-stub
|
||
|
filter-trace
|
||
|
filter-void
|
||
9 years ago
|
|
||
9 years ago
|
queue-null
|
||
|
queue-python
|
||
|
queue-ram
|
||
|
queue-stub
|
||
9 years ago
|
|
||
9 years ago
|
table-ldap
|
||
|
table-mysql
|
||
|
table-postgres
|
||
|
table-redis
|
||
|
table-socketmap
|
||
|
table-passwd
|
||
|
table-python
|
||
|
table-sqlite
|
||
|
table-stub
|
||
9 years ago
|
|
||
9 years ago
|
scheduler-ram
|
||
|
scheduler-stub
|
||
|
scheduler-python
|
||
|
"
|
||
9 years ago
|
IUSE="${MY_COMPONENTS} luajit"
|
||
9 years ago
|
|
||
|
# Deps:
|
||
|
# mysql needs -lmysqlclient
|
||
|
# sqlite needs -lsqlite3
|
||
|
# redis needs -lhiredis
|
||
|
# postgres requires -lpq
|
||
|
# ldap uses internal library and requires no deps
|
||
|
# spamassassin uses internal library and requires no deps
|
||
|
# clamav uses internal library and requires no deps
|
||
|
# dnsbl needs -lasr
|
||
|
# python requires python, currently pegged at 2.7
|
||
9 years ago
|
# lua requires any lua version
|
||
9 years ago
|
|
||
|
DEPEND="mail-mta/opensmtpd dev-libs/libevent dev-libs/openssl
|
||
|
filter-python? ( dev-lang/python:2.7 )
|
||
|
filter-perl? ( dev-lang/perl )
|
||
9 years ago
|
filter-lua? ( luajit? ( dev-lang/luajit ) !luajit? ( dev-lang/lua ) )
|
||
9 years ago
|
filter-dnsbl? ( net-libs/libasr )
|
||
|
table-sqlite? ( dev-db/sqlite:3 )
|
||
|
table-mysql? ( virtual/mysql )
|
||
|
table-postgres? ( dev-db/postgresql )
|
||
|
table-redis? ( dev-libs/hiredis )
|
||
|
table-python? ( dev-lang/python:2.7 )
|
||
|
scheduler-python? ( dev-lang/python:2.7 )
|
||
|
queue-python? ( dev-lang/python:2.7 )
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S=${WORKDIR}/${PN}-$(get_version_component_range 4-)
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
|
eautoreconf
|
||
|
}
|
||
9 years ago
|
src_configure() {
|
||
9 years ago
|
econf \
|
||
9 years ago
|
--with-privsep-user=smtpd \
|
||
|
--with-privsep-path=/var/empty \
|
||
|
--sysconfdir=/etc/opensmtpd \
|
||
9 years ago
|
--with-lua-type=$(use luajit && echo luajit || echo lua) \
|
||
|
$(for use in $MY_COMPONENTS; do use_with $use; done)
|
||
9 years ago
|
}
|