9abe6c40ed5a81881b62ce1e9e087a4e1f337d39
[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    = 2
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                 --disable-llvm \
53                 have_cv_ipv6=yes
54
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
61
62                 groupadd -g 496 -r clamscan
63                 useradd -u 496 -r -s /sbin/nologin -d / -M \
64                         -g clamscan clamscan
65         end
66 end
67
68 packages
69         package %{name}
70                 requires
71                         %{name}-libs = %{thisver}
72                 end
73         end
74
75         package %{name}-libs
76                 template LIBS
77
78                 requires
79                         %{name}-databases = %{thisver}
80                 end
81         end
82
83         package %{name}-devel
84                 template DEVEL
85         end
86
87         package %{name}-debuginfo
88                 template DEBUGINFO
89         end
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
101 end