On Tue 2009.08.18 at 16:44 +0200, Giovanni Bechis wrote:
> Stuart Henderson wrote:
> >Builds and the tested some basics on sparc64 and a bit more on amd64.
> >I'm not ecstatically happy about including sctp.h in files/ (and it makes
> >you wonder why they use autoconf at all if they don't get it to check
> >for things like this...) but since handling it differently would be a
> >rather intrusive patch to have in the ports tree, this is ok with me.
> >
> This patch is not so intrusive and doesn't use sctp.h from files but
> it copy it is post-extract phase.
>  Giovanni
 
[snip]

quick note: probably want to run update-patches before configure to get
the below correct.

cheers,
okan

> Index: patches/patch-zenmap_install_scripts_unix_su-to-zenmap_sh
> ===================================================================
> RCS file: 
> /cvs/ports/net/nmap/patches/patch-zenmap_install_scripts_unix_su-to-zenmap_sh,v
> retrieving revision 1.1
> diff -u -p -r1.1 patch-zenmap_install_scripts_unix_su-to-zenmap_sh
> --- patches/patch-zenmap_install_scripts_unix_su-to-zenmap_sh 17 Sep 2008 
> 18:09:54 -0000      1.1
> +++ patches/patch-zenmap_install_scripts_unix_su-to-zenmap_sh 18 Aug 2009 
> 14:40:07 -0000
> @@ -1,6 +1,6 @@
>  $OpenBSD: patch-zenmap_install_scripts_unix_su-to-zenmap_sh,v 1.1 2008/09/17 
> 18:09:54 kili Exp $
> ---- zenmap/install_scripts/unix/su-to-zenmap.sh.orig Fri Aug 29 01:32:36 2008
> -+++ zenmap/install_scripts/unix/su-to-zenmap.sh      Mon Sep 15 09:38:05 2008
> +--- zenmap/install_scripts/unix/su-to-zenmap.sh.orig Sun May  3 06:33:50 2009
> ++++ zenmap/install_scripts/unix/su-to-zenmap.sh      Tue Jul 21 20:11:45 2009
>  @@ -1,4 +1,4 @@
>  -#!/bin/bash
>  +#!/bin/sh
> @@ -12,14 +12,14 @@ $OpenBSD: patch-zenmap_install_scripts_u
>             if which kdesu >/dev/null 2>&1 ; then
>               SU_TO_ROOT_X=kdesu
>  -          elif test -x /usr/lib/kde4/libexec/kdesu ; then
> -+          elif test -x ${LOCALBASE}/lib/kde4/libexec/kdesu ; then
> ++          elif test -x /usr/local/lib/kde4/libexec/kdesu ; then
>               SU_TO_ROOT_X=kde4su
>             fi;
>           fi;
>         elif which kdesu >/dev/null 2>&1 ; then 
>           SU_TO_ROOT_X=kdesu
>  -      elif test -x /usr/lib/kde4/libexec/kdesu ; then
> -+      elif test -x ${LOCALBASE}/lib/kde4/libexec/kdesu ; then
> ++      elif test -x /usr/local/lib/kde4/libexec/kdesu ; then
>           SU_TO_ROOT_X=kde4su
>         elif which ktsuss >/dev/null 2>&1 ; then
>           SU_TO_ROOT_X=ktsuss
> @@ -28,7 +28,7 @@ $OpenBSD: patch-zenmap_install_scripts_u
>         gksu) gksu -u "$PRIV" "$COMMAND";;
>         kdesu) kdesu -u "$PRIV" "$COMMAND";;
>  -      kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
> -+      kde4su) ${LOCALBASE}/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
> ++      kde4su) /usr/local/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
>         ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
>     # As a last resort, open a new xterm use sudo/su
>         sdterm) xterm -e "sudo -u $PRIV $COMMAND";;

Reply via email to