Commit graph

172 commits

Author SHA1 Message Date
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
0113e48192 - Remove GCC 4.2+ dependency, now it builds file with 3.4.6
- Add a new OPTION to TESTS, since it requires python on build time and some
  people don't like this. Leave it ON by default to run tests on package
  building
- Bump PORTREVISION because gcc dependency has changed

PR:		ports/150984 (based on)
Submitted by:	Eugene Grosbein <eugen@grosbein.pp.ru>
2010-09-27 16:59:07 +00:00
Renato Botelho
094fc9c03e Update to 0.96.3 2010-09-20 17:54:22 +00:00
Renato Botelho
c3f0efa947 - Add missing dependency (libltdl) to clamav and clamav-devel ports
- Bump PORTREVISION

PR:		ports/150512
Submitted by:	Philippe Pepiot <phil@philpep.org>
2010-09-13 11:30:16 +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
9d9e71e29f Add LICENSE 2010-08-24 16:42:59 +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
eacd7ff2fe pav@ noted LICENSE code don't work fine with ports using @cwd in plist, and
it'll be fixed soon. Remove LICENSE from clamav ports for now.
2010-08-13 11:29:48 +00:00
Renato Botelho
3535ff6657 Update to 0.96.2 2010-08-13 11:05:04 +00:00
Renato Botelho
e2ddce958d Add LICENSE 2010-08-10 13:24:48 +00:00
Renato Botelho
3cda6e1207 Gcc 4.2+ is only needed to build clamav with LLVM/JIT support, remove this
dependency when LLVM is not set.

Submitted by:	Guy Antony Halse <G.Halse@ru.ac.za>
2010-05-21 12:28:24 +00:00
Renato Botelho
4057c1bc83 Update to 0.96.1 2010-05-19 16:15:57 +00:00
Renato Botelho
dd9928baf0 Disable LLVM/JIT build for sparc64, it should unbreak it on this arch 2010-05-04 16:08:10 +00:00
Renato Botelho
764208f03f - Use ${TOUCH} instead of touch
- Fix pkg-plist to delete directories installed out of PREFIX (on /var) [1]
- Bump PORTREVISION because of [1]

PR:		ports/145448 [1]
Submitted by:	sahil@ [1]
2010-04-12 13:04:18 +00:00
Renato Botelho
cd427c3ffb Unit tests require python built with thread support, disable make check when
local python doesn't have this

PR:		ports/145520
Submitted by:	Michael Scheidell <scheidell at secnap.net>
2010-04-12 12:56:56 +00:00
Renato Botelho
0501546c5c Python and gmaker are needed just if LLVM option is set 2010-04-09 18:48:18 +00:00
Renato Botelho
82125ecf5d - Reduce differences between it and security/clamav-devel
- Make JIT bytecode compiler as an OPTION, On by default [1]

PR:		ports/145435 [1]
Submitted by:	Alexander Wittig <alexander at wittig.name> [1]
2010-04-06 17:53:20 +00:00
Renato Botelho
a953afc146 - Remove duplicated BUILD_DEPENDS 2010-04-06 17:24:13 +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
c1a3055b5f Execute a "make check" at post-build target, add libcheck as a dependency for it 2010-01-27 16:56:35 +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
7201331c10 - Update to 0.95.2
PR:		ports/135501
Submitted by:	Alexey V.Degtyarev <alexey@renatasystems.org>
2009-06-12 11:50:56 +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
8c7c9cf638 - Update to 0.95.1 and fix clamav-milter 2009-04-08 18:15:42 +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
Martin Matuska
c9e0963840 - Mark MAKE_JOBS_SAFE for SMP compilation
PR:		ports/132969
Approved by:	garga (maintainer, via ICQ)
2009-03-23 12:54:39 +00:00
Renato Botelho
2273a9bcea - Update to 0.94.2 2008-11-26 16:46:24 +00:00
Renato Botelho
a687baf638 - Remove libtools from depends and use its own version, without it next
versions will stop building
- Remove --disable-zlib-vcheck from CONFIGURE_ARGS to fix a warning on
  configure
2008-11-17 19:10:38 +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
ce899b57f9 - Fix pkg-plist
- Bump PORTREVISION

Reported by:	QAT
Approved by:	portmgr (pav)
2008-09-15 20:36: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
fe6a84f89c - Change pre-install: target to pre-su-install: since user and group are
created there (via pkg-install), and it must be done as root.
- While i'm here, fix the same on clamav-devel port

PR:		ports/126701
Submitted by:	grog
2008-08-21 14:25:33 +00:00
Rong-En Fan
741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +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
102398f45a - Forgot to remove one conditional about PTHREAD_LIB on last commit 2008-06-09 23:55:20 +00:00
Renato Botelho
e4e0822bc9 - Remove < 6.1 conditional since it's no longer supported 2008-06-09 23:51:16 +00:00
Renato Botelho
1e0001cfe1 - Update to 0.93.1 2008-06-09 16:13:25 +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