1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils user
8 DESCRIPTION="Another sendmail milter for different mail checks"
9 SRC_URI="https://github.com/vstakhov/rmilter/archive/${PV}.tar.gz -> ${P}.tar.gz"
10 HOMEPAGE="https://github.com/vstakhov/rmilter"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="dkim libressl +memcached"
17 RDEPEND="dev-libs/libpcre
18 !libressl? ( dev-libs/openssl:0= )
19 libressl? ( dev-libs/libressl:0= )
22 dkim? ( mail-filter/opendkim )
23 memcached? ( dev-libs/libmemcached )"
28 enewuser rmilter -1 -1 /var/run/rmilter rmilter
33 -DENABLE_DKIM=$(usex dkim ON OFF)
34 -DENABLE_MEMCACHED=$(usex memcached ON OFF)
36 cmake-utils_src_configure
40 cmake-utils_src_install
41 newinitd "${FILESDIR}/rmilter.initd" rmilter
43 newins rmilter.conf.sample rmilter.conf.sample
44 newins rmilter-grey.conf rmilter-grey.conf