]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - clamav/clamav.nm
5bcb7c382defbbfaba17399852388d73d41653f5
[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.99.3
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 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
30 CXXFLAGS += -std=gnu++98
31
32 build
33 requires
34 bzip2-devel
35 curl-devel
36 gmp-devel
37 libxml2-devel
38 ncurses-devel
39 openssl-devel
40 pcre-devel
41 shadow-utils
42 systemd-devel
43 zlib-devel
44 end
45
46 configure_options += \
47 --with-dbdir=%{localstatedir}/lib/clamav \
48 --enable-clamdtop \
49 --with-user=clamupdate \
50 --with-group=clamupdate \
51 have_cv_ipv6=yes
52
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
59
60 groupadd -g 496 -r clamscan
61 useradd -u 496 -r -s /sbin/nologin -d / -M \
62 -g clamscan clamscan
63 end
64 end
65
66 packages
67 package %{name}
68 requires
69 %{name}-libs = %{thisver}
70 end
71 end
72
73 package %{name}-libs
74 template LIBS
75
76 requires
77 %{name}-databases = %{thisver}
78 end
79 end
80
81 package %{name}-devel
82 template DEVEL
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
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
99 end