diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/rmilter/rmilter-1.9.2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/rmilter/rmilter-1.9.2.ebuild')
-rw-r--r-- | mail-filter/rmilter/rmilter-1.9.2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mail-filter/rmilter/rmilter-1.9.2.ebuild b/mail-filter/rmilter/rmilter-1.9.2.ebuild new file mode 100644 index 000000000000..b0a6942c1809 --- /dev/null +++ b/mail-filter/rmilter/rmilter-1.9.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="dkim libressl +memcached" + +RDEPEND="dev-libs/libpcre + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + mail-filter/libmilter + >=dev-libs/glib-2.28 + dkim? ( 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_DKIM=$(usex dkim ON OFF) + -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 +} |