FreeBSD Bugzilla – Attachment 131089 Details for
Bug 175120
[MAINTAINER] security/zenmap: Fixed su-to-zenmap.sh and zenmap-root.desktop, removed PKGNAMEPREFIX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
zenmap-6.25_1.patch
zenmap-6.25_1.patch (text/plain), 1.85 KB, created by
nemysis
on 2013-01-08 03:30:00 UTC
(
hide
)
Description:
zenmap-6.25_1.patch
Filename:
MIME Type:
Creator:
nemysis
Created:
2013-01-08 03:30:00 UTC
Size:
1.85 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/security/zenmap/Makefile ./Makefile >--- /usr/ports/security/zenmap/Makefile 2013-01-05 00:40:52.000000000 +0100 >+++ ./Makefile 2013-01-08 04:13:03.000000000 +0100 >@@ -3,9 +3,9 @@ > > PORTNAME= zenmap > PORTVERSION= 6.25 >+PORTREVISION= 1 > CATEGORIES= security ipv6 > MASTER_SITES= http://nmap.org/dist/ >-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > DISTNAME= nmap-${PORTVERSION} > > MAINTAINER= nemysis@gmx.ch >@@ -37,7 +37,13 @@ > PLIST_SUB+= NLS="@comment " > .endif > >+post-extract: >+ @${RM} -f ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh >+ @${CP} -a ${FILESDIR}/pc-su ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh >+ > post-patch: >+ @${REINPLACE_CMD} -e 's|su-to-zenmap.sh %F|su-to-zenmap.sh ${PORTNAME}|' \ >+ ${WRKSRC}/install_scripts/unix/zenmap-root.desktop > @${REINPLACE_CMD} \ > -e '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py > @${REINPLACE_CMD} \ >diff -ruN --exclude=CVS /usr/ports/security/zenmap/files/pc-su ./files/pc-su >--- /usr/ports/security/zenmap/files/pc-su 1970-01-01 01:00:00.000000000 +0100 >+++ ./files/pc-su 2012-12-03 17:03:57.000000000 +0100 >@@ -0,0 +1,34 @@ >+#!/bin/sh >+# Wrapper script which finds the right "su" program >+# to use for graphical root execution >+ >+if [ `id -r -u` != "0" ] ; then >+ VARS="`echo $@`" >+ >+ # Try qsu first, should always be the default >+ which qsu >/dev/null 2>/dev/null >+ if [ $? -eq 0 ] ; then >+ qsu $VARS >+ exit $? >+ fi >+ >+ # Now try gksu >+ which gksu >/dev/null 2>/dev/null >+ if [ $? -eq 0 ] ; then >+ gksu -a "$VARS" >+ exit $? >+ fi >+ >+ # Lastly we have kdesu >+ which kdesu >/dev/null 2>/dev/null >+ if [ $? -eq 0 ] ; then >+ kdesu -t -c "$VARS" >+ exit $? >+ fi >+ >+ # If no utility could be found... >+ echo "No graphical switch-user utility found!" >+ exit 1 >+else >+ ${@} >+fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 175120
: 131089