Hi!

I'm not subscribed to the list, so please Cc: me on replies.

When building clamav-0.90-20070214 I needed to change the following
things to make it work for me.

I'm not sure if the LIBS change is needed, but I'm still using an
older OpenPKG installation (based on 2.5). Without this change it I
get some compile errors like:
output.c:(.text+0x27a): undefined reference to `libintl_gettext'


But the clamd.conf substitution has to be changed because LogTime
and FixStaleSocket now require boolean arguments.

During configure there is an error because "bc" and "pkg-config" are
not found, but this does no harm, the result ist still ok.

Thomas


--- clamav.spec.orig    2007-02-14 06:54:23.000000000 +0100
+++ clamav.spec 2007-02-14 17:54:29.000000000 +0100
@@ -84,6 +84,7 @@
     CFLAGS="%{l_cflags -O}" \
     CPPFLAGS="%{l_cppflags}" \
     LDFLAGS="%{l_ldflags}" \
+    LIBS="-lintl -liconv" \
     GREP="grep" \
     ./configure \
         --prefix=%{l_prefix} \
@@ -121,10 +122,10 @@
     %{l_shtool} install -c -m 644 \
         -e 's;^\(Example\);#\1;' \
         -e 's;^#\(LogFile\) /.*;\1 %{l_prefix}/var/clamav/clamd.log;' \
-        -e 's;^#\(LogTime\).*;\1;' \
+        -e 's;^#\(LogTime.*\);\1;' \
         -e 's;^#\(PidFile\).*;\1 %{l_prefix}/var/clamav/clamd.pid;' \
         -e 's;^\(LocalSocket\).*;\1 %{l_prefix}/var/clamav/clamd.sock;' \
-        -e 's;^#\(FixStaleSocket\).*;\1;' \
+        -e 's;^#\(FixStaleSocket.*\);\1;' \
         -e 's;^#\(DatabaseDirectory\).*;\1 %{l_prefix}/share/clamav;' \
         -e 's;^#\(User\).*;\1 %{l_rusr};' \
         etc/clamd.conf \


-- 
[EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrück - Registereintrag: Amtsgericht Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to