Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60093

Summary: New DansGuardian with DGAntiVirus
Product: Gentoo Linux Reporter: Tim <tim>
Component: New packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED FIXED    
Severity: enhancement CC: michael.knappe, web
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: DansGuardian 2.8 with DGAntiVirus patch
dansguardian 2.8.0.3 with antivirus patch
dansguardian 2.8.03 with DGantivirus patch
pthread.linux.patch
dansguardian-2.8.0.3-r1.ebuild
dansguardian-2.8.0.3-r1.ebuild

Description Tim 2004-08-11 15:20:27 UTC
An ebuild for DansGuardian using the DGAntiVirus patch, attached ebuild file.
Comment 1 Tim 2004-08-11 15:21:25 UTC
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.
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2004-09-22 10:17:40 UTC
*** Bug 43362 has been marked as a duplicate of this bug. ***
Comment 3 smouge 2004-11-24 11:06:16 UTC
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.
Comment 4 smouge 2004-12-03 11:26:35 UTC
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
Comment 5 INODE64 Sistemas 2005-02-14 09:41:38 UTC
Created attachment 51218 [details, diff]
pthread.linux.patch

Patch for fix pthread in libesmtp
Comment 6 INODE64 Sistemas 2005-02-14 09:44:03 UTC
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
Comment 7 INODE64 Sistemas 2005-02-21 01:23:59 UTC
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
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2005-02-25 14:24:38 UTC
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.
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2005-03-08 11:50:22 UTC
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
Comment 10 Tyler Durden 2005-03-10 01:47:04 UTC
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
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2005-03-10 02:04:03 UTC
I've fixed that by removing threads from IUSE and appending -pthread to LIBS.

It should hit sync mirrors in about an hour.
Comment 12 Tyler Durden 2005-03-10 03:58:17 UTC
now it compiles without any issues ;)