ports/76593: Fix installation of security/metasploit

Yonatan onatan at gmail.com
Sun Jan 23 07:10:26 UTC 2005


>Number:         76593
>Category:       ports
>Synopsis:       Fix installation of security/metasploit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 23 07:10:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Yonatan
>Release:        5.0
>Organization:
>Environment:
FreeBSD run.run.run.to.the.cities.of.the.future 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Aug 28 21:09:30 IDT 2003     root@:/usr/obj/usr/src/sys/SERVER  i386
>Description:
The maintainer of this one was really silly. How could he have missed that, I wonder...
The entire package is cp'ed to ${DATADIR} and then the perl scripts
are linked to from ${PREFIX}/bin, but the link is made to the wrong
location, so it never worked.
>How-To-Repeat:
cd /usr/ports/security/metasploit ; make install clean
msfconsole
msfconsole: command not found

>Fix:

--- metasploit.orig/Makefile Wed Jan 12 05:52:42 2005
+++ metasploit/Makefile     Sun Jan 23 08:52:04 2005
@@ -31,7 +31,7 @@
        ${MKDIR} ${DATADIR}
        ${CP} -Rp ${WRKSRC}/ ${DATADIR}
 .      for i in msfcli msfconsole msfdldebug msfelfscan msfencode msflogdump msfpayload msfpayload.cgi msfpescan msfupdate msfweb
-               ${LN} -s ${WRKSRC}/$i ${PREFIX}/bin/
+               ${LN} -s ${DATADIR}/$i ${PREFIX}/bin/
 .      endfor

 .include <bsd.port.post.mk>

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



More information about the freebsd-ports-bugs mailing list