Closed WilliamAnthony closed 7 months ago
Hi there,
Thanks for giving this a go! Sorry it is so hard to build.
I assume, as the modules are in /usr/lib/x86_64-linux-gnu/samba/vfs
, that you are using the package Ubuntu supplies.
I had quite a bit of trouble building it to work with Ubuntu's package. In the end what I did was download and rebuild their samba package. It was something like:
sudo apt-get install build-essential quilt unzip debhelper
sudo apt-get build-dep samba
apt-get source samba
curl https://codeload.github.com/fumiyas/samba-virusfilter/zip/master > samba-virusfilter-master.zip
unzip samba-virusfilter-master.zip
mv samba-virusfilter-master samba-4.1.6+dfsg/samba-virusfilter
curl https://gist.github.com/luke-dixon/4c514d40d8de05ce3fdc/download | gzip -d -c > samba-virus-filter-ubuntu-trusty.patch
cd samba-4.1.6+dfsg
quilt import ../samba-virus-filter-ubuntu-trusty.patch
quilt push -a
fakeroot debian/rules clean
fakeroot debian/rules binary
cd ..
The svf_*.so files end up in the samba-vfs-modules package. You could install that package or just copy them from samba-4.1.6+dfsg/debian/samba-vfs-modules/usr/lib/x86_64-linux-gnu/samba/vfs/
.
Hope this helps.
Yes, thanks for your great help...
I manually download samba source from http://archive.ubuntu.com/ubuntu/pool/main/s/samba/ It could be the cause of my error, because using apt-get source samba, there are automated patches applying in the end of process.
Please retry with the latest Samba release and bundled vfs_virusfilter
(8) module, and report to upstream if you see a problem.
@fumiyas @luke-dixon Hi, I'm trying to use samba-virusfilter on my ubuntu 14.04 running samba 4.1.6. After building module and setting the configuration like the example, I got this error when I tried to access the share. I guess I should missed something when compiling the source (located at /home/william/temp/samba-4.1.6), but I have no idea what it is.
I've checked the file is exists
Thanks.