ports/174288: A squidclamav.so is not made and a location of squidclamav.conf is /etc.

Kazuhiro Kinugawa Kazuhiro.Kinugawa at outlook.com
Sun Dec 9 04:20:00 UTC 2012


>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 at 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:


More information about the freebsd-ports-bugs mailing list