Compare commits
30 Commits
0.98.5-1ma
...
main
Author | SHA1 | Date | |
---|---|---|---|
864ed599e1 | |||
cc7dc8a297 | |||
a4273d4b5f | |||
bd2b33659d | |||
3dd0b484b8 | |||
797d8c4df0 | |||
e846d0c522 | |||
85ea94e419 | |||
a120c6072c | |||
3036734875 | |||
d7a3931869 | |||
c4578f42f2 | |||
e534188f9a | |||
d4895a2372 | |||
5f4c652243 | |||
dd6323e29a | |||
106b63bb07 | |||
b17950f772 | |||
c6a4de7be5 | |||
9588ae1cc2 | |||
a3f6542fd3 | |||
dbd8438647 | |||
b80dc6fef9 | |||
ea4f06f2e2 | |||
ac7fe9edd7 | |||
eaaba13747 | |||
0e28587a8d | |||
7f761215f4 | |||
a10e30065d | |||
8f40b7f5cf |
@ -1,32 +0,0 @@
|
||||
diff -ru clamav-0.95.2.orig/etc/freshclam.conf clamav-0.95.2/etc/freshclam.conf
|
||||
--- clamav-0.95.2.orig/etc/freshclam.conf.sample 2009-07-06 20:52:29.000000000 +0200
|
||||
+++ clamav-0.95.2/etc/freshclam.conf.sample 2009-07-06 20:54:18.000000000 +0200
|
||||
@@ -5,16 +5,16 @@
|
||||
|
||||
|
||||
# Comment or remove the line below.
|
||||
-Example
|
||||
+#Example
|
||||
|
||||
# Path to the database directory.
|
||||
# WARNING: It must match clamd.conf's directive!
|
||||
# Default: hardcoded (depends on installation options)
|
||||
-#DatabaseDirectory /var/lib/clamav
|
||||
+DatabaseDirectory /var/lib/clamav
|
||||
|
||||
# Path to the log file (make sure it has proper permissions)
|
||||
# Default: disabled
|
||||
-#UpdateLogFile /var/log/freshclam.log
|
||||
+UpdateLogFile /var/log/clamav/freshclam.log
|
||||
|
||||
# Maximum size of the log file.
|
||||
# Value of 0 disables the limit.
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
# Initialize supplementary group access (freshclam must be started by root).
|
||||
# Default: no
|
||||
-#AllowSupplementaryGroups yes
|
||||
+AllowSupplementaryGroups yes
|
||||
|
||||
# Use DNS to verify virus database version. Freshclam uses DNS TXT records
|
||||
# to verify database and software versions. With this directive you can change
|
@ -1,28 +1,22 @@
|
||||
diff -Nru clamav-0.94.2.orig/etc/clamd.conf clamav-0.94.2/etc/clamd.conf
|
||||
--- clamav/etc/clamd.conf.sample.orig 2010-04-27 16:37:30.000000000 +0200
|
||||
+++ clamav/etc/clamd.conf.sample 2010-05-30 15:43:12.389016952 +0200
|
||||
@@ -4,14 +4,12 @@
|
||||
--- clamav-1.2.0/etc/clamd.conf.sample.orig 2023-09-09 19:52:01.009069222 +0200
|
||||
+++ clamav-1.2.0/etc/clamd.conf.sample 2023-09-09 19:54:10.143858534 +0200
|
||||
@@ -4,14 +4,11 @@
|
||||
##
|
||||
|
||||
|
||||
-# Comment or remove the line below.
|
||||
-Example
|
||||
|
||||
-
|
||||
# Uncomment this option to enable logging.
|
||||
# LogFile must be writable for the user running daemon.
|
||||
# A full path is required.
|
||||
# Default: disabled
|
||||
-#LogFile /tmp/clamd.log
|
||||
+#LogFile /var/log/clamav/clamd.log
|
||||
+LogFile /var/log/clamav/clamd.log
|
||||
|
||||
# By default the log file is locked for writing - the lock protects against
|
||||
# running clamd multiple times (if want to run another clamd, please
|
||||
@@ -27,11 +25,11 @@
|
||||
# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
|
||||
# in bytes just don't use modifiers.
|
||||
# Default: 1M
|
||||
-#LogFileMaxSize 2M
|
||||
+LogFileMaxSize 0
|
||||
@@ -32,7 +29,7 @@
|
||||
|
||||
# Log time with each message.
|
||||
# Default: no
|
||||
@ -31,25 +25,34 @@ diff -Nru clamav-0.94.2.orig/etc/clamd.conf clamav-0.94.2/etc/clamd.conf
|
||||
|
||||
# Also log clean files. Useful in debugging but drastically increases the
|
||||
# log size.
|
||||
@@ -54,7 +52,7 @@
|
||||
# This option allows you to save a process identifier of the listening
|
||||
# daemon (main thread).
|
||||
@@ -41,7 +38,7 @@
|
||||
|
||||
# Use system logger (can work together with LogFile).
|
||||
# Default: no
|
||||
-#LogSyslog yes
|
||||
+LogSyslog yes
|
||||
|
||||
# Specify the type of syslog messages - please refer to 'man syslog'
|
||||
# for facility names.
|
||||
@@ -74,7 +71,7 @@
|
||||
# It is recommended that the directory where this file is stored is
|
||||
# also owned by root to keep other users from tampering with it.
|
||||
# Default: disabled
|
||||
-#PidFile /var/run/clamd.pid
|
||||
-#PidFile /run/clamav/clamd.pid
|
||||
+PidFile /run/clamav/clamd.pid
|
||||
|
||||
# Optional path to the global temporary directory.
|
||||
# Default: system specific (usually /tmp or /var/tmp).
|
||||
@@ -73,7 +71,7 @@
|
||||
@@ -98,7 +95,7 @@
|
||||
|
||||
# Path to a local socket file the daemon will listen on.
|
||||
# Default: disabled (must be specified by a user)
|
||||
-#LocalSocket /tmp/clamd.socket
|
||||
+LocalSocket /run/clamav/clamd.sock
|
||||
-#LocalSocket /run/clamav/clamd.sock
|
||||
+LocalSocket /run/clamav/clamd.ctl
|
||||
#LocalSocket /tmp/clamd.sock
|
||||
|
||||
# Sets the group ownership on the unix socket.
|
||||
# Default: disabled (the primary group of the user running clamd)
|
||||
@@ -162,11 +160,11 @@
|
||||
@@ -191,11 +188,11 @@
|
||||
|
||||
# Follow directory symlinks.
|
||||
# Default: no
|
||||
@ -63,17 +66,12 @@ diff -Nru clamav-0.94.2.orig/etc/clamd.conf clamav-0.94.2/etc/clamd.conf
|
||||
|
||||
# Scan files and directories on other filesystems.
|
||||
# Default: yes
|
||||
@@ -183,11 +181,11 @@
|
||||
@@ -224,7 +221,7 @@
|
||||
|
||||
# Run as another user (clamd must be started by root for this option to work)
|
||||
# Default: don't drop privileges
|
||||
-#User clamav
|
||||
+User clamav
|
||||
|
||||
# Initialize supplementary group access (clamd must be started by root).
|
||||
# Default: no
|
||||
-#AllowSupplementaryGroups no
|
||||
+AllowSupplementaryGroups yes
|
||||
|
||||
# Stop daemon when libclamav reports out of memory condition.
|
||||
#ExitOnOOM yes
|
29
clamav-1.4.0-freshclam_config.patch
Normal file
29
clamav-1.4.0-freshclam_config.patch
Normal file
@ -0,0 +1,29 @@
|
||||
--- clamav-1.4.0/etc/freshclam.conf.sample.orig 2024-08-21 20:11:02.703496385 +0200
|
||||
+++ clamav-1.4.0/etc/freshclam.conf.sample 2024-08-21 20:12:09.701609375 +0200
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# Path to the log file (make sure it has proper permissions)
|
||||
# Default: disabled
|
||||
-#UpdateLogFile /var/log/freshclam.log
|
||||
+UpdateLogFile /var/log/clamav/freshclam.log
|
||||
|
||||
# Maximum size of the log file.
|
||||
# Value of 0 disables the limit.
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
# Use system logger (can work together with UpdateLogFile).
|
||||
# Default: no
|
||||
-#LogSyslog yes
|
||||
+LogSyslog yes
|
||||
|
||||
# Specify the type of syslog messages - please refer to 'man syslog'
|
||||
# for facility names.
|
||||
@@ -54,7 +54,7 @@
|
||||
# It is recommended that the directory where this file is stored is
|
||||
# also owned by root to keep other users from tampering with it.
|
||||
# Default: disabled
|
||||
-#PidFile /run/clamav/freshclam.pid
|
||||
+PidFile /run/clamav/freshclam.pid
|
||||
|
||||
# By default when started freshclam drops privileges and switches to the
|
||||
# "clamav" user. This directive allows you to change the database owner.
|
@ -1,71 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# clamd -- startup script for the Clam AntiVirus Daemon
|
||||
#
|
||||
# chkconfig: 2345 79 30
|
||||
# description: Clam AntiVirus Daemon is a TCP/IP or unix domain
|
||||
# socket protocol server.
|
||||
# processname: clamd
|
||||
# pidfile: /run/clamav/clamd.pid
|
||||
# config: /etc/clamd.conf
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
NAME=clamd
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
DAEMONPID=/var/run/clamav/$NAME.pid
|
||||
DAEMONCONF=/etc/clamd.conf
|
||||
OPTIONS="-c $DAEMONCONF"
|
||||
|
||||
[ -x $DAEMON ] || exit 0
|
||||
|
||||
# Source networking configuration.
|
||||
[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
|
||||
|
||||
[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
|
||||
|
||||
# check if the clamv conf file is present
|
||||
[ -r "$DAEMONCONF" ] || exit 0
|
||||
|
||||
USER=`grep '^User' $DAEMONCONF | awk '{ print $2}'`
|
||||
LOGFILE=`grep '^LogFile ' $DAEMONCONF | awk '{ print $2}'`
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n $"Starting Clam AntiVirus Daemon: "
|
||||
if [ "${LOGFILE}" ]; then
|
||||
touch ${LOGFILE}
|
||||
chown ${USER}:${USER} ${LOGFILE}
|
||||
fi
|
||||
daemon --pidfile=$DAEMONPID $DAEMON $OPTIONS
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$NAME
|
||||
;;
|
||||
stop)
|
||||
echo -n $"Stopping Clam AntiVirus Daemon: "
|
||||
killproc -p $DAEMONPID $NAME
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME $DAEMONPID
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
condrestart)
|
||||
[ -e /var/lock/subsys/$NAME ] && $0 restart
|
||||
;;
|
||||
status)
|
||||
statusproc $DAEMON
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: ""/etc/init.d/$NAME {start|stop|status|restart|condrestart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=clamav daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
PIDFile=/run/clamav/clamd.pid
|
||||
ExecStart=/usr/sbin/clamd -c /etc/clamd.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,67 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# freshclamd -- startup script for the Clam AntiVirus Database Update Daemon
|
||||
#
|
||||
# chkconfig: 2345 80 30
|
||||
# description: Clam AntiVirus Database Update Daemon.
|
||||
# processname: freshclamd
|
||||
# pidfile: /run/clamav/freshclam.pid
|
||||
# config: /etc/freshclam.conf
|
||||
# config: /etc/clamd.conf
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
NAME=freshclam
|
||||
DAEMON=/usr/bin/$NAME
|
||||
DAEMONPID=/run/clamav/$NAME.pid
|
||||
DAEMONCONF=/etc/freshclam.conf
|
||||
OPTIONS="--config-file=$DAEMONCONF --quiet --daemon --pid=/run/clamav/freshclam.pid"
|
||||
|
||||
CLAMVDCONF=/etc/clamd.conf
|
||||
|
||||
[ -x $DAEMON ] || exit 0
|
||||
|
||||
[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
|
||||
|
||||
# check if the clamv conf file is present
|
||||
[ -r "$DAEMONCONF" ] || exit 0
|
||||
|
||||
USER=`grep '^User' $CLAMVDCONF | awk '{ print $2}'`
|
||||
LOGFILE=`grep '^UpdateLogFile ' $DAEMONCONF | awk '{ print $2}'`
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n $"Starting Clam AntiVirus Update Daemon: "
|
||||
touch ${LOGFILE}; chown ${USER}:${USER} ${LOGFILE}
|
||||
daemon --pidfile=$DAEMONPID $DAEMON $OPTIONS
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$NAME
|
||||
;;
|
||||
stop)
|
||||
echo -n $"Stopping Clam AntiVirus Update Daemon: "
|
||||
killproc -p $DAEMONPID $NAME
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME $DAEMONPID
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
condrestart)
|
||||
[ -e /var/lock/subsys/$NAME ] && $0 restart
|
||||
;;
|
||||
status)
|
||||
statusproc $DAEMON
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: ""/etc/init.d/$NAME {start|stop|status|restart|condrestart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=clamav updater
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/clamav/freshclam.pid
|
||||
ExecStart=/usr/bin/freshclam -d -p /run/clamav/freshclam.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
clamav-tmpfiles
Normal file
1
clamav-tmpfiles
Normal file
@ -0,0 +1 @@
|
||||
d /run/clamav 711 clamav clamav
|
253
clamav.spec
253
clamav.spec
@ -6,48 +6,50 @@
|
||||
%define libname lib%{name}
|
||||
|
||||
Name: clamav
|
||||
Version: 0.98.5
|
||||
Version: 1.4.2
|
||||
Release: 1mamba
|
||||
Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX
|
||||
Group: Applications/Security
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.clamav.net
|
||||
Source0: http://downloads.sourceforge.net/project/clamav/clamav/%{version}/clamav-%{version}.tar.gz
|
||||
#Source0: http://downloads.sourceforge.net/sourceforge/clamav/clamav-%{version}.tar.gz
|
||||
Source1: %{name}-clamd.initscript
|
||||
URL: https://www.clamav.net/
|
||||
Source0: http://www.clamav.net/downloads/production/clamav-%{version}.tar.gz
|
||||
Source1: clamav-tmpfiles
|
||||
Source2: %{name}-clamd.logrotate
|
||||
Source3: %{name}-freshclam.initscript
|
||||
Source4: %{name}-freshclam.logrotate
|
||||
#Source5: http://db.local.clamav.net/daily.cvd
|
||||
Source6: clamav-clamd.service
|
||||
Source7: clamav-freshclamd.service
|
||||
Patch0: %{name}-0.98.4-config.patch
|
||||
Patch1: %{name}-0.98-freshclam_config.patch
|
||||
Patch0: %{name}-1.3.1-config.patch
|
||||
Patch1: %{name}-1.4.0-freshclam_config.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libbzip2-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libltdl-devel
|
||||
BuildRequires: libjson-c-devel
|
||||
BuildRequires: libmspack-devel
|
||||
BuildRequires: libncurses-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libpcre2-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: libsystemd-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libz-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: bash
|
||||
BuildRequires: ldconfig
|
||||
BuildRequires: pwdutils
|
||||
BuildRequires: libmilter-devel
|
||||
Requires: bzip2
|
||||
Requires: gzip
|
||||
Requires: tar
|
||||
Requires: unzip
|
||||
Requires(pre): %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires(pre): /usr/sbin/groupadd, /usr/sbin/useradd
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
Requires(pre): /usr/sbin/useradd
|
||||
Provides: user(clamav)
|
||||
Provides: group(clamav)
|
||||
%systemd_requires
|
||||
|
||||
%description
|
||||
Clam AntiVirus is a GPL anti-virus toolkit for UNIX.
|
||||
@ -83,22 +85,27 @@ Clam AntiVirus is a GPL anti-virus toolkit for UNIX.
|
||||
The main purpose of this software is the integration with mail servers (attachment scanning).
|
||||
This package contains the static %{libname} library and its header files.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
#%define _default_patch_fuzz 2
|
||||
%patch 0 -p1
|
||||
%patch 1 -p1
|
||||
#cp %{SOURCE5} database/daily.cvd
|
||||
|
||||
%build
|
||||
export SENDMAIL="%{_libdir}/sendmail"
|
||||
%configure \
|
||||
--with-dbdir=%{_localstatedir}/lib/clamav/
|
||||
%cmake -d build \
|
||||
-DAPP_CONFIG_DIRECTORY=%{_sysconfdir} \
|
||||
-DDATABASE_DIRECTORY=%{_localstatedir}/lib/clamav \
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
|
||||
#export SENDMAIL="%{_libdir}/sendmail"
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
%makeinstall
|
||||
%makeinstall -C build
|
||||
|
||||
# log files stuff
|
||||
install -d %{buildroot}%{_var}/log/%{name}
|
||||
@ -106,19 +113,19 @@ touch %{buildroot}%{_var}/log/%{name}/clamd.log
|
||||
touch %{buildroot}%{_var}/log/%{name}/freshclam.log
|
||||
|
||||
# install needed initscripts and logrotate files
|
||||
#install -D -m755 %{S:1} %{buildroot}%{_initrddir}/clamd
|
||||
install -D -m644 %{S:1} %{buildroot}%{_tmpfilesdir}/clamav.conf
|
||||
install -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/clamd
|
||||
#install -D -m755 %{S:3} %{buildroot}%{_initrddir}/freshclam
|
||||
install -D -m644 %{S:4} %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
|
||||
|
||||
install -d %{buildroot}%{_var}/lib/%{name}
|
||||
|
||||
mv %{buildroot}%{_sysconfdir}/clamd.conf.sample %{buildroot}%{_sysconfdir}/clamd.conf
|
||||
mv %{buildroot}%{_sysconfdir}/freshclam.conf.sample %{buildroot}%{_sysconfdir}/freshclam.conf
|
||||
mv %{buildroot}%{_sysconfdir}/clamav-milter.conf.sample %{buildroot}%{_sysconfdir}/clamav-milter.conf
|
||||
|
||||
install -d %{buildroot}%{_unitdir}
|
||||
install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/clamd.service
|
||||
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/freshclamd.service
|
||||
##install -d %{buildroot}%{_unitdir}
|
||||
#install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/clamd.service
|
||||
#install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/freshclamd.service
|
||||
|
||||
install -d %{buildroot}%{_prefix}/lib/tmpfiles.d
|
||||
cat > %{buildroot}%{_prefix}/lib/tmpfiles.d/clamav.conf << _EOF
|
||||
@ -132,62 +139,47 @@ _EOF
|
||||
/usr/sbin/groupadd %{clamav_grp} -g %{clamav_gid} &>/dev/null
|
||||
/usr/sbin/useradd %{clamav_usr} -c "Clam AntiVirus" -s /bin/false \
|
||||
-u %{clamav_uid} -g %{clamav_grp} &>/dev/null
|
||||
%tmpfiles_create_package clamav %{SOURCE1}
|
||||
:
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
# new install
|
||||
systemctl -q daemon-reload
|
||||
systemd-tmpfiles --create clamav.conf
|
||||
systemctl -q enable freshclamd
|
||||
systemctl -q start freshclamd
|
||||
elif [ $1 -ge 1 ]; then
|
||||
systemctl -q daemon-reload
|
||||
systemd-tmpfiles --create clamav.conf
|
||||
systemctl -q try-restart freshclamd
|
||||
# remove /0 file created by error in initscript
|
||||
[ -e /0 ] && rm -f /0
|
||||
fi
|
||||
%systemd_post clamav-freshclam
|
||||
#if [ $1 -ge 1 ]; then
|
||||
# # Workaround: remove /0 file created by error in initscript
|
||||
# [ -e /0 ] && rm -f /0
|
||||
#fi
|
||||
:
|
||||
|
||||
%preun
|
||||
%systemd_preun clamav-freshclam
|
||||
if [ $1 -eq 0 ]; then
|
||||
# erase
|
||||
systemctl -q stop freshclamd
|
||||
systemctl -q disable freshclamd
|
||||
/usr/sbin/userdel %{clamav_usr} 2>/dev/null
|
||||
fi
|
||||
:
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart clamav-freshclam
|
||||
:
|
||||
|
||||
%post -n clamd
|
||||
if [ $1 -eq 1 ]; then
|
||||
# new install
|
||||
systemctl -q daemon-reload
|
||||
systemd-tmpfiles --create clamav.conf
|
||||
systemctl -q enable clamd
|
||||
systemctl -q start freshclamd
|
||||
sleep 5
|
||||
systemctl -q start clamd
|
||||
elif [ $1 -gt 1 ]; then
|
||||
systemctl -q daemon-reload
|
||||
systemd-tmpfiles --create clamav.conf
|
||||
systemctl -q try-restart clamd
|
||||
fi
|
||||
%systemd_post clamav-daemon.socket
|
||||
:
|
||||
|
||||
%preun -n clamd
|
||||
if [ $1 -eq 0 ]; then
|
||||
# erase
|
||||
systemctl -q stop clamd
|
||||
systemctl -q disable clamd
|
||||
fi
|
||||
%systemd_preun clamav-daemon.socket
|
||||
:
|
||||
|
||||
%postun -n clamd
|
||||
%systemd_postun_with_restart clamav-daemon.socket
|
||||
:
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/freshclam.conf
|
||||
%config(noreplace) %{_sysconfdir}/clamav-milter.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/freshclam
|
||||
%{_bindir}/clambc
|
||||
%{_bindir}/clamconf
|
||||
%{_bindir}/clamdscan
|
||||
@ -195,14 +187,14 @@ fi
|
||||
%{_bindir}/clamsubmit
|
||||
%{_bindir}/freshclam
|
||||
%{_bindir}/sigtool
|
||||
#%{_datadir}/clamav/*.cvd
|
||||
%config(noreplace) %{_sysconfdir}/freshclam.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/freshclam
|
||||
%{_prefix}/lib/tmpfiles.d/clamav.conf
|
||||
%{_unitdir}/freshclamd.service
|
||||
%{_sbindir}/clamav-milter
|
||||
%{_tmpfilesdir}/clamav.conf
|
||||
%{_sbindir}/clamonacc
|
||||
%{_unitdir}/clamav-clamonacc.service
|
||||
%{_unitdir}/clamav-freshclam.service
|
||||
%{_unitdir}/clamav-freshclam-once.service
|
||||
%{_unitdir}/clamav-freshclam-once.timer
|
||||
%dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/lib/%{name}
|
||||
#%ghost %{_var}/lib/%{name}/daily.cvd
|
||||
#%ghost %{_var}/lib/%{name}/mani.cvd
|
||||
%dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}
|
||||
%ghost %attr(0644,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}/freshclam.log
|
||||
%{_mandir}/man1/clamconf.*
|
||||
@ -216,7 +208,8 @@ fi
|
||||
%{_mandir}/man5/clamd.conf.*
|
||||
%{_mandir}/man5/freshclam.conf.*
|
||||
%{_mandir}/man8/clamav-milter.*
|
||||
%doc AUTHORS COPYING
|
||||
%{_mandir}/man8/clamonacc.8*
|
||||
%doc COPYING
|
||||
|
||||
%files -n clamd
|
||||
%defattr(-,root,root)
|
||||
@ -224,26 +217,138 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/clamd
|
||||
%{_sbindir}/clamd
|
||||
%{_bindir}/clamdtop
|
||||
%{_unitdir}/clamd.service
|
||||
%{_unitdir}/clamav-daemon.service
|
||||
%{_unitdir}/clamav-daemon.socket
|
||||
%ghost %attr(0644,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}/clamd.log
|
||||
%{_mandir}/man1/clamdtop.*
|
||||
%{_mandir}/man8/clamd.*
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/libclamav.so.*
|
||||
%{_libdir}/libclamunrar.so.*
|
||||
%{_libdir}/libclamunrar_iface.so.*
|
||||
%{_libdir}/libfreshclam.so.*
|
||||
|
||||
%files -n %{libname}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/clamav-config
|
||||
%{_includedir}/*.h
|
||||
#%{_libdir}/*.a
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/libclamav.so
|
||||
%{_libdir}/libclamav_rust.a
|
||||
%{_libdir}/libclamunrar.so
|
||||
%{_libdir}/libclamunrar_iface.so
|
||||
%{_libdir}/libfreshclam.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%doc BUGS ChangeLog NEWS README
|
||||
%dir %{_docdir}/ClamAV
|
||||
%dir %{_docdir}/ClamAV/html
|
||||
%{_docdir}/ClamAV/html/*
|
||||
#% doc BUGS ChangeLog NEWS README
|
||||
|
||||
%changelog
|
||||
* Wed Jan 22 2025 Automatic Build System <autodist@openmamba.org> 1.4.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Sep 05 2024 Automatic Build System <autodist@openmamba.org> 1.4.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Sep 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-2mamba
|
||||
- provide user and group clamav
|
||||
|
||||
* Thu Aug 22 2024 Automatic Build System <autodist@openmamba.org> 1.4.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu May 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-2mamba
|
||||
- rebuilt with -DDATABASE_DIRECTORY and ENABLE_EXTERNAL_MS_PACK
|
||||
- conf: fix socket file to /run/clamav/clamd.ctl
|
||||
|
||||
* Thu Apr 18 2024 Automatic Build System <autodist@openmamba.org> 1.3.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Feb 08 2024 Automatic Build System <autodist@openmamba.org> 1.3.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Oct 26 2023 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Sep 10 2023 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Aug 17 2023 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue May 02 2023 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Feb 16 2023 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Feb 01 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Nov 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.104.1-1mamba
|
||||
- update to 0.104.1
|
||||
|
||||
* Tue Jun 22 2021 Automatic Build System <autodist@mambasoft.it> 0.103.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Apr 08 2021 Automatic Build System <autodist@mambasoft.it> 0.103.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 0.103.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Oct 07 2020 Automatic Build System <autodist@mambasoft.it> 0.103.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jul 23 2020 Automatic Build System <autodist@mambasoft.it> 0.102.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed May 13 2020 Automatic Build System <autodist@mambasoft.it> 0.102.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Feb 13 2020 Automatic Build System <autodist@mambasoft.it> 0.102.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Sep 10 2019 Automatic Build System <autodist@mambasoft.it> 0.101.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Aug 07 2019 Automatic Build System <autodist@mambasoft.it> 0.101.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Mar 28 2019 Automatic Build System <autodist@mambasoft.it> 0.101.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jan 10 2019 Automatic Build System <autodist@mambasoft.it> 0.101.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Dec 19 2018 Automatic Build System <autodist@mambasoft.it> 0.101.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Oct 07 2018 Automatic Build System <autodist@mambasoft.it> 0.100.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Jul 31 2018 Automatic Build System <autodist@mambasoft.it> 0.100.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Jun 23 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.100.0-1mamba
|
||||
- update to 0.100.0
|
||||
|
||||
* Wed May 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.2-1mamba
|
||||
- update to 0.99.2
|
||||
|
||||
* Thu Mar 03 2016 Automatic Build System <autodist@mambasoft.it> 0.99.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Dec 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99-1mamba
|
||||
- update to 0.99
|
||||
|
||||
* Wed Apr 29 2015 Automatic Build System <autodist@mambasoft.it> 0.98.7-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jan 29 2015 Automatic Build System <autodist@mambasoft.it> 0.98.6-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Nov 19 2014 Automatic Build System <autodist@mambasoft.it> 0.98.5-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user