diff options
Diffstat (limited to 'mail-filter/bmf')
-rw-r--r-- | mail-filter/bmf/Manifest | 3 | ||||
-rw-r--r-- | mail-filter/bmf/bmf-0.9.4-r3.ebuild | 56 | ||||
-rw-r--r-- | mail-filter/bmf/files/bmf-0.9.4_QA.patch | 4 |
3 files changed, 60 insertions, 3 deletions
diff --git a/mail-filter/bmf/Manifest b/mail-filter/bmf/Manifest index c319e3d97510..4124c870cd6a 100644 --- a/mail-filter/bmf/Manifest +++ b/mail-filter/bmf/Manifest @@ -1,4 +1,5 @@ -AUX bmf-0.9.4_QA.patch 534 BLAKE2B 44596442a98e37685d99f595f04b8540c6ab7c7383676f4669a3cd27098198fc1f781226dbeac87ebf3f2d86681bd66a406cbfbb3136723c31788fc476271ad8 SHA512 553607088051618cc88d0ccd7e74e644cfc6cc5a7e53f7e622ed1f2259cc49610c27c65613981f13ceb6173093e62c7e20326f4c2fb718bb6f3b2b2de011c2e9 +AUX bmf-0.9.4_QA.patch 538 BLAKE2B fae81e486943274c96cf9efc1fa6782e7adb74d201a9dc81689edeaa27de6cd04ac6fe8de2f360b5b62cade50de289c265f75addd8dcd08a8b2ecb89db404674 SHA512 f5f2c54ddf3db6156dbe8b2fa05a03a8a31cd530a1f711d5cdb2229389ebfc95fa97d49ef7ede45f87178b1c966180ce915612d4d2ad7a6b0b21d77c9524fabd DIST bmf-0.9.4.tar.gz 36740 BLAKE2B f3bb262006e4e3e9db98f7df9b7160d8e3feeb0c3aa2b0564a65d5a302fb7b8894fd55d947828989dac488c605fcc153a9f18f840f63718cd12f374c0eb4fe2e SHA512 efbc7edd08ac9abd5a56fa8a00d0011363582e50dda309526b2114906f7d9a9795539df62d4db99457903a2277980bde02d24c97c2ec087d2af84df691cdb9f4 EBUILD bmf-0.9.4-r2.ebuild 1186 BLAKE2B c8df42663e416bdca376d8cbc995c5b00046ce41df95b7eda9a5106a4a7c49d474fd17fc551821342be47b9aff4965c7e893b1c025a20ec57d975c1a8011da12 SHA512 cae3de548b2f5103152724350ea208f94585fb1133484a474756059668d481870b67be1c8b2acddc84b6f534e81d97e01636a762ed9213703c5b7b9d0a604f67 +EBUILD bmf-0.9.4-r3.ebuild 1275 BLAKE2B 00cc43451d110d022c7215f762069033cf47fe609c8828b91b2787a820aa5381622b3986ce271c544053c62dfa3d40de807cf80a9ee238062aefb0515ccf53b7 SHA512 a4ad397aa7add6e4f0b5ad9b5cc6fb85c36a95926baaef91a28a57d5145358a75cd1bfab9187c6678ac8d47a9eb36c5b0a178ffe82b75916b412a9d26bcf9437 MISC metadata.xml 317 BLAKE2B a10b8934549528c9d7b05b0f1bd433d57cb4d8d3ec674734a808c3b6aa27660343284fc52855664e92153c362dfff76a4824ac95ad360ebaea2404bdd9b4ec25 SHA512 a278d1d66f598fc794827164dcf307d678f63a4dee8ac4d3b0665182579bef956dae638c955972d781b75d8ea3de62956ca1bd82b9dc18a1f298d90d92a36c3e diff --git a/mail-filter/bmf/bmf-0.9.4-r3.ebuild b/mail-filter/bmf/bmf-0.9.4-r3.ebuild new file mode 100644 index 000000000000..84ca042d34fe --- /dev/null +++ b/mail-filter/bmf/bmf-0.9.4-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +IUSE="mysql berkdb" + +DESCRIPTION="A fast and small Bayesian spam filter" +HOMEPAGE="http://bmf.sourceforge.net/" +SRC_URI="mirror://sourceforge/bmf/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="mysql? ( dev-db/mysql-connector-c:0= ) + berkdb? ( >=sys-libs/db-3.2.9 )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}_QA.patch" ) +DOCS=( README AUTHORS ChangeLog ) + +src_prepare() { + # respect CFLAGS + sed -i -e '/D_LINUX/s/CFLAGS="$CCDBG/CFLAGS+=" $CCDBG/' \ + "${S}/configure" || die + + # include mysql headers + sed -i -e '/HAVE_MYSQL/s/HAVE_MYSQL/HAVE_MYSQL `mysql_config --include`/' \ + "${S}/configure" || die + + # We don't need to be root to run install + sed -i -e 's/install: checkroot bmf/install: bmf/' Makefile.in || die + + default +} + +src_configure() { + # this is not an autotools script + ./configure \ + $(use_with mysql) \ + $(use_with berkdb libdb) || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +pkg_postinst() { + elog + elog "Important: Remember to train bmf before you start using it." + elog "See the README file for further instructions on training and using bmf" + elog "with procmail." + elog +} diff --git a/mail-filter/bmf/files/bmf-0.9.4_QA.patch b/mail-filter/bmf/files/bmf-0.9.4_QA.patch index f911e05d58f9..f9728fbba984 100644 --- a/mail-filter/bmf/files/bmf-0.9.4_QA.patch +++ b/mail-filter/bmf/files/bmf-0.9.4_QA.patch @@ -1,5 +1,5 @@ ---- dbh.c 2002-10-14 07:09:51.000000000 +0000 -+++ dbh.c 2012-02-24 10:52:07.000000000 +0000 +--- a/dbh.c 2002-10-14 07:09:51.000000000 +0000 ++++ b/dbh.c 2012-02-24 10:52:07.000000000 +0000 @@ -60,12 +60,16 @@ case db_text: pdb = (dbh_t*)dbtext_db_open( dbhost, dbname, dbuser, dbpass ); |