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.
gentoo-overlay/mail-filter/rmilter/rmilter-1.8.6.ebuild

44 lines
969 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils user
DESCRIPTION="Another sendmail milter for different mail checks"
SRC_URI="https://github.com/vstakhov/rmilter/archive/${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://github.com/vstakhov/rmilter"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+memcached"
RDEPEND="dev-libs/libpcre
dev-libs/openssl:0
mail-filter/libmilter
mail-filter/opendkim
memcached? ( dev-libs/libmemcached )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup rmilter
enewuser rmilter -1 -1 /var/run/rmilter rmilter
}
src_configure() {
local mycmakeargs=(
-DENABLE_MEMCACHED=$(usex memcached ON OFF)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
newinitd "${FILESDIR}/rmilter.initd" rmilter
insinto /etc/rmilter
newins rmilter.conf.sample rmilter.conf.sample
newins rmilter-grey.conf rmilter-grey.conf
}