Hello,
Well, I went through this problem :
1st get the dapper source of clamav (in /usr/local/src for me), build-deps and build-essential
2nd get the debian package to get the init.d files that will be compliant with the breezy
Code:
$ cd /usr/local/src ; mkdir debian ; cd debian
$ mkdir clamd ; cd clamd; wget http://ftp2.de.debian.org/debian-volatile/pool/volatile/main/c/clamav/clamav-daemon_0.88-0volatile1_i386.deb
$ cd ..; mkdir freshclam; cd freshclam ; wget http://ftp2.de.debian.org/debian-volatile/pool/volatile/main/c/clamav/clamav-freshclam_0.88-0volatile1_i386.deb
3rd extract the packages without installing them :
Example for freshclam
Code:
$ cd freshclam
$ ar -x clamav-freshclam_0.88-0volatile1_i386.deb
$ tar xvzf data.tar.gz
Then change the files in the source :
Code:
$ cd freshclam
$ ar -x clamav-freshclam_0.88-0volatile1_i386.deb
$ tar xvzf data.tar.gz
4th copy the file at the right place
Note : if you look at the files in the source directory, you'll see that the /etc/init.d/clamav-freshclam will be generated using the debian/clamav-freshclam.init.in and COMMON-FUNCTIONS from the file common-functions.
So I used to comment the line in the debian/rules that is doing this job (line 81) and did a copy of the debian init file as debian/clamav-freshclam.init (hope it is clear enough).
This is much more simple with the clamav-daemon init file, you just need to replace the debian/clamav-daemon.init with the good one.
The only thing I would need now is a way to avoid these files to be deleted at the debian/rules clean.
Bookmarks