[clamav-users] configure packaging problem
Zetan Drableg
zetan.drableg at gmail.com
Fri Oct 20 21:36:12 UTC 2017
Hi, I'm building and packaging clamav in a RPM for distribution to some
systems without EPEL access.
While it installs ok, the default paths are absolute paths of my build
server, not of the client system.
tar xvzf clamav-0.99.2.tar.gz
cd clamav-0.99.2
./configure --prefix="/usr" --with-dbdir=/var/lib/clamav
make -j 4
make install DESTDIR=$OUT
bundle as rpm with FPM
fpm \
--input-type dir \
--output-type rpm \
--name "clamav" \
--package "$OUT/../" \
--version "0.99.2-$BUILD" \
--iteration xyz_$BUILD \
--rpm-user root \
--rpm-group root \
--description "ClamAV 0.99.2" \
--prefix / \
-C "$OUT" \
-a x86_64 \
usr
freshclam
ERROR: Can't open/parse the config file
/var/bamboo/xml-data/build-dir/CLAM-CLAMAV-JOB1/out/etc/freshclam.conf
/usr/bin/freshclam --config-file=/etc/freshclam.conf
works as expected
Any tips which configure option controls default path to freshclam.conf?
Thanks
Zetan
More information about the clamav-users
mailing list