Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174518 - app-text/crm114 ebuild needs to do more after install
Summary: app-text/crm114 ebuild needs to do more after install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Steev Klimaszewski (RETIRED)
URL: http://triplehelix.org/~joshk/CRM114....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 20:37 UTC by tomas charvat
Modified: 2008-01-23 03:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomas charvat 2007-04-13 20:37:42 UTC
app-text/crm114 20060704a
needs to create spam.css and nonspam.css
it can be done via "cssutil spam.css" and same for nonspam.css
How ever if you do it yourself, you have to press Q after issuing command.

If you are about to use CRM114 with SA (is very likely) you also need to change 1 line in /etc/spamassassin/crm114.cf
to crm114_command crm -u /usr/share/crm114 mailreaver.crm

CRM114 plugin fot SA can be find at http://wiki.apache.org/spamassassin/CustomPlugins


Reproducible: Always




 emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-hardened-r2 x86_64)
=================================================================
System uname: 2.6.20-hardened-r2 x86_64 AMD Opteron(tm) Processor 146
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 13 Apr 2007 02:00:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=opteron -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=opteron -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip acpi amd64 apache2 apic berkdb bitmap-fonts bzip2 clamav cli cracklib crypt ctype dri emul-linux-x86 expat fortran gd gdbm gencertdaily gmp gnutls gpm hardened iconv imap iproute2 isdnlog jbig jpeg jpeg2k kerberos libg++ maildir mailwrapper midi mysql mysqli ncurses nls nptl nptlonly pam pcre perl perlsuid png posix ppds pppd python pyzord qmail readline reflection rrdtool session sockets spamassassin spl ssl tcpd tiff tls tools truetype truetype-fonts type1-fonts unicode utf8 valias xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 tomas charvat 2007-04-14 08:28:21 UTC
proper command for creating of css files are
cssutil -r -b /usr/share/crm114/nonspam.css
cssutil -r -b /usr/share/crm114/spam.css

added also URL link related to installation
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2007-04-14 09:47:05 UTC
Hmm, I am going to have to think about this - I don't actually use crm114 with SA - we use it at work for, other things - but, reading that site, the installation guide show doing it in the users home directory - which, personally, makes more sense to me.  
Comment 3 tomas charvat 2007-04-14 10:02:03 UTC
Yeep, but where to put it on mail relay ?
Thats the question :)

Maybe SA user homedir .... i will also keep playing with this setup and post some results .. if i will have any :D

Comment 4 tomas charvat 2007-04-17 10:32:13 UTC
So here is list of things, that i dano to run CRM114 as SA plugin under gentoo.
USE="mimencode nls normalizemime" emerge crm114
then go to /usr/share/crm114 and run
cssutil -r -b /usr/share/crm114/nonspam.css
cssutil -r -b /usr/share/crm114/spam.css
ln -s /usr/bin/crm114_tre /usr/share/crm114_tre [SA plugin search for this file in share not bin... ]
then edit /usr/share/crm114/mailfilter.cf and customize it... you have to read this file, otherwise its not going to work, there are things to set, like password

Now you are ready to train your CRM114 via mailtrainer.crm 

Download SA plugin at http://wiki.apache.org/spamassassin/CustomPlugins
And here comes the dwarf... Now you have to copy or link your /usr/share/crm114 to the ~/.crm114 of user, whois running spamd. Dont forget to change permition on files after copying them. It should not be needed if you are running spamd as root, but i didnt try that. 

Restart spamd and things should work. I would also suggest to change multiplicator in crm114.cf from -0.05 to -0.01 for some time, until crm114 will lack accurancy

huh .. i guess you never saw more lame howto :)
Comment 5 steveb 2007-05-01 15:14:20 UTC
I am against cssutil to automatically create the *.css files. I use CRM114 and use another tokenizer which requires me to use osbf-util for crating the *.css files. So creating automatically the *.css files with cssutil is a "no go" for me.

The CRM114 web page is full of howtos for various scenarios. Using CRM114 for SA is just one possible way of using CRM114. Please don't confuse your usage of CRM114 with the usage of others. Other people have other needs and crating the *.css files under /usr/share/crm114 is not the best way and definatly not the only way.

