[oe] [oe-commits] Roman I Khimov : clamav-0.94.2: remove deprecated options from config file

Tom Rini tom_rini at mentor.com
Tue Mar 30 19:14:46 UTC 2010


On Tue, 2010-03-30 at 17:55 +0000, git version control wrote:
> Module: openembedded.git
> Branch: org.openembedded.dev
> Commit: 1f71e0d0b6f76e74ed848d75f6b50896f2ae160b
> URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1f71e0d0b6f76e74ed848d75f6b50896f2ae160b
> 
> Author: Roman I Khimov <khimov at altell.ru>
> Date:   Mon Mar 29 22:30:23 2010 +0400
> 
> clamav-0.94.2: remove deprecated options from config file
> 
> Signed-off-by: Roman I Khimov <khimov at altell.ru>
> 
> ---
> 
>  recipes/clamav/clamav_0.94.2.bb |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/recipes/clamav/clamav_0.94.2.bb b/recipes/clamav/clamav_0.94.2.bb
> index e85cc50..3ce005f 100644
> --- a/recipes/clamav/clamav_0.94.2.bb
> +++ b/recipes/clamav/clamav_0.94.2.bb
> @@ -2,5 +2,9 @@ require clamav.inc
>  
>  EXTRA_OECONF += "--program-transform-name=''"
>  
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>  
> +do_install_append() {
> +	# Remove deprecated options
> +	sed -ri "/Archive(Block)?Max/d" ${D}/${sysconfdir}/clamd.conf
> +}
> \ No newline at end of file

Maybe we should start making this per version?  I know we're
inconsistent about this stuff a good bit, but it seems like that's the
best way to handle incompatible config files.  I say this since it seems
possible that come April we have the old stuff in the conf file and no
versions that need it.  Now that I've said this in public, someone might
make a note to make sure that doesn't happen, but I think the point is
still valid ;)

-- 
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list