ports/96596: [PATCH] Remove compat3 dependency from uvscan

Luiz Otavio Souza luiz at aonet.com.br
Mon May 1 15:20:20 UTC 2006


>Number:         96596
>Category:       ports
>Synopsis:       [PATCH] Remove compat3 dependency from uvscan
>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:   Mon May 01 15:20:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Luiz Otavio Souza
>Release:        7-CURRENT
>Organization:
>Environment:
FreeBSD loos.br 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu Apr  6 18:10:49 BRT 2006     root at loos.br:/usr/src/sys/i386/compile/loos  i386

>Description:
The original port make use of compat3 wich is broken.

The following patch remove the compat3 dependency from port.

Since the uvscan work fine with libc.so.6 (instead of libc.so.3) i am using /etc/libmap.conf to runnig uvscan without installing compat3.


--- Makefile.orig       Mon May  1 12:03:06 2006
+++ Makefile    Mon May  1 12:11:23 2006
@@ -17,9 +17,6 @@
 COMMENT=       Evaluation version of a DOS/Windows/Linux file virus scanner

 RUN_DEPENDS+=  ${LOCALBASE}/sbin/update_dat:${PORTSDIR}/security/uvscan-dat
-# misc/compat3x is forbidden, but if it is compiled into the system
-# we may still be good to go.
-LIB_DEPENDS+=  c.3:${PORTSDIR}/misc/compat3x
 LIB_DEPENDS+=  m.2:${PORTSDIR}/misc/compat4x

 ONLY_FOR_ARCHS=                i386
@@ -62,5 +59,9 @@
 post-install:
        ${LN} -sf ${PREFIX}/lib/libbsdfv.so.4 \
                ${PREFIX}/lib/libbsdfv.so
+       @if [ -z "`${GREP} ${PREFIX}/libexec/uvscan/uvscan /etc/libmap.conf`" ]; then \
+               echo "[${PREFIX}/libexec/uvscan/uvscan]" >> /etc/libmap.conf ; \
+               echo "libc.so.3 libc.so.6" >> /etc/libmap.conf ; \
+       fi

 .include <bsd.port.mk>

>How-To-Repeat:

>Fix:
# cd /usr/ports/security/vscan
# patch < Makefile.patch
# make install clean

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



More information about the freebsd-ports-bugs mailing list