]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - clamav/clamav.nm
clamav: Update to 0.101.2
[people/stevee/ipfire-3.x.git] / clamav / clamav.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = clamav
7 version = 0.101.2
8 release = 1
9
10 groups = System Environment/Daemons
11 url = http://www.clamav.net
12 license = GPLv2
13 summary = A GPL virus scanner
14
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
26
27 source_dl = http://www.clamav.net/downloads/production/
28
29 build
30 requires
31 bzip2-devel
32 curl-devel
33 gmp-devel
34 json-c-devel
35 libxml2-devel
36 ncurses-devel
37 openssl-devel
38 pcre2-devel
39 shadow-utils
40 systemd-devel
41 zlib-devel
42 end
43
44 LDFLAGS += -Wl,--as-needed
45
46 configure_options += \
47 --with-dbdir=%{localstatedir}/lib/clamav \
48 --enable-clamdtop \
49 --with-user=clamupdate \
50 --with-group=clamupdate \
51 --disable-rpath \
52 have_cv_ipv6=yes
53
54 # User and group have to exist to compile the source code,
55 # so we have to create them
56 prepare_cmds
57 groupadd -g 497 -r clamupdate
58 useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \
59 -c 'Clamav database update user' -g clamupdate clamupdate
60
61 groupadd -g 496 -r clamscan
62 useradd -u 496 -r -s /sbin/nologin -d / -M \
63 -g clamscan clamscan
64 end
65 end
66
67 packages
68 package %{name}
69 requires
70 %{name}-libs = %{thisver}
71 end
72 end
73
74 package %{name}-libs
75 template LIBS
76
77 requires
78 %{name}-databases = %{thisver}
79 end
80 end
81
82 package %{name}-devel
83 template DEVEL
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89
90 package %{name}-databases
91 summary = Clamav Virus Databases.
92 description
93 Shipped virus databases needed for virus scanning.
94 end
95
96 files
97 %{localstatedir}/lib/%{name}
98 end
99 end
100 end