1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Clam Anti-Virus Scanner
8 HOMEPAGE= https://www.clamav.net/
12 SITES[main]= https://www.clamav.net/downloads/production/
13 DISTFILE[1]= clamav-0.103.0.tar.gz:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= json-c:primary:standard
23 BUILDRUN_DEPENDS= curl:primary:standard
24 libltdl:single:standard
25 libmspack:single:standard
26 pcre2:primary:standard
27 RUN_DEPENDS= arc:single:standard
33 USERGROUP_SPKG= primary
35 USES= cpe gmake libtool ncurses pkgconfig ssl iconv zlib
37 GNOME_COMPONENTS= libxml2
39 LICENSE= GPLv2:primary
40 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
41 LICENSE_FILE= GPLv2:{{WRKSRC}}/COPYING
42 LICENSE_AWK= TERMS:"HAVE_CONFIG_H"
43 LICENSE_SOURCE= TERMS:{{WRKSRC}}/clamscan/clamscan.c
46 FPC_EQUIVALENT= security/clamav
49 CONFIGURE_ARGS= --libdir={{PREFIX}}/lib
56 --with-dbdir="/var/db/clamav"
57 --with-xml="{{LOCALBASE}}"
58 --with-libcurl="{{LOCALBASE}}"
59 --with-openssl="{{OPENSSLBASE}}"
60 --with-libjson="{{LOCALBASE}}"
61 --with-libjson-static="{{LOCALBASE}}/lib/libjson-c_pic.a"
62 --with-system-libmspack="{{LOCALBASE}}/lib/libmspack.so"
66 INSTALL_TARGET= install-strip
67 INSTALL_REQ_TOOLCHAIN= yes
69 PLIST_SUB= CLAMAVGROUP=clamav
72 LOGDIR=/var/log/clamav
73 RUNDIR=/var/run/clamav
76 RC_SUBR= clamav-clamd:primary
77 clamav-freshclam:primary
78 SUB_FILES= pkg-deinstall-primary
79 SUB_LIST= CHMOD={{CHMOD}}
81 CLAMAV_CLAMD_PIDFILE=/var/run/clamav/clamd.pid
82 CLAMAV_CLAMD_SOCKET=/var/run/clamav/clamd.sock
83 CLAMAV_MILTER_SOCKET=/var/run/clamav/clmilter.sock
87 LOGDIR=/var/log/clamav
88 RUNDIR=/var/run/clamav
90 VAR_OPSYS[freebsd]= LDFLAGS=-lthr
93 ${REINPLACE_CMD} -E -e \
94 's|^\#?(Example)$$|\#\1|' -e \
95 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 /var/log/clamav/\3|' \
96 -e 's|^\#?(PidFile) .*/([a-z\-]+\.pid)$$|\1 /var/run/clamav/\2|' -e \
97 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' -e \
98 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' -e \
99 's|^\#?(AllowSupplementaryGroups).*$$|\1 yes|' -e \
100 's|^\#?(ScanMail).*$$|\1 yes|' -e \
101 's|^\#?(DatabaseDirectory) .*$$|\1 /var/db/clamav|' -e \
102 's|^\#?(DatabaseOwner) .*$$|\1 ${CLAMAVUSER}|' -e \
103 's|^\#?(FixStaleSocket).*$$|\1 yes|' -e \
104 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' -e \
105 's|^\#?(MilterSocket) */tmp.*$$|\1 ${CLAMAV_MILTER_SOCKET}|' -e \
106 's|^\#?(ClamdSocket).*$$|\1 unix:${CLAMAV_CLAMD_SOCKET}|' \
107 ${WRKSRC}/etc/clamd.conf.sample \
108 ${WRKSRC}/etc/freshclam.conf.sample \
109 ${WRKSRC}/etc/clamav-milter.conf.sample
112 ${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${STAGEDIR}${PREFIX}/include
113 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}/html \
114 ${STAGEDIR}/var/db/clamav \
115 ${STAGEDIR}/var/log/clamav \
116 ${STAGEDIR}/var/run/clamav
117 (cd ${WRKSRC}/docs/html && \
118 ${COPYTREE_SHARE} . ${STAGEDIR}${STD_DOCDIR}/html)
120 [FILE:317:descriptions/desc.primary]
121 This the stable version of Clam Antivirus.
123 Clam Antivirus is command line virus scanner written entirely in C
124 and its database is kept up to date. It also detects polymorphic
125 viruses, scans compressed files and supported by AMaViS.
126 Optionally you can use the clamav-milter interface to connect
127 clamav with sendmail.
131 32a9745277bfdda80e77ac9ca2f5990897418e9416880f3c31553ca673e80546 13357078 clamav-0.103.0.tar.gz
134 [FILE:1045:manifests/plist.primary]
135 @sample etc/clamd.conf.sample
136 @sample etc/freshclam.conf.sample
155 libclamav.so.%%SOMAJOR%%
156 libclamav.so.%%SOVERSION%%
158 libclamunrar.so.%%SOMAJOR%%
159 libclamunrar.so.%%SOVERSION%%
160 libclamunrar_iface.so
161 libclamunrar_iface.so.%%SOMAJOR%%
162 libclamunrar_iface.so.%%SOVERSION%%
164 libfreshclam.so.%%FRESH_SOMAJOR%%
165 libfreshclam.so.%%FRESH_SOVERSION%%
166 lib/pkgconfig/libclamav.pc
178 clamav-milter.conf.5.gz
184 @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%DBDIR%%
185 @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%LOGDIR%%
186 @dir(%%CLAMAVUSER%%,%%CLAMAVGROUP%%,0755) %%RUNDIR%%
189 [FILE:881:manifests/plist.docs]
190 share/doc/clamav/html/UserManual.html
191 share/doc/clamav/html/UserManual/
192 Installation-Unix.html
193 Installation-Windows.html
200 share/doc/clamav/html/UserManual/Installation-Unix/
201 Steps-Debian-Ubuntu.html
202 Steps-Redhat-CentOS.html
204 share/doc/clamav/html/UserManual/Signatures/
206 AuthenticodeRules.html
207 BodySignatureFormat.html
208 BytecodeSignatures.html
209 ContainerMetadata.html
212 EncryptedArchives.html
213 ExtendedSignatures.html
216 FunctionalityLevels.html
218 LogicalSignatures.html
221 share/doc/clamav/html/UserManual/Usage/
224 SignatureManagement.html
225 share/doc/clamav/html/UserManual/images/demon.png
228 [FILE:680:patches/patch-configure]
229 The USES=libtool is adding dragonfly to "freebsd*)" in unwanted places.
230 This is an unintended side effect, avoid it by limiting to freebsd 10+.
232 --- configure.orig 2020-09-13 00:27:48 UTC
234 @@ -26405,7 +26405,7 @@ freebsd[45]*)
235 $as_echo "#define C_BSD 1" >>confdefs.h
240 if test "$have_pthreads" = "yes"; then
242 TH_SAFE="-thread-safe"
243 @@ -30081,7 +30081,7 @@ fi
249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kinfo_getvmmap in -lutil" >&5
250 $as_echo_n "checking for kinfo_getvmmap in -lutil... " >&6; }
251 if ${ac_cv_lib_util_kinfo_getvmmap+:} false; then :
254 [FILE:398:patches/patch-libclamav_c++_configure]
255 The USES=libtool is adding dragonfly to "freebsd*)" in unwanted places.
256 This is an unintended side effect, avoid it by limiting to freebsd 10+.
258 --- libclamav/c++/configure.orig 2020-09-13 00:27:38 UTC
259 +++ libclamav/c++/configure
260 @@ -17007,7 +17007,7 @@ case "$target_os" in
262 THREAD_LIBS="-pthread -lc_r"
271 [FILE:1152:files/clamav-clamd.in]
274 # PROVIDE: clamav_clamd
280 # Add the following lines to /etc/rc.conf to enable clamd:
282 # clamav_clamd_enable="YES"
283 # clamav_clamd_flags="<set as needed>"
285 # See clamd(8) for flags
291 rcvar=clamav_clamd_enable
293 # read settings, set default values
294 load_rc_config "$name"
296 : ${clamav_clamd_enable:=NO}
297 : ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
298 : ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"}
299 : ${clamav_clamd_user="%%CLAMAVUSER%%"}
301 command=%%PREFIX%%/sbin/clamd
302 required_dirs=%%DBDIR%%
303 required_files=%%PREFIX%%/etc/clamd.conf
305 start_precmd=clamav_clamd_precmd
306 extra_commands=reload
307 reload_cmd="%%PREFIX%%/bin/clamdscan --reload"
309 #clamav .93 won't start without a valid main.c[vl]d file
310 clamav_clamd_precmd()
312 local rundir=${clamav_clamd_pidfile%/*}
313 if [ ! -d $rundir ] ; then
314 install -d -m 0755 -o ${clamav_clamd_user} -g ${clamav_clamd_user} $rundir
316 if [ ! -f %%DBDIR%%/main.cvd -a ! -f %%DBDIR%%/main.cld ];then
317 echo "Missing %%DBDIR%%/*.cvd or *.cld files. You must run freshclam first"
325 [FILE:980:files/clamav-freshclam.in]
328 # PROVIDE: clamav_freshclam
329 # REQUIRE: LOGIN clamav_clamd
334 # Add the following lines to /etc/rc.conf to enable the freshclam daemon:
336 # clamav_freshclam_enable="YES"
337 # clamav_freshclam_flags="<set as needed>"
339 # See freshclam(1) for flags
344 name=clamav_freshclam
345 rcvar=clamav_freshclam_enable
347 # read settings, set default values
348 load_rc_config ${name}
350 : ${clamav_freshclam_enable:=NO}
351 : ${clamav_freshclam_pidfile=%%RUNDIR%%/freshclam.pid}
352 : ${clamav_freshclam_user=%%CLAMAVUSER%%}
354 command=%%PREFIX%%/bin/freshclam
355 pidfile=${clamav_freshclam_pidfile}
356 command_args="--daemon -p ${pidfile}"
357 required_dirs=%%DBDIR%%
358 required_files=%%PREFIX%%/etc/freshclam.conf
360 start_precmd=clamav_freshclam_precmd
362 clamav_freshclam_precmd()
364 local rundir=${clamav_freshclam_pidfile%/*}
365 if [ ! -d $rundir ] ; then
366 install -d -m 0755 -o ${clamav_freshclam_user} -g ${clamav_freshclam_user} $rundir
373 [FILE:513:files/pkg-deinstall-primary.in]
376 if [ "$2" != "POST-DEINSTALL" ]; then
380 CLAMAVUSER=%%CLAMAVUSER%%
383 echo "===================================================="
385 echo "If you want remove clamav permanently from you system"
386 echo "execute following commands:"
388 echo " # rm -rf %%LOGDIR%%"
389 echo " # rm -rf %%RUNDIR%%"
390 echo " # rm -rf %%DBDIR%%"
391 if pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
392 echo " # pw userdel ${CLAMAVUSER}"
395 echo "===================================================="