[Mimedefang] Building mimedefang via the rpm spec file
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Mon Jan 19 02:42:27 EST 2004
Am Mo, den 19.01.2004 schrieb Alexander Dalloz um 01:31:
> Am Sa, den 17.01.2004 schrieb David F. Skoll um 21:09:
> > On Fri, 16 Jan 2004, Stephen L Johnson wrote:
> >
> > > I see that when building MD via the rpm spec file, the virus scanner
> > > checks are disable in ./configure. Is there a way of rebuilding the
> > > mimedefang.pl program to enable various feature that are found?
> >
> > In your filter, set the approriate $Feature{...} variables by hand.
> >
> > Regards,
> >
> > David.
>
> David,
>
> probably you have a good reason for disabling the check for anti-virus
> applications by default in the spec file. But maybe it would be a
> possibility to use the mechanisms of rpm and include the configure
> option '--disable-anti-virus' as
>
> %{?_without_antivirus:--disable-anti-virus}
>
> Ok, it inverses the selection default but it is easy to run the rpmbuild
> process as
>
> rpmbuild -ta --without antivirus mimedefang-2.39.tar.gz
>
> Making '--disable-anti-virus' the default choice and enabling the
> checking for anti-virus applications by using --with antivirus would be
> a little bit more difficult.
Hm, what did I say - it would be difficult? No :) The spec file area for
%prep could look like:
./configure --prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=/etc\
--spooldir=%{dir_spool} \
--with-quarantinedir=%{dir_quarantine} \
--with-user=%{user} \
%{!?_with_antivirus:--disable-anti-virus}
This way only a call like
"rpmbuild -ta --with antivirus mimedefang-2.39.tar.gz
will activate the search for anti-virus applications during configure
run, while without giving an additional parameter this search is
omitted.
> Regards
>
> Alexander
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20040119/e6487c09/attachment-0003.sig>
More information about the MIMEDefang
mailing list