Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  7 Apr 2006 14:39:17 -0300 (BRT)
From:      "Anderson S. Ferreira" <anderson@cnpm.embrapa.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/95485: [maintainer-update] security/klamav: Upgrade from 0.32 to 0.35.1
Message-ID:  <20060407173917.3CBC217043@mogno.local.cnpm.embrapa.br>
Resent-Message-ID: <200604071740.k37HeLaF082127@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95485
>Category:       ports
>Synopsis:       [maintainer-update] security/klamav: Upgrade from 0.32 to 0.35.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 07 17:40:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Anderson S. Ferreira
>Release:        FreeBSD 6.1-PRERELEASE amd64
>Organization:
Embrapa Monitoramento por Satlite
>Environment:
System: FreeBSD mogno.local.cnpm.embrapa.br 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Thu Apr 6 09:33:04 BRT 2006 anderson@mogno.local.cnpm.embrapa.br:/usr/src/sys/amd64/compile/MOGNO amd64

>Description:

  Upgrade klamav from 0.32 to 0.35.1

>How-To-Repeat:

>Fix:

--- klamav.patch begins here ---
diff -uNr klamav.old/Makefile klamav/Makefile
--- klamav.old/Makefile	Thu Feb 23 07:38:57 2006
+++ klamav/Makefile	Fri Mar 10 14:07:06 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	klamav
-PORTVERSION=	0.32
+PORTVERSION=	0.35.1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	klamav
@@ -16,19 +16,25 @@
 MAINTAINER=	anderson@cnpm.embrapa.br
 COMMENT=	A KDE 3 front-end to Clam Anti-Virus
 
-LIB_DEPENDS=	clamav:${PORTSDIR}/security/clamav
+LIB_DEPENDS=	clamav:${PORTSDIR}/security/clamav \
+		sqlite3:${PORTSDIR}/databases/sqlite3
 
-USE_KDELIBS_VER=3
 PREFIX=         ${KDE_PREFIX}
 
-WRKSRC=		${WRKDIR}/${DISTNAME}/${DISTNAME}
-
 USE_BZIP2=      yes
 USE_GMAKE=      yes
 
 USE_AUTOTOOLS=	libtool:15
 
-CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS}
-CONFIGURE_ARGS+= --with-qt-dir=${X11BASE}
+CONFIGURE_ENV= LDFLAGS=${PTHREAD_LIBS}
+CONFIGURE_ARGS+= --with-qt-dir=${X11BASE} \
+		 --without-included-sqlite
+
+USE_KDELIBS_VER=3
 
 .include <bsd.port.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE=		"Klamav doesn't compile on FreeBSD 4.X"
