Steve skrev, on 23-12-2007 10:29:

[...]

Hallo Tony

Hi Steve :)

Built as an rpm on a good ASUS machine under patched Red Hat RHAS4
Do you have any pointers for the RPM? I use Fedora Core 4
Yes, it's mine.

SRPM sentt off list. Should build on most FCs.

This year I had one customer requesting a RPM for DSPAM and I had quickly to do 
one for him while I was away on a business trip. Luckily I have saved it on my 
server and the other day when you mentioned that you had a RPM I remembered, 
that I had done the spec file for DSPAM. Today I took the time to search for it 
and found it :)
I don't know how well it is? I am not using it. As you already know I use 
Gentoo. Anyway... today I modified the spec file to use the latest Gentoo patch 
set and added a comment in the spec file to reflect the change.

Well, I see you began in April and finalized Dec 27 ultimo.

Most of the helper stuff (except the init.d script) are +/- the one I have 
written for Gentoo. I wrote the stuff long time ago for me and for some 
customers but then switched to use stored procedures on MySQL to purge the 
tokens (except the hapaxial tokens which get cleaned once monthly with another 
job).

The spec file is written in such a way that you can specify on the command line 
what storage drivers you would like to compile and some other stuff (I tried to 
follow Gentoo's USE flags). Currently I have the following switches:
use "rpmbuild --with bnr_debug" or "rpm --define '_with_bnr_debug 1'" (for RPM 
3.x)
use "rpmbuild --with clamav" or "rpm --define '_with_clamav 1'" (for RPM 3.x)
use "rpmbuild --with daemon" or "rpm --define '_with_daemon 1'" (for RPM 3.x)
use "rpmbuild --with debug" or "rpm --define '_with_debug 1'" (for RPM 3.x)
use "rpmbuild --with large_domain" or "rpm --define '_with_large_domain 1'" 
(for RPM 3.x)
use "rpmbuild --with ldap" or "rpm --define '_with_ldap 1'" (for RPM 3.x)
use "rpmbuild --with mysql" or "rpm --define '_with_mysql 1'" (for RPM 3.x)
use "rpmbuild --with postgres" or "rpm --define '_with_postgres 1'" (for RPM 
3.x)
use "rpmbuild --with sqlite" or "rpm --define '_with_sqlite 1'" (for RPM 3.x)
use "rpmbuild --with sqlite3" or "rpm --define '_with_sqlite3 1'" (for RPM 3.x)
use "rpmbuild --with syslog" or "rpm --define '_with_syslog 1'" (for RPM 3.x)
use "rpmbuild --with user_homedirs" or "rpm --define '_with_user_homedirs 1'" 
(for RPM 3.x)
use "rpmbuild --with verbose_debug" or "rpm --define '_with_verbose_debug 1'" 
(for RPM 3.x)
use "rpmbuild --with virtual_users" or "rpm --define '_with_virtual_users 1'" 
(for RPM 3.x)

If you would like to build for i686 and with MySQL, SQLite3, PostgreSQL, 
ClamAV, Syslog, large scale and virtual users then you would issue this command 
on a RPM 4.x system:
rpmbuild --with mysql --with postgres --with sqlite3 --with clamav --with 
daemon --with syslog --with large-domain --with virtual_users --target=i686 -ba 
dspam-3.8.0.spec

The spec would then build the following on a RH 5.1:
/usr/src/redhat/SRPMS/dspam-3.8.0-1.0.src.rpm
/usr/src/redhat/RPMS/i686/dspam-3.8.0-1.0.i686.rpm
/usr/src/redhat/RPMS/i686/dspam-mysql_drv-3.8.0-1.0.i686.rpm
/usr/src/redhat/RPMS/i686/dspam-pgsql_drv-3.8.0-1.0.i686.rpm
/usr/src/redhat/RPMS/i686/dspam-sqlite3_drv-3.8.0-1.0.i686.rpm
/usr/src/redhat/RPMS/i686/dspam-devel-3.8.0-1.0.i686.rpm
/usr/src/redhat/RPMS/i686/dspam-web-3.8.0-1.0.i686.rpm

I splitted the storage drivers into separate RPMs. The hash driver is always 
included but the other storage drivers requiring additional libraries are in 
separate RPMs.

Let me know what you think about it? Can you compile with the spec file a RPM 
on your FC6 system?

My first impression is that it's very professional, but also incredibly complicated. Looking for patches, the build of course couldn't find any:

/bin/tar: /home/tonni/rpm/SOURCES/dspam-3.8.0-patches-20071212.tar.gz: Cannot open: No such file or directory

Could you please give me the address of an FTP or HTML server where I could get an srpm, or failing that put one onto ftp://ipd50aa34e.speed.planet.nl/../uploads? This is a proftpd server where you may upload, but neither you nor anyone see the files you've uploaded, nor retrieve them.

I'm especially interested in this, since in spite of what I recently reported about CVS now not sigseving any longer, it still is. I can't honestly see what non-descriptive Gentoo patches can possibly do for FC6/RHELL5 where dspam 3.8.0 is running well and stably, without memory leaks or anything, for weeks at a time.

Best,

--Tonni

--
Tony Earnshaw
Email: tonni at hetnet dot nl

Reply via email to