]>
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 |
795c469a | 7 | version = 0.99.3 |
7228dab7 | 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 | |
795c469a | 27 | source_dl = http://www.clamav.net/downloads/production/ |
3812d68a CS |
28 | |
29 | CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED | |
795c469a | 30 | CXXFLAGS += -std=gnu++98 |
3812d68a | 31 | |
802ea3af MT |
32 | build |
33 | requires | |
34 | bzip2-devel | |
35 | curl-devel | |
36 | gmp-devel | |
795c469a | 37 | libxml2-devel |
802ea3af | 38 | ncurses-devel |
795c469a MT |
39 | openssl-devel |
40 | pcre-devel | |
802ea3af | 41 | shadow-utils |
795c469a | 42 | systemd-devel |
802ea3af MT |
43 | zlib-devel |
44 | end | |
45 | ||
46 | configure_options += \ | |
795c469a | 47 | --with-dbdir=%{localstatedir}/lib/clamav \ |
802ea3af MT |
48 | --enable-clamdtop \ |
49 | --with-user=clamupdate \ | |
50 | --with-group=clamupdate \ | |
51 | have_cv_ipv6=yes | |
3812d68a | 52 | |
802ea3af MT |
53 | # User and group have to exist to compile the source code, |
54 | # so we have to create them | |
55 | prepare_cmds | |
56 | groupadd -g 497 -r clamupdate | |
57 | useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \ | |
58 | -c 'Clamav database update user' -g clamupdate clamupdate | |
3812d68a | 59 | |
802ea3af MT |
60 | groupadd -g 496 -r clamscan |
61 | useradd -u 496 -r -s /sbin/nologin -d / -M \ | |
62 | -g clamscan clamscan | |
63 | end | |
64 | end | |
3812d68a | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
7228dab7 CS |
68 | requires |
69 | %{name}-libs = %{thisver} | |
70 | end | |
802ea3af | 71 | end |
1f9bc2f0 | 72 | |
802ea3af MT |
73 | package %{name}-libs |
74 | template LIBS | |
7228dab7 CS |
75 | |
76 | requires | |
77 | %{name}-databases = %{thisver} | |
78 | end | |
802ea3af | 79 | end |
1f9bc2f0 | 80 | |
802ea3af MT |
81 | package %{name}-devel |
82 | template DEVEL | |
83 | end | |
1f9bc2f0 MT |
84 | |
85 | package %{name}-debuginfo | |
86 | template DEBUGINFO | |
87 | end | |
7228dab7 CS |
88 | |
89 | package %{name}-databases | |
90 | summary = Clamav Virus Databases. | |
91 | description | |
92 | Shipped virus databases needed for virus scanning. | |
93 | end | |
94 | ||
95 | files | |
96 | %{localstatedir}/lib/%{name} | |
97 | end | |
98 | end | |
802ea3af | 99 | end |