An ebuild for DansGuardian using the DGAntiVirus patch, attached ebuild file.
Created attachment 37250 [details] DansGuardian 2.8 with DGAntiVirus patch Might need the file downloading by hand, had a few issues getting it while testing.
*** Bug 43362 has been marked as a duplicate of this bug. ***
Created attachment 44652 [details] dansguardian 2.8.0.3 with antivirus patch Read the comments inside the ebuild for full install and cavecats Ebuild is not really perfect in the way to do all autmatic, but this is the best I can do at the moment with the time and knowledge I have. Some manual steps are needed. Anyhow hope that this one will help some people install the dansguardian with virus scanner.
Created attachment 45217 [details] dansguardian 2.8.03 with DGantivirus patch Improved ebuild together with patch files. Untar file in /usr/local/portage/dansguardian, run emerge dansguardian, follow the post install instructions and dansguardian with dg patch should be running
Created attachment 51218 [details, diff] pthread.linux.patch Patch for fix pthread in libesmtp
Created attachment 51219 [details] dansguardian-2.8.0.3-r1.ebuild it updates and it simplifies ebuild DansGuardian-Virus-Scripts-1.05.tar.gz no longer is needed
Created attachment 51764 [details] dansguardian-2.8.0.3-r1.ebuild Fix patch for clamd Fix use the cflags Update antivirus to 6.3.8
dansguardian-2.8.0.4 has arrived. dgav antivirus have some glitches, so I will wait for their update of the patch. please let me know when this happen.
I've submitted a new ebuild called www-proxy/dansguardian-dgav. I cannot maintain 2 packages, with different versions, in the same ebuild. tx, guys
I've got a problem while emerging www-proxy/dansguardian-dgav i get: g++ -o dansguardian -pipe -Os -fomit-frame-pointer -march=i686 -DPROXYUSER=\"nobody\" -DCONFFILELOCATION=\"/etc/dansguardian/dansguardian.conf\" -lz String.o OptionContainer.o FDTunnel.o ConnectionHandler.o DataBuffer.o HTTPHeader.o NaughtyFilter.o RegExp.o Socket.o FatController.o UDSocket.o SysV.o ListContainer.o Ident.o HTMLTemplate.o LanguageContainer.o DynamicURLList.o ImageContainer.o FOptionContainer.o ListManager.o md5.o ClamDScan.o VirusEngine.o VirusScanner.o /usr/lib/libz.a -lesmtp dansguardian.cpp /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_getspecific' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_mutexattr_destroy' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_once' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_key_create' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_mutexattr_init' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libesmtp.so: undefined reference to `pthread_setspecific' collect2: ld returned 1 exit status make: *** [all] Error 1 !!! ERROR: www-proxy/dansguardian-dgav-6.3.8 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! emake failed i've emerged libesmtp-1.0.3 (and i've tried with 1.0.1 too but i got the same result). My emerge info: Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 10:08:10)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.5, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-pipe -Os -fomit-frame-pointer -march=i686" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data/logs /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/named /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -Os -fomit-frame-pointer -march=i686" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr crypt curl dvd emboss encode esd fam font-server foomaticdb fortran gd gd-external gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg libg++ libwww mad maildir mikmod mmx motif mozilla moznocompose moznoirc moznomail moznoxft mp3 mpeg mysql ncurses nls nptl offensive oggvorbis opengl oss pam pdflib perl pic png python quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xmms xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
I've fixed that by removing threads from IUSE and appending -pthread to LIBS. It should hit sync mirrors in about an hour.
now it compiles without any issues ;)