View | Details | Raw Unified | Return to bug 175120
Collapse All | Expand All

(-)./Makefile (-1 / +7 lines)
Lines 3-11 Link Here
3
3
4
PORTNAME=	zenmap
4
PORTNAME=	zenmap
5
PORTVERSION=	6.25
5
PORTVERSION=	6.25
6
PORTREVISION=	1
6
CATEGORIES=	security ipv6
7
CATEGORIES=	security ipv6
7
MASTER_SITES=	http://nmap.org/dist/
8
MASTER_SITES=	http://nmap.org/dist/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
DISTNAME=	nmap-${PORTVERSION}
9
DISTNAME=	nmap-${PORTVERSION}
10
10
11
MAINTAINER=	nemysis@gmx.ch
11
MAINTAINER=	nemysis@gmx.ch
Lines 37-43 Link Here
37
PLIST_SUB+=	NLS="@comment "
37
PLIST_SUB+=	NLS="@comment "
38
.endif
38
.endif
39
39
40
post-extract:
41
	@${RM} -f ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
42
	@${CP} -a ${FILESDIR}/pc-su ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
43
40
post-patch:
44
post-patch:
45
	@${REINPLACE_CMD} -e 's|su-to-zenmap.sh %F|su-to-zenmap.sh ${PORTNAME}|' \
46
		${WRKSRC}/install_scripts/unix/zenmap-root.desktop
41
	@${REINPLACE_CMD} \
47
	@${REINPLACE_CMD} \
42
		-e '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py
48
		-e '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py
43
	@${REINPLACE_CMD} \
49
	@${REINPLACE_CMD} \
(-)./files/pc-su (+34 lines)
Line 0 Link Here
1
#!/bin/sh
2
# Wrapper script which finds the right "su" program
3
# to use for graphical root execution
4
5
if [ `id -r -u` != "0" ] ; then
6
	VARS="`echo $@`"
7
	
8
	# Try qsu first, should always be the default
9
        which qsu >/dev/null 2>/dev/null
10
        if [ $? -eq 0 ] ; then
11
           qsu $VARS
12
           exit $? 
13
        fi
14
15
	# Now try gksu
16
        which gksu >/dev/null 2>/dev/null
17
        if [ $? -eq 0 ] ; then
18
           gksu -a "$VARS"
19
           exit $? 
20
        fi
21
22
	# Lastly we have kdesu
23
        which kdesu >/dev/null 2>/dev/null
24
        if [ $? -eq 0 ] ; then
25
           kdesu -t -c "$VARS"
26
           exit $? 
27
        fi
28
	
29
	# If no utility could be found...
30
	echo "No graphical switch-user utility found!"
31
	exit 1
32
else
33
	${@}
34
fi

Return to bug 175120