ClamAV RPM Problem

Casey Price linuxproject at aws-sj.com
Sat Jan 17 20:05:24 UTC 2004


I'm building my own rpm for ClamAV, but am having a few issues. I am able
to successfully create the rpm and run it, but when I am building the rpm
it creates /etc/clamav.conf and /usr/share/clamav/, which I don't see why
it would during the creation of an rpm. Then when I go and execute the rpm
it doesn't create /etc/clamav.conf and /usr/share/clamav, but it should.
Any ideas? Below is the SPEC file:

Summary    : A free opensource Anti-Virus client for Unix-based systems.
Name       : clamav
Version    : 0.65
Release    : apx
License    : GPL
Group      : Applications/File
Packager   : Casey Price <linuxproject at aws-sj.com>
Source0    : clamav-0.65.tar.gz
URL        : http://www.clamav.net/
BuildRoot  : %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Clam AntiVirus is an anti-virus toolkit for UNIX. The main purpose of this
software is the integration with mail servers (attachment scanning). The
package provides a flexible and scalable multi-threaded daemon, a command
line scanner, and a tool for automatic updating via Internet. The programs
are based on a shared library distributed with the Clam AntiVirus package,
which you can use with your own software. The virus database is based on
the virus database from OpenAntiVirus, but contains additional signatures
(including signatures for popular polymorphic viruses, too) and is KEPT UP
TO DATE.
%prep
%setup -q

%build
%configure --disable-clamav
make %{_smp_mflags}

%install
%makeinstall

%clean
rm -rf "$RPM_BUILD_ROOT"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README TODO
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/*.*a
%{_libdir}/*.so
%{_datadir}/*
%{_sbindir}/*
%{_includedir}/*
## -----------------------

%changelog
* Fri Jan 16 2004 Casey Price <linuxproject at aws-sj.com>
- Bug Fix release.
* Wed Jan 07 2004 Casey Price <linuxproject at aws-sj.com>
- Initial RPM release.

-- 
Casey Price






More information about the devel mailing list