+.endif
+
diff -uNr klamav.old/distinfo klamav/distinfo
--- klamav.old/distinfo	Tue Dec 20 18:48:31 2005
+++ klamav/distinfo	Wed Mar  8 15:38:23 2006
@@ -1,3 +1,3 @@
-SIZE (klamav-0.32.tar.bz2) = 867227
-MD5 (klamav-0.32.tar.bz2) = f0226c6b2f64f2e9d2c4099b1812fdb6
-SHA256 (klamav-0.32.tar.bz2) = dd27cba3f433c9930efee21972c40c4179c629f8cd8997638be1c2e05878c962
+MD5 (klamav-0.35.1.tar.bz2) = acbd1f0367a43bb0440c50a6caeb3a34
+SHA256 (klamav-0.35.1.tar.bz2) = a1d07b6c0fd98aed9928e9d7c1f4ae35d529d2f0ae10d4e376693e7ac890f6a8
+size (klamav-0.35.1.tar.bz2) = 1117310
diff -uNr klamav.old/files/patch-configure klamav/files/patch-configure
--- klamav.old/files/patch-configure	Wed Dec 31 21:00:00 1969
+++ klamav/files/patch-configure	Thu Mar  9 08:16:36 2006
@@ -0,0 +1,11 @@
+--- configure	Thu Mar  9 08:15:40 2006
++++ configure	Thu Mar  9 08:16:11 2006
+@@ -9,6 +9,8 @@
+ ## M4sh Initialization.  ##
+ ## --------------------- ##
+ 
++PKGCONFIGFOUND=yes
++
+ # Be Bourne compatible
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+   emulate sh
diff -uNr klamav.old/files/patch-klamav klamav/files/patch-klamav
--- klamav.old/files/patch-klamav	Tue Dec 20 18:48:31 2005
+++ klamav/files/patch-klamav	Wed Dec 31 21:00:00 1969
@@ -1,71 +0,0 @@
---- src/klamav.cpp	Mon Nov 21 17:21:59 2005
-+++ src/klamav.cpp	Thu Dec 15 09:30:42 2005
-@@ -47,24 +47,33 @@
- 	connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown()));
- 	
- 	KPopupMenu *conf_menu = _tray->contextMenu();
-+
-+/* -- 
-         EnableKlamd = new KAction(i18n("&Enable Auto-Scan"), "klamav", 0,this, SLOT(contextEnable()),actionCollection(),"klamd_enable");
-         DisableKlamd = new KAction(i18n("&Disable Auto-Scan"),"klamavbw", 0,this, SLOT(contextDisable()),actionCollection(),"klamd_disable");
--        
-+*/        
-+
- 	EnableFreshklam = new KAction(i18n("&Enable Auto-Updates"), "klamavbwdl", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable");
-         DisableFreshklam = new KAction(i18n("&Disable Auto-Updates"),"klamavbw", 0,this, SLOT(contextDisableFK()),actionCollection(),"fk_disable");
- 
- 	EnableFreshklam->plug(conf_menu);
- 	DisableFreshklam->plug(conf_menu);
-+
-+/* --
- 	EnableKlamd->plug(conf_menu);
- 	DisableKlamd->plug(conf_menu);
--	
-+*/
-+
- 	QToolTip::add( _tray, "KlamAV - Virus Protection for KDE" );
- 	_tray->show();
- 	
- 	DisableFreshklam->setEnabled(FALSE);
- 	EnableFreshklam->setEnabled(TRUE);
-+
-+/* --
- 	DisableKlamd->setEnabled(FALSE);
- 	EnableKlamd->setEnabled(TRUE);
-+*/
- 
-         KConfig* config = KGlobal::config();
-         config->setGroup("Freshklam");
-@@ -81,10 +90,15 @@
- 	tab->addTab(klamscan, i18n("&Scan"));
- 
- 	klamd = new Klamd(this);
-+	
-+	klamd->hide();
-+
-+/* --
- 	tab->addTab(klamd, i18n("&Auto-Scan"));
- 
- 	connect(klamd->search_button,SIGNAL(clicked()),SLOT(contextEnable()));
- 	connect(klamd->cancel_button,SIGNAL(clicked()),SLOT(contextDisable()));
-+*/
- 		
- 	freshklam = new Freshklam(this);
- 	tab->addTab(freshklam, i18n("&Update"));
-@@ -105,8 +119,6 @@
- 	aboutklamav = new Aboutklamav(this);
- 	tab->addTab(aboutklamav, i18n("Abou&t"));
- 	
--  
--
- 
- 	top->addWidget(tab);
- 	
-@@ -149,6 +161,7 @@
- void  Klamav::shuttingDown(){
- 
- 	this->topLevelWidget()->hide();
-+	this->contextDisableFK();
- 
- }
- 
diff -uNr klamav.old/files/patch-klamd klamav/files/patch-klamd
--- klamav.old/files/patch-klamd	Wed Dec 31 21:00:00 1969
+++ klamav/files/patch-klamd	Wed Mar  8 15:50:03 2006
@@ -0,0 +1,29 @@
+--- src/klamd.cpp	Wed Mar  8 15:47:12 2006
++++ src/klamd.cpp	Wed Mar  8 15:49:18 2006
+@@ -699,7 +699,7 @@
+ 
+ 	
+ 	dazukoLoaded = FALSE;
+-	QString lsmodCommand="lsmod";
++	QString lsmodCommand="kldstat";
+ 	lsmodproc = new KProcIO();
+ 	QString curpath = (QString) getenv("PATH");
+ 	lsmodproc->setEnvironment("PATH",curpath + ":/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin");
+@@ -730,7 +730,7 @@
+ {
+ 	if (!(dazukoLoaded)){
+ 		int result;
+-		result = KMessageBox::warningContinueCancel(this, i18n( "I need to load a module called 'dazuko' first. This module will allow KlamAV to gain real-time access to files. If you don't want this message to appear in future, put the following command in your initialization scripts: 'modprobe dazuko.o'. You will next be asked for the root password."),
++		result = KMessageBox::warningContinueCancel(this, i18n( "I need to load a module called 'dazuko' first. This module will allow KlamAV to gain real-time access to files. If you don't want this message to appear in future, put the following command in your initialization scripts: 'kldload dazuko.ko'. You will next be asked for the root password."),
+ 		i18n( "Load Module" ),
+ 		i18n( "Load Module" ),
+ 		i18n( "Delete2" ));
+@@ -803,7 +803,7 @@
+ // 	
+ // 	//kdDebug() << release << endl;
+ // 	QString insmodCommand="insmod /lib/modules/" + release + "/dazuko.o";
+-	QString insmodCommand="modprobe dazuko";
++	QString insmodCommand="kldload  /usr/local/modules/dazuko.ko";
+ 	//QString insmodCommand="insmod /opt/kde/bin/dazuko.o";
+ 	KProcIO *insmodproc = new KProcIO();
+ 	
diff -uNr klamav.old/files/patch-po klamav/files/patch-po
--- klamav.old/files/patch-po	Wed Dec 31 21:00:00 1969
+++ klamav/files/patch-po	Wed Mar  8 09:54:36 2006
@@ -0,0 +1,110 @@
+--- po/cs.po	Wed Mar  8 09:45:07 2006
++++ po/cs.po	Wed Mar  8 09:46:00 2006
+@@ -610,10 +610,10 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "KlamAV potřebuje nejprve zavést modul 'dazuko'. Tento modul KlamAVu umožní přístup k souborům v reálném čase. Pokud nechcete, aby se tato zpráva v budoucnu zobrazovala, přidejte následující řádek do vašeho init skriptu: "
+-"'modprobe dazuko.o'. Nyní budete požádáni o heslo roota."
++"'kldload dazuko.ko'. Nyní budete požádáni o heslo roota."
+ 
+ #: klamd.cpp:733 klamd.cpp:734
+ msgid "Load Module"
+--- po/de.po	Wed Mar  8 09:45:07 2006
++++ po/de.po	Wed Mar  8 09:46:35 2006
+@@ -625,7 +625,7 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "Es muß das Modul mit dem Namen \"dazuko\" geladen werden. Dies ermöglicht "
+ "einen verbesserten Zugriffn auf die Datein. Wenn sie nicht möchten, dass "
+--- po/es.po	Wed Mar  8 09:45:07 2006
++++ po/es.po	Wed Mar  8 09:46:42 2006
+@@ -623,12 +623,12 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "Se necesita cargar un módulo llamado 'dazuko' primero. Este módulo le "
+ "permite a KlamAV acceso en tiempo real a los ficheros. Si no quiere que este "
+ "mensaje aparezca en el futuro, ponga lo siguiente en los scripts de "
+-"inicialización: 'modprobe dazuko.o'. Necesita la clave de administrador."
++"inicialización: 'kldload dazuko.ko'. Necesita la clave de administrador."
+ 
+ #: klamd.cpp:718 klamd.cpp:719
+ msgid "Load Module"
+--- po/hu.po	Wed Mar  8 09:45:07 2006
++++ po/hu.po	Wed Mar  8 09:46:49 2006
+@@ -626,12 +626,12 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "Először be kell tölteni a 'dazuko' nevű modult. Ez a modul teszi lehetővé a KlamAV számára "
+ "a fájlok valós idejű elérését. Ha azt szeretné, hogy ez az üzenet "
+ "ne jelenjen meg a jövőben, írja be a következő parancsot a rendszerinicializálási szkriptbe: "
+-"'modprobe dazuko.o'. A rendszergazdai jelszót meg kell adni."
++"'kldload dazuko.ko'. A rendszergazdai jelszót meg kell adni."
+ 
+ #: klamd.cpp:718 klamd.cpp:719
+ msgid "Load Module"
+--- po/it.po	Wed Mar  8 09:45:07 2006
++++ po/it.po	Wed Mar  8 09:46:57 2006
+@@ -618,7 +618,7 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ 
+ #: klamd.cpp:718 klamd.cpp:719
+--- po/pl.po	Wed Mar  8 09:45:07 2006
++++ po/pl.po	Wed Mar  8 09:47:02 2006
+@@ -545,7 +545,7 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr "Konieczne jest załadowanie najpier modułu Dazuko. Moduł ten pozwoli programowi KlamAV uzyskać dostęp do skanowania plików w czasie rzeczywistym. Jeżeli nie chcesz, aby ta informacja pojawiała się w przyszłości, wklej następującą komendę w skrypcie inicjalizacyjnym: 'modeprobe dazuko.o'. Za chwilę pojawi się pytanie o hasło administratora."
+ 
+ #: klamd.cpp:773 klamd.cpp:774
+--- po/pt_BR.po	Wed Mar  8 09:45:07 2006
++++ po/pt_BR.po	Wed Mar  8 09:47:30 2006
+@@ -880,12 +880,12 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "Preciso carregar um módulo chamado 'dazuko' antes. Este módulo permitirá ao "
+ "KlamAV obter acesso em tempo real a arquivos. Se não desejar que esta "
+ "mensagem continue a aparecer, insire o seguinte comando nos seus scripts de "
+-"inicialização: 'modprobe dazuko.o.' É necessário ser root para executar a "
++"inicialização: 'kldload dazuko.ko.' É necessário ser root para executar a "
+ "função."
+ 
+ #: klamd.cpp:718 klamd.cpp:719
+--- po/ru.po	Wed Mar  8 09:45:07 2006
++++ po/ru.po	Wed Mar  8 09:47:45 2006
+@@ -628,7 +628,7 @@
+ "I need to load a module called 'dazuko' first. This module will allow KlamAV "
+ "to gain real-time access to files. If you don't want this message to appear "
+ "in future, put the following command in your initialization scripts: "
+-"'modprobe dazuko.o'. You will next be asked for the root password."
++"'kldload dazuko.ko'. You will next be asked for the root password."
+ msgstr ""
+ "Необходимо запустить модуль, называемый dazuko. Этот модуль разрешит KlamAV "
+ "получать доступ в реальном времени к файлам. Далее Вас попросят ввести "
diff -uNr klamav.old/files/patch-src klamav/files/patch-src
--- klamav.old/files/patch-src	Wed Dec 31 21:00:00 1969
+++ klamav/files/patch-src	Fri Mar 10 11:04:59 2006
@@ -0,0 +1,11 @@
+--- src/freshklam.cpp	Fri Mar 10 11:03:46 2006
++++ src/freshklam.cpp	Fri Mar 10 11:04:15 2006
+@@ -165,7 +165,7 @@
+ 
+ 
+ 
+-
++    software_group->hide();
+ 
+ 
+     //Virus Database Directory
diff -uNr klamav.old/pkg-plist klamav/pkg-plist
--- klamav.old/pkg-plist	Sun Jan 22 00:50:21 2006
+++ klamav/pkg-plist	Fri Mar 10 14:44:05 2006
@@ -1,12 +1,13 @@
-bin/ScanWithKlamAV.sh
 bin/klammail
 bin/klamd
 bin/klamarkollon
+bin/ScanWithKlamAV
 share/doc/HTML/en/klamav02/index.docbook
 share/doc/HTML/en/klamav02/index.cache.bz2
 share/doc/HTML/en/klamav02/common
 share/locale/de/LC_MESSAGES/klamav.mo
 share/locale/cs/LC_MESSAGES/klamav.mo
+share/locale/hu/LC_MESSAGES/klamav.mo
 share/locale/es/LC_MESSAGES/klamav.mo
 share/locale/it/LC_MESSAGES/klamav.mo
 share/locale/pl/LC_MESSAGES/klamav.mo
@@ -17,6 +18,7 @@
 share/applnk/Utilities/klamav.desktop
 share/apps/konqueror/servicemenus/klamav-dropdown.desktop
 share/apps/klamav/klamavui.rc
+share/config.kcfg/klamavconfig.kcfg
 share/icons/locolor/32x32/apps/klamav.png
 share/icons/locolor/32x32/actions/klamav.png
 share/icons/locolor/16x16/apps/klamav.png
@@ -44,6 +46,7 @@
 share/apps/klamav/icons/locolor/16x16/actions/klamav.png
 share/apps/klamav/about/main.html
 share/apps/klamav/about/wait.html
+share/apps/klamav/about/nodb.html
 share/apps/klamav/about/aboutklamav.html
 share/apps/klamav/about/klam.png
 share/apps/klamav/about/tshirt.png
@@ -76,3 +79,4 @@
 @dirrmtry share/apps/klamav/icons
 @dirrmtry share/apps/klamav/about
 @dirrmtry share/apps/klamav
+@dirrmtry share/config.kcfg
--- klamav.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060407173917.3CBC217043>