Commit graph

81 commits

Author SHA1 Message Date
Michael Scheidell
ab9173024d - Fix CL_FORMAT bug introducted by clamav in version 0.97.5 (their bug #5252)
Submitted by:	scheidell@ (me)
Approved by:	Renato Botelho <garga@FreeBSD.org> (maintainer, via private email)
Obtained from:	https://bugzilla.clamav.net/show_bug.cgi?id=5252
2012-06-22 19:25:41 +00:00
Renato Botelho
fdab7c3d8f - Update to 0.97.4
- Mark WITH_LLVM_PORTS as broken since it doesn't build with llvm 3.0
- Move LICENSE to correct place

PR:		ports/166160 (based on)
Submitted by:	scheidell@
Feature safe:	yes
2012-03-17 15:21:39 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Renato Botelho
dc570950dc - Update to 0.97.3
- Fix build with external llvm [1]

PR:		ports/160185 [1]
Submitted by:	Volodymyr Kostyrko <c.kworr@gmail.com> [1]
2011-10-18 14:03:25 +00:00
Renato Botelho
1c314aea11 - Update to 0.97.2
PR:		ports/159185 (based on)
Submitted by:	Michael Scheidell <scheidell@secnap.net>
2011-07-26 22:24:21 +00:00
Renato Botelho
d69d7cfa0e Fix build with llvm from ports
PR:		ports/157147
Submitted by:	Lapo Luchini <lapo@lapo.it>
2011-07-06 00:16:03 +00:00
Chris Rees
d2f0ac5fa3 Remove bashism from the unit tests, and also check that chosen random port is
closed first to avoid intermittent failures when testing

Approved by:	rene (mentor), garga (maintainer, via IRC)
2011-06-29 19:37:51 +00:00
Renato Botelho
2640092f35 Update to 0.97
Feature safe:	yes
2011-02-08 12:13:53 +00:00
Renato Botelho
5fd53e4b0f - On 0.96.5, clamav was leaving some zombie proccess of freshclam, fix it.
- Bump PORTREVISION

Submitted by:	Herbert J. Skuhra <h.skuhra@gmail.com>
Obtained from:	http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=2e136dcd0d7c34dc742475529db022d80d0dde2e
		http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=3c91587c8c894e898345086ef8e7a072fdf7b1bc
2010-12-16 17:43:46 +00:00
Renato Botelho
999514b5c9 Update to 0.96.4 2010-10-25 19:53:09 +00:00
Renato Botelho
7a52343a4c Fix a mmap() error scanning PDF files, as described on clamav's git repo commit
log:

off_t is 64-bit, size_t is still 32-bit and that causes unexpected integer
promotion here:
map_off = map->len - 2048

First the unsigned subtraction is performed, and then the unsigned (!) value
is sign-extended to 64-bit. Hence a negative value becomes positive, which is
wrong.

Reported by:	Franz Schwartau <franz@electromail.org>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2300
2010-09-28 17:27:49 +00:00
Renato Botelho
094fc9c03e Update to 0.96.3 2010-09-20 17:54:22 +00:00
Renato Botelho
6458ba6ddb - Fix bytecode problem on FreeBSD 7.1
- Bump PORTREVISION

PR:		ports/150243
Submitted by:	Frank Wall <fw@moov.de>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2235
2010-09-03 11:27:22 +00:00
Renato Botelho
717434be77 - Fix CPU assumptions for amd64
- Bump PORTREVISION

PR:		ports/149637
Submitted by:	Michael Scheidell <scheidell@secnap.net>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2201
2010-08-16 11:38:12 +00:00
Renato Botelho
4057c1bc83 Update to 0.96.1 2010-05-19 16:15:57 +00:00
Renato Botelho
af4c0b3e4f - Update to 0.96
- Fix error on make check when LC_ALL != en and subversion is installed [1]

PR:		ports/145340 [1]
Submitted by:	Alexander Wittig <alexander@wittig.name> [1]
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1922 [1]
2010-04-06 12:01:13 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Renato Botelho
8c76097b4c After some requests, change permission of clamav-milter socket to 0777 2010-01-22 11:13:09 +00:00
Renato Botelho
143dfac64e Update to 0.95.3 2009-10-29 10:46:26 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Renato Botelho
2d5b39dcf6 - Add reload option to startup script, it calls clamdscan --reload, a faster
way to reload clam data without need restart
- Bump PORTREVISION

PR:		ports/133868
Submitted by:	Michael Scheidell <scheidell@secnap.net>
2009-04-21 13:43:34 +00:00
Renato Botelho
d6a49fddec - Remove wrong patch added on last commit 2009-04-03 13:57:13 +00:00
Renato Botelho
4055e65cd4 - Mark clamav-milter as BROKEN since it's not working. I updated clamav-devel
to a version that have the fix and won't update it anymore until 0.95.1 is
  released
2009-04-03 13:56:35 +00:00
Renato Botelho
d253acf464 - Update to 0.95 2009-03-27 11:52:22 +00:00
Renato Botelho
a9c54712a8 - Update to 0.94.1
- Add --libdir to CONFIGURE_ARGS to fix libdir detection under 6.x
2008-11-03 22:48:53 +00:00
Renato Botelho
37c88c8e12 - Update security/clamav to 0.94 [1] and fix a remote DoS [2]
- Chase libclamav version bump on all dependant ports
- Bump necessary PORTREVISIONS
- Fix some BROKEN messages from ports that were already broken with clamav-0.93
- Mark security/klamav as BROKEN since it doesn't build with clamav-0.94

PR:		ports/127122 [1], ports/127310 [2]
Submitted by:	Gary Palmer <freebsd-gnats@in-addr.com> [1], delphij [2]
Approved by:	portmgr (pav)
2008-09-15 19:56:38 +00:00
Renato Botelho
78004c6d17 - Permit to ser owner and group to clamav milter socket [1]
- Remove @ to show some install commands, and add -v to cp
- Install clamav-milter doc
- User CHOWN and CHMOD from bsd.commands.mk

PR:		ports/126069 [1]
Submitted by:	Matthew D. Fuller <fullermd@over-yonder.net> [1]
2008-08-18 18:44:19 +00:00
Renato Botelho
162f09e1eb - Fix wrong error message in clamav-milter startup script
PR:		ports/126575
Submitted by:	Paul Toirkens <paul@sapphire.toirkens.com>
2008-08-18 14:39:59 +00:00
Renato Botelho
5db9c74f3c - Last change on clamav-milter startup script doesn't work if used with inet[6]
sockets, fixing it now.

No bump PORTREVISION needed since MILTER option is off by default

Reported by:	Gregory Shapiro <gshapiro@gshapiro.net>
Tested by:	Gregory Shapiro <gshapiro@gshapiro.net>
2008-07-14 11:21:50 +00:00
Renato Botelho
f92755b7ed - Update to 0.93.3
- Change clamav-milter startup script to wait clamav-milter socket be created
  before try to chmod it [1]

PR:		ports/124643 [1]
Submitted by:	Adrian Thearle <adrian@thearle.com.au> [1]
2008-07-07 20:37:37 +00:00
Renato Botelho
a6a0eaab90 - Fix checking of database viruses at startup script that i broke on last
commit
- Bump PORTREVISION again

Submitted by:	George L. Yermulnik <yz@iptcom.net>
Pointyhat to:	me
2008-06-17 11:20:04 +00:00
Renato Botelho
f5c9b5def5 - Fix clamd startup script to support cld containers for virus databases
- Bump PORTREVISION

Reported by:	Robert Huff <roberthuff@rcn.com>
2008-06-16 19:28:23 +00:00
Renato Botelho
af30d66979 - Fix default clamd socket name: clamd -> clamd.sock
- Some cosmetic changes (indentation)
- sort pkg-plist
- Add option on clamav-milter startup script to change socket permissions
  (tested on clamav-devel)
- Bump PORTREVISION
2008-05-20 18:06:34 +00:00
Renato Botelho
3de94d87f8 - Update to 0.93
This version fixes lock problem reported at ports/122534

Most important changes:
 *libclamav:
   - New logic in scan limits: provides much more efficient protection against
     DoS attacks but also results in different command line and config options
     to clamscan and clamd (see below)
   - New/improved modules: unzip, SIS, cabinet, CHM, SZDD, text normalisator,
     entity converter
   - Improved filetype detection; filetype definitions can be remotely updated
   - Support for .cld containers (which replace .inc directories)
   - Improved pattern matcher and signature formats
   - More efficient scanning of HTML files
   - Many other improvements

 * clamd:
   - NEW CONFIG FILE OPTIONS: MaxScanSize, MaxFileSize, MaxRecursion, MaxFiles
   - ** THE FOLLOWING OPTIONS ARE NO LONGER SUPPORTED **: MailMaxRecursion,
     ArchiveMaxFileSize, ArchiveMaxRecursion, ArchiveMaxFiles,
     ArchiveMaxCompressionRatio, ArchiveBlockMax

 * clamscan:
   - NEW CMDLINE OPTIONS: --max-filesize, --max-scansize
   - REMOVED OPTIONS: --block-max, --max-space, --max-ratio

 * freshclam:
   - NEW CONFIG OPTION CompressLocalDatabase
   - NEW CMDLINE SWITCH --no-warnings
   - main.inc and daily.inc directories are no longer used by ClamAV; please
     remove them manually from your database directory

PR:		ports/122770 [1] (based on)
		ports/122534 [2]
Submitted by:	Michael Scheidell <scheidell@secnap.net> [1]
		Sebastian Inacker <inacker@fmsweb.de> [2]
Security:	http://secunia.com/advisories/29000
2008-04-16 16:05:54 +00:00
Renato Botelho
6d71ccce3a - Fix a thread problem on FreeBSD 5.x forcing it to use -lpthread [1]
- Fix a problem on pkg-install, when umask is not default, it create dirs with
  wrong permissions [2]
- Bump PORTREVISION

PR:		ports/120885 [2]
Submitted by:	dmx@dmx.org.ru [2]
Noticed by:	havp pointyhat via pav
2008-02-21 13:19:50 +00:00
Renato Botelho
7453d766a3 Fix clamav-milter startup script to don't wait clamd socket when it's using tcp
socket

PR:		ports/115353 (Based on)
Submitted by:	Alexander Shikoff <minotaur@crete.org.ua>
2007-08-14 11:14:06 +00:00
Renato Botelho
517b8be9ce - Change clamav-milter rc.d script, now it just wait for clamd socket if
clamav_clamd_enable is set.

PR:		ports/111545
Submitted by:	Craig Leres <leres@ee.lbl.gov>
2007-06-05 14:22:46 +00:00
Renato Botelho
0744663c92 - Update to 0.90.3
- Remove unzoo support (clam doesn't support it anymore)

PR:		ports/113174
Submitted by:	Michael Scheidell <scheidell@secnap.net>
2007-06-01 17:09:09 +00:00
Renato Botelho
661e726925 - Update to 0.90.2
- Add a patch to increase performance of clamd in threaded systems [1]
- Change clamav-milter rc.d script to use a var to determine seconds of timeout
  to wait clamd socket be started [2]
- Add support to gethostbyname_r() on FreeBSD 6 and above [3]
- Install clamav-config.h [3]
- Fix all dependencies for klamav work fine [3]

PR:		ports/111130 [2], ports/111478 [3]
Submitted by:	Anton Yuzhaninov <citrin@rambler-co.ru> [1]
	  	Denis Eremenko <moonshade@pnhz.kz> [2]
		Anderson S. Ferreira <anderson@cnpm.embrapa.br> [3]
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=434 [1]
2007-04-13 17:49:09 +00:00
Renato Botelho
6dee7aadd2 - Update clamav to 0.90.1
- Use -lthr to build clamav since it has problems with libpthread
- Bump PORTREVISION of dependant ports, libclamav version was bumped
- Fix clamcour to build with clamav-0.90.x using patch sent by maintainer
2007-03-13 20:11:19 +00:00
Renato Botelho
35df6e4e45 Fix pthread lib for clamav-milter
PR:		ports/109792
Submitted by:	Eugene Grosbein <eugen@kuzbass.ru>
2007-03-05 11:32:06 +00:00
Renato Botelho
0c362b4540 Change the way to patch configure to respect ${PTHREAD_LIBS} to a better one. 2007-03-01 16:02:14 +00:00
Renato Botelho
3c4507d8da Fix clamav-milter startup script like was done on clamav-devel, to make it wait
clamd socket before start.

Submitted by:	ache@
2007-02-28 18:23:12 +00:00
Renato Botelho
2f5188f16a - Fix 'integer constant is too large for "long" type' warning [1]
- Convert one patch to REINPLACE_CMD
- Force to use ${PREFIX}/lib/libmilter.a if it's installed
- Fix sendmail binary detection using --with-sendmail instead SENDMAIL envvar
- Add EXPERIMENTAL OPTION to build with --enable-experimental
- Remove DESTDIR/TARGETDIR since it's useless for now
- Bump PORTREVISION

Submitted by:	stas@ at #bsdports [1]
Thanks to:	stas@ and simon@ [1]
2007-02-18 16:12:37 +00:00
Renato Botelho
433214b639 - Update to 0.90
- Cleanup a little bit

PR:		ports/109185 (Based on)
Submitted by:	Michael Scheidell <scheidell@secnap.net>
2007-02-16 00:19:32 +00:00
Renato Botelho
d1113b0c41 Respect DESTDIR
Reworked by:	gabor
Tested by:	gabor
2006-08-08 19:33:04 +00:00
Renato Botelho
01a61f0371 - Add an option to print logs on stderr instead stdout, it's useful to catch
logs and use on smtp log. In preparation to update spamcontro to 2.4 series.
- s/unarj/arj/ on clamscan man [1]
- Bump PORTREVISION because man change

Reported by:	Anton Yuzhaninov <citrin at citrin.ru> [1]
2006-05-26 16:49:53 +00:00
Renato Botelho
ee4f428e3a - Update to 0.88.1 -- Fix multiple vulnerabilities
* CVE-2006-1614
    Damian Put discovered an integer overflow in the PE header parser.
    This is only exploitable if the ArchiveMaxFileSize option is disabled.
 * CVE-2006-1615
    Format string vulnerabilities in the logging code have been discovered,
    which might lead to the execution of arbitrary code.
 * CVE-2006-1630
    David Luyer discovered, that ClamAV can be tricked into an invalid
    memory access in the cli_bitset_set() function, which may lead to
    a denial of service.

- Use USE_RC_SUBR=script

PR:		ports/95403
Submitted by:	garga
Approved by:	maintainer timeout (mnag on behalf of secteam)
Security:	VuXML 6a5174bd-c580-11da-9110-00123ffe8333
2006-04-06 15:20:18 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Emanuel Haupt
b132d882d5 Update to 0.88, a possible heap overflow in the UPX code has been fixed
PR:		91593
Submitted by:	Boris B. Samorodov <bsam@ipt.ru>
Approved by:	simon (secteam)
Security:	612a34ec-81dc-11da-a043-0002a5c3d308 (VuXML)
2006-01-11 10:27:29 +00:00