-------- Original-Nachricht --------
> Datum: Sun, 23 Dec 2007 11:12:16 +0100
> Von: Tony Earnshaw <[EMAIL PROTECTED]>
> An: 
> CC: [email protected]
> Betreff: Re: [dspam-users] RPM?

> Steve skrev, on 23-12-2007 10:29:
> 
> [...]
> 
> > Hallo Tony
> 
> Hi Steve :)
> 
Hallo Tony


> >>>> 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.
> 
Well in April was the first creation while I was in working in Stockholm for 
Hewlett Packard. The project there was about outsorcing and transforming a huge 
environment (around 800 servers) to virtual systems. HP had to transform those 
servers from many Linux distros to 1 distro (Red Hat Enterprise Server). So I 
was just in the right mood and mode to write a RPM.


> > 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.
>
The internals are complicated. But I tried to make the outside (the interface 
with the user or package maker) as simple as possible. I think that most users 
anyway will not look into the spec. They just want a working and flexible spec 
file. The internal logic (complicated or not) does not interests them (most of 
the time).


> 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
> 
If you look inside the spec then you will see this:
Source4:        
http://gentoo.osuosl.org/distfiles/dspam-3.8.0-patches-20071212.tar.gz

Searching with Google should result in more mirrors:
http://www.google.com/search?q=dspam-3.8.0-patches-20071212.tar.gz


> 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.
> 
See above.


> 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
> 
Kind Regards

Steve

> -- 
> Tony Earnshaw
> Email: tonni at hetnet dot nl

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Reply via email to