0.92 on all active branches
This commit is contained in:
parent
095844cfca
commit
85ce1bf814
28
clamav-0.90rc3-private.patch
Normal file
28
clamav-0.90rc3-private.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- clamav-0.90rc3/libclamav.pc.in.private 2004-07-14 13:35:38.000000000 +0200
|
||||||
|
+++ clamav-0.90rc3/libclamav.pc.in 2007-02-04 12:24:35.000000000 +0100
|
||||||
|
@@ -6,6 +6,6 @@
|
||||||
|
Name: libclamav
|
||||||
|
Description: A GPL virus scanner
|
||||||
|
Version: @LIBCLAMAV_VERSION@
|
||||||
|
-Libs: -L${libdir} -lclamav @LIBCLAMAV_LIBS@
|
||||||
|
-Cflags: -I${includedir} @CFLAGS@
|
||||||
|
-
|
||||||
|
+Libs: -L${libdir} -lclamav
|
||||||
|
+Libs.private: -L${libdir} -lclamav @LIBCLAMAV_LIBS@
|
||||||
|
+Cflags: -I${includedir}
|
||||||
|
--- clamav-0.90rc3/clamav-config.in.private 2004-06-06 03:50:08.000000000 +0200
|
||||||
|
+++ clamav-0.90rc3/clamav-config.in 2007-02-04 12:25:27.000000000 +0100
|
||||||
|
@@ -55,11 +55,11 @@
|
||||||
|
;;
|
||||||
|
|
||||||
|
--cflags)
|
||||||
|
- echo -I@includedir@ @CFLAGS@
|
||||||
|
+ echo -I@includedir@
|
||||||
|
;;
|
||||||
|
|
||||||
|
--libs)
|
||||||
|
- echo -L@libdir@ @LIBCLAMAV_LIBS@
|
||||||
|
+ echo -L@libdir@ -lclamav
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
57
clamav-0.92-nounrar.patch
Normal file
57
clamav-0.92-nounrar.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
diff -up clamav-0.92/Makefile.in.BAD clamav-0.92/Makefile.in
|
||||||
|
--- clamav-0.92/Makefile.in.BAD 2007-12-21 12:39:00.000000000 -0500
|
||||||
|
+++ clamav-0.92/Makefile.in 2007-12-21 12:39:11.000000000 -0500
|
||||||
|
@@ -242,7 +242,7 @@ target_os = @target_os@
|
||||||
|
target_vendor = @target_vendor@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
-SUBDIRS = libclamunrar libclamunrar_iface libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
|
||||||
|
+SUBDIRS = libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
|
||||||
|
EXTRA_DIST = FAQ contrib test examples BUGS shared libclamav.pc.in UPGRADE COPYING.nsis COPYING.unrar COPYING.LGPL
|
||||||
|
bin_SCRIPTS = clamav-config
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
diff -up clamav-0.92/configure.in.BAD clamav-0.92/configure.in
|
||||||
|
--- clamav-0.92/configure.in.BAD 2007-12-21 12:37:51.000000000 -0500
|
||||||
|
+++ clamav-0.92/configure.in 2007-12-21 12:38:00.000000000 -0500
|
||||||
|
@@ -1214,8 +1214,6 @@ AC_MSG_RESULT($have_signed_rightshift_ex
|
||||||
|
AC_C_FPU_BIGENDIAN
|
||||||
|
|
||||||
|
AC_OUTPUT([
|
||||||
|
-libclamunrar/Makefile
|
||||||
|
-libclamunrar_iface/Makefile
|
||||||
|
libclamav/Makefile
|
||||||
|
clamscan/Makefile
|
||||||
|
database/Makefile
|
||||||
|
diff -up clamav-0.92/Makefile.am.BAD clamav-0.92/Makefile.am
|
||||||
|
--- clamav-0.92/Makefile.am.BAD 2007-12-21 12:38:39.000000000 -0500
|
||||||
|
+++ clamav-0.92/Makefile.am 2007-12-21 12:38:47.000000000 -0500
|
||||||
|
@@ -16,7 +16,7 @@
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||||
|
# MA 02110-1301, USA.
|
||||||
|
|
||||||
|
-SUBDIRS = libclamunrar libclamunrar_iface libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
|
||||||
|
+SUBDIRS = libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
|
||||||
|
EXTRA_DIST = FAQ contrib test examples BUGS shared libclamav.pc.in UPGRADE COPYING.nsis COPYING.unrar COPYING.LGPL
|
||||||
|
|
||||||
|
bin_SCRIPTS=clamav-config
|
||||||
|
diff -up clamav-0.92/configure.BAD clamav-0.92/configure
|
||||||
|
--- clamav-0.92/configure.BAD 2007-12-21 12:45:38.000000000 -0500
|
||||||
|
+++ clamav-0.92/configure 2007-12-21 12:46:05.000000000 -0500
|
||||||
|
@@ -26397,7 +26397,7 @@ echo "$as_me: WARNING: Unable to determi
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
-ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
|
||||||
|
+ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
|
||||||
|
|
||||||
|
cat >confcache <<\_ACEOF
|
||||||
|
# This file is a shell script that caches the results of configure
|
||||||
|
@@ -27013,8 +27013,6 @@ do
|
||||||
|
case $ac_config_target in
|
||||||
|
"clamav-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamav-config.h" ;;
|
||||||
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
||||||
|
- "libclamunrar/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar/Makefile" ;;
|
||||||
|
- "libclamunrar_iface/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar_iface/Makefile" ;;
|
||||||
|
"libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
|
||||||
|
"clamscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamscan/Makefile" ;;
|
||||||
|
"database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;;
|
11
clamav-0.92-open.patch
Normal file
11
clamav-0.92-open.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- clamav-0.91.2/clamd/dazukoio_compat12.c.open 2007-03-06 14:38:06.000000000 +0100
|
||||||
|
+++ clamav-0.91.2/clamd/dazukoio_compat12.c 2007-08-25 12:36:30.000000000 +0200
|
||||||
|
@@ -89,7 +89,7 @@ int dazukoRegister_TS_compat12(struct da
|
||||||
|
if (dazuko->device < 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
- dazuko->device = open("/dev/dazuko", 0);
|
||||||
|
+ dazuko->device = open("/dev/dazuko", O_RDONLY);
|
||||||
|
if (dazuko->device < 0)
|
||||||
|
return -1;
|
||||||
|
|
305
clamav.spec
305
clamav.spec
@ -1,10 +1,9 @@
|
|||||||
## $Id: clamav.spec,v 1.43 2006/10/18 07:22:18 ensc Exp $
|
## $Id: clamav.spec,v 1.60 2007/10/29 14:25:28 spot Exp $
|
||||||
|
|
||||||
## Fedora Extras specific customization below...
|
## Fedora Extras specific customization below...
|
||||||
%bcond_without fedora
|
%bcond_without fedora
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|
||||||
%global username clamav
|
%global username clamav
|
||||||
%global homedir %_var/lib/clamav
|
%global homedir %_var/lib/clamav
|
||||||
%global freshclamlog %_var/log/freshclam.log
|
%global freshclamlog %_var/log/freshclam.log
|
||||||
@ -18,14 +17,20 @@
|
|||||||
|
|
||||||
Summary: End-user tools for the Clam Antivirus scanner
|
Summary: End-user tools for the Clam Antivirus scanner
|
||||||
Name: clamav
|
Name: clamav
|
||||||
Version: 0.88.6
|
Version: 0.92
|
||||||
Release: %release_func 1
|
Release: %release_func 3
|
||||||
|
|
||||||
License: GPL
|
License: GPLv2
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
URL: http://www.clamav.net
|
URL: http://www.clamav.net
|
||||||
Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz
|
# Unfortunately, clamav includes support for RAR v3, derived from GPL
|
||||||
Source999: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz.sig
|
# incompatible unrar from RARlabs. We have to pull this code out.
|
||||||
|
# All that is needed to make the clean tarball is: rm -rf libclamunrar*
|
||||||
|
# Note that you also need patch26.
|
||||||
|
Source0: clamav-%{version}.clean.tar.gz
|
||||||
|
# Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz
|
||||||
|
# No sense in using this file for the time being.
|
||||||
|
# Source999: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz.sig
|
||||||
Source1: clamd-wrapper
|
Source1: clamd-wrapper
|
||||||
Source2: clamd.sysconfig
|
Source2: clamd.sysconfig
|
||||||
Source3: clamd.logrotate
|
Source3: clamd.logrotate
|
||||||
@ -33,18 +38,29 @@ Source5: clamd-README
|
|||||||
Source6: clamav-update.logrotate
|
Source6: clamav-update.logrotate
|
||||||
Source7: clamd.SERVICE.init
|
Source7: clamd.SERVICE.init
|
||||||
Source8: clamav-notify-servers
|
Source8: clamav-notify-servers
|
||||||
Patch0: clamav-0.88.2-guys,please-read-the-compiler-warnings-before-doing-a-release.patch
|
|
||||||
Patch1: clamav-0.88.1-strncpy.patch
|
|
||||||
Patch20: clamav-0.70-user.patch
|
|
||||||
Patch21: clamav-0.70-path.patch
|
Patch21: clamav-0.70-path.patch
|
||||||
Patch22: clamav-0.80-initoff.patch
|
Patch22: clamav-0.80-initoff.patch
|
||||||
Patch23: clamav-0.88.4-visibility.patch
|
Patch24: clamav-0.90rc3-private.patch
|
||||||
|
Patch25: clamav-0.92-open.patch
|
||||||
|
Patch26: clamav-0.92-nounrar.patch
|
||||||
BuildRoot: %_tmppath/%name-%version-%release-root
|
BuildRoot: %_tmppath/%name-%version-%release-root
|
||||||
Requires: clamav-lib = %version-%release
|
Requires: clamav-lib = %version-%release
|
||||||
Requires: data(clamav)
|
Requires: data(clamav)
|
||||||
BuildRequires: zlib-devel bzip2-devel gmp-devel tcp_wrappers curl-devel
|
BuildRequires: zlib-devel bzip2-devel gmp-devel curl-devel
|
||||||
|
BuildRequires: %_includedir/tcpd.h
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
|
|
||||||
|
%package filesystem
|
||||||
|
Summary: Filesystem structure for clamav
|
||||||
|
Group: Applications/File
|
||||||
|
Provides: user(clamav)
|
||||||
|
Provides: group(clamav)
|
||||||
|
# Prevent version mix
|
||||||
|
Conflicts: %name < %version-%release
|
||||||
|
Conflicts: %name > %version-%release
|
||||||
|
BuildRequires: fedora-usermgmt-devel
|
||||||
|
%{?FE_USERADD_REQ}
|
||||||
|
|
||||||
%package lib
|
%package lib
|
||||||
Summary: Dynamic libraries for the Clam Antivirus scanner
|
Summary: Dynamic libraries for the Clam Antivirus scanner
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -55,16 +71,24 @@ Summary: Header files and libraries for the Clam Antivirus scanner
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source100: clamd-gen
|
Source100: clamd-gen
|
||||||
Requires: clamav-lib = %version-%release
|
Requires: clamav-lib = %version-%release
|
||||||
|
Requires: clamav-filesystem = %version-%release
|
||||||
Requires(pre): %_libdir/pkgconfig
|
Requires(pre): %_libdir/pkgconfig
|
||||||
|
|
||||||
%package data
|
%package data
|
||||||
Summary: Virus signature data for the Clam Antivirus scanner
|
Summary: Virus signature data for the Clam Antivirus scanner
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
Provides: data(clamav)
|
Requires(pre): clamav-filesystem = %version-%release
|
||||||
Provides: user(clamav)
|
Requires(postun): clamav-filesystem = %version-%release
|
||||||
Provides: group(clamav)
|
Provides: data(clamav) = full
|
||||||
BuildRequires: fedora-usermgmt-devel
|
Conflicts: data(clamav) < full
|
||||||
%{?FE_USERADD_REQ}
|
Conflicts: data(clamav) > full
|
||||||
|
|
||||||
|
%package data-empty
|
||||||
|
Summary: Empty data package for the Clam Antivirus scanner
|
||||||
|
Group: Applications/File
|
||||||
|
Provides: data(clamav) = empty
|
||||||
|
Conflicts: data(clamav) < empty
|
||||||
|
Conflicts: data(clamav) > empty
|
||||||
|
|
||||||
%package update
|
%package update
|
||||||
Summary: Auto-updater for the Clam Antivirus scanner data-files
|
Summary: Auto-updater for the Clam Antivirus scanner data-files
|
||||||
@ -72,7 +96,7 @@ Group: Applications/File
|
|||||||
Source200: freshclam-sleep
|
Source200: freshclam-sleep
|
||||||
Source201: freshclam.sysconfig
|
Source201: freshclam.sysconfig
|
||||||
Source202: clamav-update.cron
|
Source202: clamav-update.cron
|
||||||
Requires: clamav-data = %version-%release
|
Requires: clamav-filesystem = %version-%release
|
||||||
Requires(pre): /etc/cron.d
|
Requires(pre): /etc/cron.d
|
||||||
Requires(postun): /etc/cron.d
|
Requires(postun): /etc/cron.d
|
||||||
Requires(post): %__chown %__chmod
|
Requires(post): %__chown %__chmod
|
||||||
@ -83,6 +107,7 @@ Summary: Clam Antivirus scanner server
|
|||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: init(clamav-server)
|
Requires: init(clamav-server)
|
||||||
Requires: data(clamav)
|
Requires: data(clamav)
|
||||||
|
Requires: clamav-filesystem = %version-%release
|
||||||
Requires: clamav-lib = %version-%release
|
Requires: clamav-lib = %version-%release
|
||||||
|
|
||||||
%package server-sysv
|
%package server-sysv
|
||||||
@ -129,6 +154,9 @@ the virus database from OpenAntiVirus, but contains additional signatures
|
|||||||
(including signatures for popular polymorphic viruses, too) and is KEPT UP
|
(including signatures for popular polymorphic viruses, too) and is KEPT UP
|
||||||
TO DATE.
|
TO DATE.
|
||||||
|
|
||||||
|
%description filesystem
|
||||||
|
This package provides the filesystem structure and contains the
|
||||||
|
user-creation scripts required by clamav.
|
||||||
|
|
||||||
%description lib
|
%description lib
|
||||||
This package contains dynamic libraries shared between applications
|
This package contains dynamic libraries shared between applications
|
||||||
@ -141,7 +169,29 @@ build applications using clamav.
|
|||||||
%description data
|
%description data
|
||||||
This package contains the virus-database needed by clamav. This
|
This package contains the virus-database needed by clamav. This
|
||||||
database should be updated regularly; the 'clamav-update' package
|
database should be updated regularly; the 'clamav-update' package
|
||||||
ships a corresponding cron-job.
|
ships a corresponding cron-job. This package and the
|
||||||
|
'clamav-data-empty' package are mutually exclusive.
|
||||||
|
|
||||||
|
Use -data when you want a working (but perhaps outdated) virus scanner
|
||||||
|
immediately after package installation.
|
||||||
|
|
||||||
|
Use -data-empty when you are updating the virus database regulary and
|
||||||
|
do not want to download a >5MB sized rpm-package with outdated virus
|
||||||
|
definitions.
|
||||||
|
|
||||||
|
|
||||||
|
%description data-empty
|
||||||
|
This is an empty package to fulfill inter-package dependencies of the
|
||||||
|
clamav suite. This package and the 'clamav-data' package are mutually
|
||||||
|
exclusive.
|
||||||
|
|
||||||
|
Use -data when you want a working (but perhaps outdated) virus scanner
|
||||||
|
immediately after package installation.
|
||||||
|
|
||||||
|
Use -data-empty when you are updating the virus database regulary and
|
||||||
|
do not want to download a >5MB sized rpm-package with outdated virus
|
||||||
|
definitions.
|
||||||
|
|
||||||
|
|
||||||
%description update
|
%description update
|
||||||
This package contains programs which can be used to update the clamav
|
This package contains programs which can be used to update the clamav
|
||||||
@ -180,13 +230,12 @@ The SysV initscripts for clamav-milter.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b '.guys,please-read-the-compiler-warnings-before-doing-a-release.patch'
|
|
||||||
%patch1 -p1 -b .strncpy
|
|
||||||
|
|
||||||
%patch20 -p1 -b .user
|
|
||||||
%patch21 -p1 -b .path
|
%patch21 -p1 -b .path
|
||||||
%patch22 -p1 -b .initoff
|
%patch22 -p1 -b .initoff
|
||||||
%patch23 -p1 -b .visibility
|
%patch24 -p1 -b .private
|
||||||
|
%patch25 -p1 -b .open
|
||||||
|
%patch26 -p1 -b .nounrar
|
||||||
|
|
||||||
perl -pi -e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g;
|
perl -pi -e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g;
|
||||||
s!^#?(LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g;
|
s!^#?(LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g;
|
||||||
@ -202,15 +251,16 @@ perl -pi -e 's!^#(UpdateLogFile )!\1!g;' etc/freshclam.conf
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99"
|
CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99"
|
||||||
|
export LDFLAGS='-Wl,--as-needed'
|
||||||
|
# HACK: remove me, when configure uses $LIBS instead of $LDFLAGS for milter check
|
||||||
|
export LIBS='-lmilter -lpthread'
|
||||||
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
|
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
|
||||||
--enable-milter
|
--enable-milter --disable-static --disable-unrar
|
||||||
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
||||||
|
# No rpath
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
## HACK: ./configure checks if freshclam.conf/clamd.conf are existing
|
|
||||||
## in current filesystem and skips its installation then. Was introduced
|
|
||||||
## by 0.66.
|
|
||||||
perl -pi -e 's!^(s,\@INSTALL_(CLAMAV|FRESHCLAM)_CONF_TRUE\@),[^,]*,!\1,,!g;
|
|
||||||
s!^(s,\@INSTALL_(CLAMAV|FRESHCLAM)_CONF_FALSE\@),[^,]*,!\1,\#,!g' config.status
|
|
||||||
./config.status
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -240,11 +290,16 @@ install -d -m755 \
|
|||||||
${RPM_BUILD_ROOT}%_var/log \
|
${RPM_BUILD_ROOT}%_var/log \
|
||||||
${RPM_BUILD_ROOT}%milterstatedir \
|
${RPM_BUILD_ROOT}%milterstatedir \
|
||||||
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
||||||
${RPM_BUILD_ROOT}%_initrddir
|
${RPM_BUILD_ROOT}%_initrddir \
|
||||||
|
${RPM_BUILD_ROOT}%homedir/daily.inc
|
||||||
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%_sysconfdir/clamd.conf \
|
rm -f ${RPM_BUILD_ROOT}%_sysconfdir/clamd.conf \
|
||||||
${RPM_BUILD_ROOT}%_libdir/*.la
|
${RPM_BUILD_ROOT}%_libdir/*.la
|
||||||
|
|
||||||
|
for i in COPYING daily.{db,fp,hdb,info,ndb,pdb,zmd}; do
|
||||||
|
touch ${RPM_BUILD_ROOT}%homedir/daily.inc/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
## prepare the server-files
|
## prepare the server-files
|
||||||
mkdir _doc_server
|
mkdir _doc_server
|
||||||
@ -290,10 +345,7 @@ subst etc/clamd.conf /etc/clamd.d/milter.conf \
|
|||||||
|
|
||||||
|
|
||||||
cat <<EOF >$RPM_BUILD_ROOT%_sysconfdir/sysconfig/clamav-milter
|
cat <<EOF >$RPM_BUILD_ROOT%_sysconfdir/sysconfig/clamav-milter
|
||||||
## The '-blo' options might be usefully here -- especially for testing; see
|
CLAMAV_FLAGS='-lo -c /etc/clamd.d/milter.conf local:%milterstatedir/clamav.sock'
|
||||||
## "man 8 clamav-milter" for further options
|
|
||||||
CLAMAV_FLAGS='--max-children=2 -c /etc/clamd.d/milter.conf local:%milterstatedir/clamav.sock'
|
|
||||||
CLAMAV_USER='%milteruser'
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
install -p -m755 contrib/init/RedHat/clamav-milter $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
install -p -m755 contrib/init/RedHat/clamav-milter $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
||||||
@ -307,11 +359,16 @@ rm -rf "$RPM_BUILD_ROOT"
|
|||||||
|
|
||||||
## ------------------------------------------------------------
|
## ------------------------------------------------------------
|
||||||
|
|
||||||
%pre data
|
%pre filesystem
|
||||||
%__fe_groupadd 4 -r %username &>/dev/null || :
|
%__fe_groupadd 4 -r %username &>/dev/null || :
|
||||||
%__fe_useradd 4 -r -s /sbin/nologin -d %homedir -M \
|
%__fe_useradd 4 -r -s /sbin/nologin -d %homedir -M \
|
||||||
-c 'Clamav database update user' -g %username %username &>/dev/null || :
|
-c 'Clamav database update user' -g %username %username &>/dev/null || :
|
||||||
|
|
||||||
|
%postun filesystem
|
||||||
|
%__fe_userdel %username &>/dev/null || :
|
||||||
|
%__fe_groupdel %username &>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%post update
|
%post update
|
||||||
test -e %freshclamlog || {
|
test -e %freshclamlog || {
|
||||||
touch %freshclamlog
|
touch %freshclamlog
|
||||||
@ -319,10 +376,6 @@ test -e %freshclamlog || {
|
|||||||
%__chown root:%username %freshclamlog
|
%__chown root:%username %freshclamlog
|
||||||
}
|
}
|
||||||
|
|
||||||
%postun data
|
|
||||||
%__fe_userdel %username &>/dev/null || :
|
|
||||||
%__fe_groupdel %username &>/dev/null || :
|
|
||||||
|
|
||||||
%pre milter
|
%pre milter
|
||||||
%__fe_groupadd 5 -r %milteruser &>/dev/null || :
|
%__fe_groupadd 5 -r %milteruser &>/dev/null || :
|
||||||
%__fe_useradd 5 -r -s /sbin/nologin -d %milterstatedir -M \
|
%__fe_useradd 5 -r -s /sbin/nologin -d %milterstatedir -M \
|
||||||
@ -357,7 +410,7 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS TODO
|
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE
|
||||||
%doc docs/*.pdf
|
%doc docs/*.pdf
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_mandir/man[15]/*
|
%_mandir/man[15]/*
|
||||||
@ -376,9 +429,7 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%_includedir/*
|
%_includedir/*
|
||||||
%_libdir/*.*a
|
|
||||||
%_libdir/*.so
|
%_libdir/*.so
|
||||||
%dir %pkgdatadir
|
|
||||||
%pkgdatadir/template
|
%pkgdatadir/template
|
||||||
%pkgdatadir/clamd-gen
|
%pkgdatadir/clamd-gen
|
||||||
%_libdir/pkgconfig/*
|
%_libdir/pkgconfig/*
|
||||||
@ -386,14 +437,25 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
|
|
||||||
## -----------------------
|
## -----------------------
|
||||||
|
|
||||||
|
%files filesystem
|
||||||
|
%attr(-,%username,%username) %dir %homedir
|
||||||
|
%attr(-,%username,%username) %dir %homedir/daily.inc
|
||||||
|
%attr(-,root,root) %dir %pkgdatadir
|
||||||
|
|
||||||
|
## -----------------------
|
||||||
|
|
||||||
%files data
|
%files data
|
||||||
%defattr(-,%username,%username,-)
|
%defattr(-,%username,%username,-)
|
||||||
%dir %homedir
|
|
||||||
# use %%config to keep files which were updated by 'freshclam'
|
# use %%config to keep files which were updated by 'freshclam'
|
||||||
# already. Without this tag, they would be overridden with older
|
# already. Without this tag, they would be overridden with older
|
||||||
# versions whenever a new -data package is installed.
|
# versions whenever a new -data package is installed.
|
||||||
%config %verify(not size md5 mtime) %homedir/*.cvd
|
%config %verify(not size md5 mtime) %homedir/*.cvd
|
||||||
|
|
||||||
|
|
||||||
|
%files data-empty
|
||||||
|
%defattr(-,%username,%username,-)
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/main.cvd
|
||||||
|
|
||||||
## -----------------------
|
## -----------------------
|
||||||
|
|
||||||
%files update
|
%files update
|
||||||
@ -408,6 +470,16 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
|
|
||||||
%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog
|
%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog
|
||||||
|
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/COPYING
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.db
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.fp
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.hdb
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.info
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.ndb
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.pdb
|
||||||
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/daily.zmd
|
||||||
|
|
||||||
|
|
||||||
## -----------------------
|
## -----------------------
|
||||||
|
|
||||||
%files server
|
%files server
|
||||||
@ -415,7 +487,6 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
%doc _doc_server/*
|
%doc _doc_server/*
|
||||||
%_mandir/man[58]/clamd*
|
%_mandir/man[58]/clamd*
|
||||||
%_sbindir/*
|
%_sbindir/*
|
||||||
%dir %pkgdatadir
|
|
||||||
%pkgdatadir/clamd-wrapper
|
%pkgdatadir/clamd-wrapper
|
||||||
%dir %_sysconfdir/clamd.d
|
%dir %_sysconfdir/clamd.d
|
||||||
|
|
||||||
@ -448,6 +519,70 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.92-1
|
||||||
|
- updated to 0.92 (SECURITY):
|
||||||
|
- CVE-2007-6335 MEW PE File Integer Overflow Vulnerability
|
||||||
|
|
||||||
|
* Mon Oct 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.91.2-3
|
||||||
|
- remove RAR decompression code from source tarball because of
|
||||||
|
legal problems (resolves 334371)
|
||||||
|
- correct license tag
|
||||||
|
|
||||||
|
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 0.91.2-2
|
||||||
|
- Bump release for upgrade path.
|
||||||
|
|
||||||
|
* Sat Aug 25 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.2-1
|
||||||
|
- updated to 0.91.2 (SECURITY):
|
||||||
|
- CVE-2007-4510 DOS in RTF parser
|
||||||
|
- DOS in html normalizer
|
||||||
|
- arbitrary command execution by special crafted recipients in
|
||||||
|
clamav-milter's black-hole mode
|
||||||
|
- fixed an open(2) issue
|
||||||
|
|
||||||
|
* Tue Jul 17 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.1-0
|
||||||
|
- updated to 0.91.1
|
||||||
|
|
||||||
|
* Thu Jul 12 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91-1
|
||||||
|
- updated to 0.91
|
||||||
|
|
||||||
|
* Thu May 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.3-1
|
||||||
|
- updated to 0.90.3
|
||||||
|
- BR tcpd.h instead of tcp_wrappers(-devel) to make it build both
|
||||||
|
in FC6- and F7+
|
||||||
|
|
||||||
|
* Fri Apr 13 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.2-1
|
||||||
|
- [SECURITY] updated to 0.90.2; fixes CVE-2007-1745, CVE-2007-1997
|
||||||
|
|
||||||
|
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-2
|
||||||
|
- BR 'tcp_wrappers-devel' instead of plain 'tcp_wrappers'
|
||||||
|
|
||||||
|
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-1
|
||||||
|
- updated to 0.90.1
|
||||||
|
- updated %%doc list
|
||||||
|
|
||||||
|
* Sun Feb 18 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-1
|
||||||
|
- updated to final 0.90
|
||||||
|
- removed -visibility patch since fixed upstream
|
||||||
|
|
||||||
|
* Sun Feb 4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.3.rc3
|
||||||
|
- build with -Wl,-as-needed and cleaned up pkgconfig file
|
||||||
|
- removed old hack which forced installation of freshclam.conf; related
|
||||||
|
check was removed upstream
|
||||||
|
- removed static library
|
||||||
|
- removed %%changelog entries from before 2004
|
||||||
|
|
||||||
|
* Sat Feb 3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.2.rc3
|
||||||
|
- updated to 0.90rc3
|
||||||
|
- splitted mandatory parts from the data-file into a separate -filesystem
|
||||||
|
subpackage
|
||||||
|
- added a -data-empty subpackage to allow a setup where database is
|
||||||
|
updated per cron-job and user does not want to download the large
|
||||||
|
-data package with outdated virus definitations (#214949)
|
||||||
|
- %%ghost'ed the files downloaded by freshclam
|
||||||
|
|
||||||
|
* Tue Dec 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.7-1
|
||||||
|
- updated to 0.88.7
|
||||||
|
|
||||||
* Sun Nov 5 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.6-1
|
* Sun Nov 5 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.6-1
|
||||||
- updated to 0.88.6
|
- updated to 0.88.6
|
||||||
|
|
||||||
@ -724,83 +859,3 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|||||||
* Mon Feb 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.5
|
* Mon Feb 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.5
|
||||||
- added security fix for
|
- added security fix for
|
||||||
http://www.securityfocus.com/archive/1/353194/2004-02-06/2004-02-12/1
|
http://www.securityfocus.com/archive/1/353194/2004-02-06/2004-02-12/1
|
||||||
|
|
||||||
* Fri Nov 28 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.4
|
|
||||||
- fixed typo in README (sysconf.d vs. sysconf)
|
|
||||||
- make build on rhl8 succeed by adding '|| :' to %%check
|
|
||||||
|
|
||||||
* Tue Nov 18 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.3
|
|
||||||
- substitute 'User' in sample cfg-file also
|
|
||||||
- uncommented some cfg-options which are needed for a proper operation
|
|
||||||
- fixed typos in README (thanks to Michael Schwendt)
|
|
||||||
|
|
||||||
* Mon Nov 17 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.2
|
|
||||||
- fixed path of 'LocalSocket' and documented steps how to create it
|
|
||||||
- added a missing backslash at the configure-call
|
|
||||||
- do not package clamav-milter.8 manpage
|
|
||||||
- documented 'User' in the README
|
|
||||||
|
|
||||||
* Sat Nov 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.1
|
|
||||||
- updated to 0.65
|
|
||||||
- added gmp-devel buildrequires:
|
|
||||||
- changed installed databases from 'viruses.db*' to '*.cvb'
|
|
||||||
- made milter-build conditional; 0.65 is missing some files which would break the build else
|
|
||||||
- fixed typo (clamav-notify-server -> clamav-notify-servers)
|
|
||||||
|
|
||||||
* Fri Oct 31 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.60-0.fdr.5
|
|
||||||
- created -update subpackage and filled it with files from main and -data package
|
|
||||||
- set more reasonable default-values in the sample config-file
|
|
||||||
- made the README in -server more clear
|
|
||||||
- moved clamav-milter man-page into -milter subpackage
|
|
||||||
- use fedora-usermgmt
|
|
||||||
- renamed -daemon subpackage and related files to -server
|
|
||||||
- use abstract 'data(clamav)' notation for clamav-data dependencies
|
|
||||||
- use 'init(...)' requirements as placeholder for future -sysv/-minit subpackages
|
|
||||||
|
|
||||||
* Sat Aug 16 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.4
|
|
||||||
- backported clamav-sockwrite.c to C89
|
|
||||||
|
|
||||||
* Fri Aug 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.3
|
|
||||||
- updated Source0 URL
|
|
||||||
- fixed portuguese i18n-abbreviation
|
|
||||||
|
|
||||||
* Fri Jul 18 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.3
|
|
||||||
- use LSB compliant exit-codes in the init-script
|
|
||||||
- other init-script cleanups
|
|
||||||
|
|
||||||
* Tue Jul 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.2
|
|
||||||
- updated %%description
|
|
||||||
- removed README from %%doc-list
|
|
||||||
|
|
||||||
* Thu Jun 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.1
|
|
||||||
- disabled -milter subpackage; I do not get it to run :(
|
|
||||||
|
|
||||||
* Thu Jun 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.0.1
|
|
||||||
- updated to 0.60
|
|
||||||
- modernized usercreation
|
|
||||||
- added -milter subpackage
|
|
||||||
|
|
||||||
* Thu May 8 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.54-0.fdr.2
|
|
||||||
- added BUGS file
|
|
||||||
- moved clamd.8 man-page into daemon-subpackage
|
|
||||||
- some cosmetical cleanups
|
|
||||||
- removed config-patch; it was unused
|
|
||||||
- made some paths more fedora-compliant
|
|
||||||
- honor $RPM_OPT_FLAGS
|
|
||||||
- added clamav-notify-daemons script
|
|
||||||
- removed obsoleted %%socketdir
|
|
||||||
|
|
||||||
* Wed May 7 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.54-0.fdr.0.1
|
|
||||||
- splitted into additional -data/-daemon packages
|
|
||||||
- added clamav-sockwrite program
|
|
||||||
- updated to recent fedora policies
|
|
||||||
|
|
||||||
* Thu Nov 21 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0.54-1
|
|
||||||
- updated to 0.54
|
|
||||||
- updated config-patch
|
|
||||||
|
|
||||||
* Tue Oct 29 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0.52-1
|
|
||||||
- updated to 0.52
|
|
||||||
|
|
||||||
* Tue Sep 17 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
||||||
- Initial build.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user