Anyway... I think this bug report is wrong. It should not be here in bugs.gentoo.org since it is not a real bug. It is just a handling issue with CRM114 but not a real bug. I think forums.gentoo.org is the better place to talk about CRM114 and not bugs.gentoo.org.
Comment 6 tomas charvat 2007-05-01 17:57:00 UTC
Agree.... just suggesting after ebuild instalation would be enough.
Comment 7 steveb 2007-05-01 21:53:48 UTC
(In reply to comment #6)
> Agree.... just suggesting after ebuild installation would be enough.
> 
Suggesting what? How to implement CRM114 with SA? Or how to implement CRM114 with a MTA? Or how to implement CRM114 with a LDA? etc...

If you emerge CRM114 then you probably know what it is and for what to use it for. And the home page of CRM114 has a nice collection on howto's.

I think anyone who is using CRM114 will go first to the CRM114 homepage and read there and probably overlook what the ebuild prints out at the end of the installation. If the howto is anyway located at the homepage of CRM114 then I personally don't see any real need to print out a reminder. If the location would be somewhere hidden on the net, then why not? But why printing the obvious and being responsible to maintain additional stuff in the ebuild?

Sorry Tomas. This is not an attack. I just feel it is very difficult to keep everyone happy. Let's assume the maintainer prints a hint how to install CRM114 for SA or even integrates CMR114 into SA. The next day a Postfix user will complain here that there is not hint for how to integrate mailreaver/mailtrainer/mailfilter into Postfix. And the other day a sendmail user will complain that there is no hint how to integrate CRM114 into sendmail, and then again someone like me will complain that the currently integrated way for CRM114 to SA is totally wrong and should be done the other way around, etc... Never ending story. Better keep the ebuild small and allow it to do what it should do. The ebuild can not solve all issues with CRM114. The current ebuild installs CRM114 and it is doing this very well.
Comment 8 tomas charvat 2007-05-02 08:00:33 UTC
(In reply to comment #7)

But thats exactly how i ended here. I read crm114 page, spamassassin and after orrible megagoogling i finaly found http://crm114.sourceforge.net/docs/CRM114_Mailfilter_HOWTO.txt
(yeah yeah ... CMR114 is not just for mail filtering, but i would say, that its  primary for mail filtering and there will be many people trying to integrate it with their system.)
CRM114 got new wiki since that time, but HOW-TO is well hidden in "Quick look" instead of documentation.

Well ... i do not insist on anything.. i brought suggestion. If you feel it is irrelevant, its quite ok.

Anyway i will try to post some how-to on forums for those who might be interesting in CRM114+SA on gentoo.
Comment 9 steveb 2007-05-02 21:14:15 UTC
(In reply to comment #8)
> (In reply to comment #7)
> 
> But thats exactly how i ended here. I read crm114 page, spamassassin and after
> orrible megagoogling i finaly found
> http://crm114.sourceforge.net/docs/CRM114_Mailfilter_HOWTO.txt
> (yeah yeah ... CMR114 is not just for mail filtering, but i would say, that its
>  primary for mail filtering and there will be many people trying to integrate
> it with their system.)
> CRM114 got new wiki since that time, but HOW-TO is well hidden in "Quick look"
> instead of documentation.
> 
> Well ... i do not insist on anything.. i brought suggestion. If you feel it is
> irrelevant, its quite ok.
> 
> Anyway i will try to post some how-to on forums for those who might be
> interesting in CRM114+SA on gentoo.
> 
No! This was not my intention! I am not god. I am not the one saying where Gentoo should go and where not. I am like you: just one of the many Gentoo users.

I did not wanted to scare you away. Let me know if I can help you in any way with the documentation.
Comment 10 tomas charvat 2007-05-02 21:42:35 UTC
Im not leaving. i dont feel offended.
You made a god point, that CRM114 is quite "advanced" piece of code, thus people who are about to play with it will try to gather more informations.

I also think, that CRM114 is primarily sort of "antispam" and it will be very interesting for many SA users.
Wham im trying to say is.... i think (i may be wrong) , that most CRM114 users will expect "antispam" services, thus little bit more documentation will save their time.

I always bless Getnoo's How-to guides, because they are very well done.

I will be implementing CRM114 under gentoo on 2 more servers in near feature, so i will try to make How to Draft and submit it.
Lets say, that we made clear what should and what should not to be done by ebuild and you convinced me, that ebuild is quite ok.

So .. i will post my SA+CMR114 guide on Gentoo in near feature. Then we might have something to point on at the end of building CRM114 :)

thanks for your explanations and suggestions.
Comment 11 Steev Klimaszewski (RETIRED) gentoo-dev 2008-01-23 03:24:32 UTC
I am going to close this bug, sitting open doing nothing, and as discussed the changes won't be made.  Thank you for the report and your work on the guide!