]>
Commit | Line | Data |
---|---|---|
3812d68a | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
3812d68a CS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = clamav |
7228dab7 CS |
7 | version = 0.97.4 |
8 | release = 1 | |
3812d68a | 9 | |
802ea3af MT |
10 | groups = System Environment/Daemons |
11 | url = http://www.clamav.net | |
12 | license = GPLv2 | |
13 | summary = A GPL virus scanner | |
3812d68a | 14 | |
802ea3af MT |
15 | description |
16 | ClamAV is an open source (GPL) antivirus engine designed for | |
17 | detecting Trojans, viruses, malware and other malicious threats. | |
18 | It is the de facto standard for mail gateway scanning. It | |
19 | provides a high performance mutli-threaded scanning daemon, | |
20 | command line utilities for on demand file scanning, and an | |
21 | intelligent tool for automatic signature updates. The core ClamAV | |
22 | library provides numerous file format detection mechanisms, file | |
23 | unpacking support, archive support, and multiple signature | |
24 | languages for detecting threats. | |
25 | end | |
3812d68a | 26 | |
802ea3af | 27 | source_dl = http://downloads.sourceforge.net/clamav/ |
3812d68a CS |
28 | |
29 | CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED | |
30 | ||
802ea3af MT |
31 | build |
32 | requires | |
33 | bzip2-devel | |
34 | curl-devel | |
35 | gmp-devel | |
36 | ncurses-devel | |
37 | shadow-utils | |
38 | zlib-devel | |
39 | end | |
40 | ||
41 | configure_options += \ | |
42 | --sysconfdir=/etc \ | |
43 | --disable-static \ | |
44 | --disable-rpath \ | |
45 | --disable-silent-rules \ | |
46 | --with-dbdir=/var/lib/clamav \ | |
47 | --enable-clamdtop \ | |
48 | --with-user=clamupdate \ | |
49 | --with-group=clamupdate \ | |
50 | have_cv_ipv6=yes | |
3812d68a | 51 | |
802ea3af MT |
52 | # User and group have to exist to compile the source code, |
53 | # so we have to create them | |
54 | prepare_cmds | |
55 | groupadd -g 497 -r clamupdate | |
56 | useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \ | |
57 | -c 'Clamav database update user' -g clamupdate clamupdate | |
3812d68a | 58 | |
802ea3af MT |
59 | groupadd -g 496 -r clamscan |
60 | useradd -u 496 -r -s /sbin/nologin -d / -M \ | |
61 | -g clamscan clamscan | |
62 | end | |
63 | end | |
3812d68a | 64 | |
802ea3af MT |
65 | packages |
66 | package %{name} | |
7228dab7 CS |
67 | requires |
68 | %{name}-libs = %{thisver} | |
69 | end | |
802ea3af | 70 | end |
1f9bc2f0 | 71 | |
802ea3af MT |
72 | package %{name}-libs |
73 | template LIBS | |
7228dab7 CS |
74 | |
75 | requires | |
76 | %{name}-databases = %{thisver} | |
77 | end | |
802ea3af | 78 | end |
1f9bc2f0 | 79 | |
802ea3af MT |
80 | package %{name}-devel |
81 | template DEVEL | |
82 | end | |
1f9bc2f0 MT |
83 | |
84 | package %{name}-debuginfo | |
85 | template DEBUGINFO | |
86 | end | |
7228dab7 CS |
87 | |
88 | package %{name}-databases | |
89 | summary = Clamav Virus Databases. | |
90 | description | |
91 | Shipped virus databases needed for virus scanning. | |
92 | end | |
93 | ||
94 | files | |
95 | %{localstatedir}/lib/%{name} | |
96 | end | |
97 | end | |
802ea3af | 98 | end |