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