Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2012 04:12:33 GMT
From:      Kazuhiro Kinugawa <Kazuhiro.Kinugawa@outlook.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/174288: A squidclamav.so is not made and a location of squidclamav.conf is /etc.
Message-ID:  <201212090412.qB94CX6J052942@red.freebsd.org>
Resent-Message-ID: <201212090420.qB94K0PM058885@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174288
>Category:       ports
>Synopsis:       A squidclamav.so is not made and a location of squidclamav.conf is /etc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 09 04:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kazuhiro Kinugawa
>Release:        9.0R
>Organization:
>Environment:
yudohu# uname -a
FreeBSD xxxx 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
- A squidclamav.so is not made.
- A location of squidclamav.conf in binary is not "{PREFIX}/etc/c-icap" but "/etc".
>How-To-Repeat:
If you build a www/squidclamav, squidclamav.so does not exist in /usr/local/lib/c_icap.

#cd /usr/ports/www/squidclamav
#make && make install
#ll /usr/local/lib/c_icap


#strings squidclamav.a | grep squidclamav.conf
/etc/squidclamav.conf
>Fix:
Copy an attached patch to /usr/ports.
Run as following.
#patch < squidclamav.20121209.patch

or

Modify a Makefile as followings.

CONFIGURE_ARGS+=       --enable-static \
вн
CONFIGURE_ARGS+=       --enable-shared --enable-static \

post-patch:
        @${REINPLACE_CMD} -e 's|CFGDIR=.*|CFGDIR="${PREFIX}/etc/c-icap"|g' \
                ${WRKSRC}/configure.in ${WRKSRC}/configure
        @${REINPLACE_CMD} -e 's|/etc/squidclamav.conf|${PREFIX}/etc/c\\-icap/squidclamav.conf|g' \
                ${WRKSRC}/doc/squidclamav.1
вн
post-patch:
        @${REINPLACE_CMD} -e 's|CFGDIR=.*|CFGDIR="${PREFIX}/etc/c-icap"|g' \
                ${WRKSRC}/configure.in ${WRKSRC}/configure
        @${REINPLACE_CMD} -e 's|/etc/squidclamav.conf|${PREFIX}/etc/c\\-icap/squidclamav.conf|g' \
                ${WRKSRC}/doc/squidclamav.1 ${WRKSRC}/src/squidclamav.h

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212090412.qB94CX6J052942>