Version: 0.87-1
reopen 314914
thanks
This Bug is still not fixed for me, because there is no sendmail but
nullmailer on my system.
Wouldn't it be better not to detect sendmail's version via command line
but from any header inclusion?
The attached patch takes the version of the package libmilter-dev as the
version of sendmail. Since libmilter-dev is in clamav's build-deps this
should provide a more reliable way of detecting the sendmail version -
even if it's an ugly hack too. :)
Yours
Micha
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages clamav depends on:
ii clamav-freshclam [clamav-data 0.87-1
ii libc6 2.3.5-6
ii libclamav1 0.87-1
ii zlib1g 1:1.2.3-4
Versions of packages clamav recommends:
ii arj 3.10.22-1
ii unzoo 4.4-4
-- no debconf information
diff -urN clamav-0.87.debian/debian/libmilter-version.sh
clamav-0.87/debian/libmilter-version.sh
--- clamav-0.87.debian/debian/libmilter-version.sh 1970-01-01
01:00:00.000000000 +0100
+++ clamav-0.87/debian/libmilter-version.sh 2005-09-24 16:48:03.593242568
+0200
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+dpkg -s libmilter-dev | sed -n '/^Version:/s/-[^-]*$//p'
diff -urN clamav-0.87.debian/debian/rules clamav-0.87/debian/rules
--- clamav-0.87.debian/debian/rules 2005-09-24 16:54:55.845570688 +0200
+++ clamav-0.87/debian/rules 2005-09-24 17:04:02.027538408 +0200
@@ -52,9 +52,9 @@
dh_testdir
# Add here commands to configure the package.
ifeq ($(HAVE_CURL),yes)
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
--disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav
--with-sendmail=/usr/sbin/sendmail --enable-milter --disable-clamuko
--with-tcpwrappers --with-gnu-ld --with-libcurl --with-dns ${DEBUG_OPTS}
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
--disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav
--with-sendmail='/bin/sh $(CURDIR)/debian/libmilter-version.sh' --enable-milter
--disable-clamuko --with-tcpwrappers --with-gnu-ld --with-libcurl --with-dns
${DEBUG_OPTS}
else
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
--disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav
--with-sendmail=/usr/sbin/sendmail --enable-milter --disable-clamuko
--with-tcpwrappers --with-gnu-ld --without-libcurl --with-dns ${DEBUG_OPTS}
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
--disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav
--with-sendmail='/bin/sh $(CURDIR)/debian/libmilter-version.sh' --enable-milter
--disable-clamuko --with-tcpwrappers --with-gnu-ld --without-libcurl --with-dns
${DEBUG_OPTS}
endif
build: build-stamp