ports/151473: [maintainer-update] www/squidguard: fix ldap support
Guido Falsi
mad at madpilot.net
Fri Oct 15 10:50:05 UTC 2010
>Number: 151473
>Category: ports
>Synopsis: [maintainer-update] www/squidguard: fix ldap support
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 15 10:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Guido Falsi
>Release: FreeBSD 8.1-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.1-STABLE FreeBSD 8.1-STABLE #22: Tue Sep 21 19:13:06 CEST 2010 root at megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64
>Description:
Fix ldap support by helping the port's configure script find lda libraries.
Reported by: cyx on ports at freebsd.org
While I'm here stop the port from echoing ${ECHO_MSG} commands to the terminal.
Bump port version since this can impact availability of ldap functionality.
>How-To-Repeat:
Try to build the port with ldap support enabled, in many cases the
configure script will disble support because it can't find ldap
libraries.
>Fix:
diff -ruN squidguard.old/Makefile squidguard/Makefile
--- squidguard.old/Makefile 2010-10-14 17:09:46.710425824 +0200
+++ squidguard/Makefile 2010-10-14 17:31:42.605581442 +0200
@@ -7,7 +7,7 @@
PORTNAME= squidGuard
PORTVERSION= 1.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.squidguard.org/Downloads/
@@ -25,7 +25,7 @@
--with-sg-logdir=${LOGDIR} \
--exec-prefix=${PREFIX}
-CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${PREFIX}/include"
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${PREFIX}/include" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CFGINPUT= ${.CURDIR}/files/sgcfg.in
@@ -118,7 +118,7 @@
# Create sample configuration file
#
@if [ ! -f "${PREFIX}/etc/squid/${PORTNAME}.conf" ] ; then \
- ${ECHO_MSG} "===> Installing sample configuration file" ; \
+ @${ECHO_MSG} "===> Installing sample configuration file" ; \
BLACKLIST_DIRS=`(cd ${DATADIR} && ${FIND} . -type d | \
${SED} '/^\.$$/d; s/^\.\//!/' | ${XARGS} ${ECHO_CMD})`; \
for I in `${ECHO_CMD} $${BLACKLIST_DIRS} | ${SED} 's/!//g'`; do \
@@ -139,9 +139,9 @@
${PREFIX}/etc/squid/${PORTNAME}.conf.sample ; \
${CHOWN} ${SQUID_UID}:${SQUID_GID} \
${PREFIX}/etc/squid/${PORTNAME}.conf.sample ; \
- ${ECHO_MSG} " -> Sample configuration file installed in: ${PREFIX}/etc/squid" ; \
+ @${ECHO_MSG} " -> Sample configuration file installed in: ${PREFIX}/etc/squid" ; \
else \
- ${ECHO_MSG} "===> Existing configuration file found - sample not installed" ; \
+ @${ECHO_MSG} "===> Existing configuration file found - sample not installed" ; \
fi
#
@@ -154,9 +154,9 @@
${PREFIX}/etc/squid/${PORTNAME}.conf.sample -C all ; \
${CHOWN} -R ${SQUID_UID}:${SQUID_GID} ${DATADIR} ; \
${FIND} ${DATADIR} -type f -name *.db -exec ${CHMOD} 660 {} \; ; \
- ${ECHO_MSG} " -> Blacklist databases installed in: ${DATADIR}"
+ @${ECHO_MSG} " -> Blacklist databases installed in: ${DATADIR}"
.else
- ${ECHO_MSG} "===> Existing configuration file found - blacklist databases not created"
+ @${ECHO_MSG} "===> Existing configuration file found - blacklist databases not created"
.endif
post-install:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list