Bug 174288 - www/squidclamav: A squidclamav.so is not made and a location of squidclamav.conf is /etc.
Summary: www/squidclamav: A squidclamav.so is not made and a location of squidclamav.c...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-09 04:20 UTC by Kazuhiro Kinugawa
Modified: 2016-01-03 21:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kazuhiro Kinugawa 2012-12-09 04:20:00 UTC
- A squidclamav.so is not made.
- A location of squidclamav.conf in binary is not "{PREFIX}/etc/c-icap" but "/etc".

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
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-09 17:15:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Carlo Strub freebsd_committer freebsd_triage 2014-09-11 20:03:14 UTC
Is this PR still relevant?
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2016-01-03 21:05:18 UTC
Checked, squidclamav.so is generated.