Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19192 - spamprobe (new ebuild)
Summary: spamprobe (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-04-12 05:19 UTC by zhcnmccmzhdvfevooo
Modified: 2004-09-14 07:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
spamprobe ebuild (spamprobe.tar.gz,1.10 KB, application/x-gzip)
2003-04-12 05:20 UTC, zhcnmccmzhdvfevooo
Details
Updated ebuild and a patch to configure.in to allow db4 to work in the 0.9h version. (spamprobe-0.9h.tgz,14.14 KB, application/x-gzip )
2004-02-22 17:09 UTC, Matthew P. Cummings
Details
actual ebuild (spamprobe-0.9h.ebuild,787 bytes, application/octet-stream)
2004-09-04 03:42 UTC, zhcnmccmzhdvfevooo
Details
modified (only a bit) patch from Matthew P. Cummings (spamprobe-0.9h-db4.patch,2.30 KB, patch)
2004-09-04 03:44 UTC, zhcnmccmzhdvfevooo
Details | Diff
Updated Patch (spamprobe-0.9h-db4.patch,2.62 KB, patch)
2004-09-07 11:22 UTC, zhcnmccmzhdvfevooo
Details | Diff
Updated Ebuild (spamprobe-0.9h.ebuild,817 bytes, application/octet-stream)
2004-09-08 08:05 UTC, zhcnmccmzhdvfevooo
Details
Updated Patch (again) (spamprobe-0.9h-db4.patch,26.14 KB, patch)
2004-09-08 08:08 UTC, zhcnmccmzhdvfevooo
Details | Diff
newest ebuild (spamprobe-0.9h.ebuild,801 bytes, application/octet-stream)
2004-09-14 06:29 UTC, zhcnmccmzhdvfevooo
Details
newest patch (spamprobe-0.9h-db4.v5.patch,26.22 KB, patch)
2004-09-14 06:29 UTC, zhcnmccmzhdvfevooo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zhcnmccmzhdvfevooo 2003-04-12 05:19:19 UTC
Fast, intelligent, automatic spam detector using Paul Graham style Bayesian 
analysis of word counts in spam and non-spam emails.

PS. I hope this ebuild is complete and correctly, because this is my first one..
.
Comment 1 zhcnmccmzhdvfevooo 2003-04-12 05:20:25 UTC
Created attachment 10542 [details]
spamprobe ebuild
Comment 2 Matthew P. Cummings 2004-02-22 17:09:09 UTC
Created attachment 26133 [details]
Updated ebuild and a patch to configure.in to allow db4 to work in the 0.9h version.

I haven't tested this ebuild extensively, it's a modifed version of the one
posted earler, but it should compile with db4 now.  Others who know more about
autoconf can check out how I did the testing for db4 and improve on it.
Comment 3 Davin Boling 2004-04-12 13:49:39 UTC
Any progress on getting this into the stable tree?
Comment 4 zhcnmccmzhdvfevooo 2004-05-17 13:04:12 UTC
no reaction from an real gentoo developer over a year....
not interested to get this into portage? its realy a good program and Matthew P. Cummings makes a real good update to the ebuild to make it db4 compatible
Comment 5 Frédéric Jolliton 2004-07-19 08:22:05 UTC
Yes, please add this ebuild in stable tree.

I use SpamProbe on several email servers, and an "official" ebuild would be very interesting.

The ebuild work correctly with db 3.2 (not tested with 4.0, nor 4.1.)
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-09-02 13:09:21 UTC
Could you please attach each file separately? I'll have a look at this, it looks interesting.

Sorry for late response by the way.
Comment 7 zhcnmccmzhdvfevooo 2004-09-04 03:41:50 UTC
Here are coming my actual ebuild and the modified (only a bit) patch from Matthew P. Cummings.
Comment 8 zhcnmccmzhdvfevooo 2004-09-04 03:42:52 UTC
Created attachment 38889 [details]
actual ebuild
Comment 9 zhcnmccmzhdvfevooo 2004-09-04 03:44:11 UTC
Created attachment 38890 [details, diff]
modified (only a bit) patch from Matthew P. Cummings
Comment 10 Andrej Kacian (RETIRED) gentoo-dev 2004-09-06 14:31:59 UTC
Hm, I get this output during final linking, no matter if the patch gets applied or not:

g++  -march=pentium4 -Os -pipe -fomit-frame-pointer -funroll-loops -falign-functions=4   -o spamprobe  spamprobe.o LockFile.o File.o FrequencyDB.o FrequencyDBImpl_bdb.o FrequencyDBImpl_dbm.o FrequencyDBImpl_cache.o FrequencyDBImpl_dual.o Message.o MessageFactory.o SpamFilter.o MimeHeader.o MimeLineReader.o MimeMessageReader.o Tokenizer.o util.o RegularExpression.o md5.o LockFD.o FrequencyDBImpl_hash.o FrequencyDBImpl_split.o hash.o WordArray.o MD5Digester.o FrequencyDBImpl_pbl.o  -ldb-4.1
FrequencyDBImpl_bdb.o(.text+0x275): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_create_4002'
FrequencyDBImpl_bdb.o(.text+0x2b6): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_strerror_4002'
FrequencyDBImpl_bdb.o(.text+0x3c1): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_strerror_4002'
FrequencyDBImpl_bdb.o(.text+0x4f5): In function `FrequencyDBImpl_bdb::closeCursor()':
: undefined reference to `db_strerror_4002'
FrequencyDBImpl_bdb.o(.text+0x5be): In function `FrequencyDBImpl_bdb::closeDatabase()':
: undefined reference to `db_strerror_4002'
FrequencyDBImpl_bdb.o(.text+0x66e): In function `FrequencyDBImpl_bdb::closeDatabase()':
: undefined reference to `db_strerror_4002'
FrequencyDBImpl_bdb.o(.text+0x79c): more undefined references to `db_strerror_4002' follow
collect2: ld returned 1 exit status
make: *** [spamprobe] Error 1

My sys-libs/db is 4.2.52_p2
Comment 11 zhcnmccmzhdvfevooo 2004-09-07 11:22:47 UTC
Created attachment 39137 [details, diff]
Updated Patch

Should now work with db-4.2.
But I only tested it with db-4.1 and db-4.2. Can anyone test it for the other?
Comment 12 Andrej Kacian (RETIRED) gentoo-dev 2004-09-07 14:53:45 UTC
Again, linking error when using db-4.0:

g++  -march=pentium4 -Os -pipe -fomit-frame-pointer -funroll-loops -falign-functions=4   -o spamprobe  spamprobe.o LockFile.o File.o FrequencyDB.o FrequencyDBImpl_bdb.o FrequencyDBImpl_dbm.o FrequencyDBImpl_cache.o FrequencyDBImpl_dual.o Message.o MessageFactory.o SpamFilter.o MimeHeader.o MimeLineReader.o MimeMessageReader.o Tokenizer.o util.o RegularExpression.o md5.o LockFD.o FrequencyDBImpl_hash.o FrequencyDBImpl_split.o hash.o WordArray.o MD5Digester.o FrequencyDBImpl_pbl.o  -ldb-3
FrequencyDBImpl_bdb.o(.text+0x275): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_create_4000'
FrequencyDBImpl_bdb.o(.text+0x2b6): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_strerror_4000'
FrequencyDBImpl_bdb.o(.text+0x3bf): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)':
: undefined reference to `db_strerror_4000'
FrequencyDBImpl_bdb.o(.text+0x4f5): In function `FrequencyDBImpl_bdb::closeCursor()':
: undefined reference to `db_strerror_4000'
FrequencyDBImpl_bdb.o(.text+0x5be): In function `FrequencyDBImpl_bdb::closeDatabase()':
: undefined reference to `db_strerror_4000'
FrequencyDBImpl_bdb.o(.text+0x66e): In function `FrequencyDBImpl_bdb::closeDatabase()':
: undefined reference to `db_strerror_4000'
FrequencyDBImpl_bdb.o(.text+0x79c): more undefined references to `db_strerror_4000' follow
collect2: ld returned 1 exit status
make: *** [spamprobe] Error 1
Comment 13 Andrej Kacian (RETIRED) gentoo-dev 2004-09-07 14:54:53 UTC
Actually, it tries to use db-3.2, as it doesn't even look for db-4.0 (according to configure output).
Comment 14 zhcnmccmzhdvfevooo 2004-09-08 08:05:40 UTC
Created attachment 39203 [details]
Updated Ebuild

The new ebuild is required for the new patch i wrote
Comment 15 zhcnmccmzhdvfevooo 2004-09-08 08:08:27 UTC
Created attachment 39204 [details, diff]
Updated Patch (again)

Completly new patch from me, which is now using some makros from ac-archive, to
test installed db version.
I tested it now lokaly with this db versions:
sys-libs/db-4.2.52_p2
sys-libs/db-4.1.25_p1-r3
sys-libs/db-4.0.14-r3
sys-libs/db-3.2.9-r10

I hope it works also on other Systems well.
Comment 16 Andrej Kacian (RETIRED) gentoo-dev 2004-09-08 14:28:35 UTC
This is getting more and more fun:

# emerge spamprobe
Calculating dependencies ...done!
>>> emerge (1 of 1) mail-filter/spamprobe-0.9h to /
>>> md5 src_uri ;-) spamprobe-0.9h.tar.gz
>>> Unpacking source...
>>> Unpacking spamprobe-0.9h.tar.gz to /var/tmp/portage/spamprobe-0.9h/work
>>> Source unpacked.
>>> Unpacking spamprobe-0.9h.tar.gz to /var/tmp/portage/spamprobe-0.9h/work/spamprobe-0.9h
 * Applying spamprobe-0.9h-db4.patch...                                   [ ok ]
configure.in:124: warning: AC_ARG_PROGRAM invoked multiple times
configure.in:8: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:9: error: possibly undefined macro: AC_MSG_ERROR
configure.in:46: error: possibly undefined macro: AC_TRY_LINK_FUNC

The above happens when I use the patch from your latest attachment (attachment 39204 [details, diff]). I'm using autoconf 2.59 for this (when using 2.13, it bails out with "FATAL ERROR: Autoconf version 2.52 or higher is required for this script")
Comment 17 zhcnmccmzhdvfevooo 2004-09-14 06:29:29 UTC
Created attachment 39571 [details]
newest ebuild
Comment 18 zhcnmccmzhdvfevooo 2004-09-14 06:29:58 UTC
Created attachment 39572 [details, diff]
newest patch
Comment 19 Andrej Kacian (RETIRED) gentoo-dev 2004-09-14 07:24:12 UTC
As problems have been resolved by private email and ebuild is now fully functional, I have committed spamprobe to CVS. Should hit your local mirror in few hours. Thanks a lot for work on the patch, Alexander!

Btw, I've included spamprobe into my spamfighting toolchain, we'll see how well it performs over time. :)