From 5fe8bcd9420f90f7876ce665bb7f08c56e793e94 Mon Sep 17 00:00:00 2001 From: Foxfair Hu Date: Wed, 14 May 2003 07:42:58 +0000 Subject: [PATCH] Submitted by: Patrick MARIE Unbreak netdude in -current and bump PORTREVISION. --- net/netdude/Makefile | 9 ++++++++- .../files/patch-protocols-fddi::nd_fddi_callbacks.c | 4 ++-- net/netdude/files/protocols-fddi::nd_fddi.h.patch | 11 +++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 net/netdude/files/protocols-fddi::nd_fddi.h.patch diff --git a/net/netdude/Makefile b/net/netdude/Makefile index 94e7426a4112..e2a6afb4a1ba 100644 --- a/net/netdude/Makefile +++ b/net/netdude/Makefile @@ -8,6 +8,7 @@ PORTNAME= netdude PORTVERSION= 0.3.3 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -29,6 +30,12 @@ INSTALL_SHLIB= yes MAN1= netdude.1 +.include + +.if ${OSVERSION} >= 500000 +EXTRA_PATCHES= ${FILESDIR}/protocols-fddi::nd_fddi.h.patch +.endif + post-patch: @${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|g" \ -e "s|glib-config|${GLIB_CONFIG}|g" ${WRKSRC}/configure @@ -43,4 +50,4 @@ post-patch: -e "s|->un.echo.sequence|->icmp_seq|g" \ ${WRKSRC}/protocols/icmp/nd_icmp.c -.include +.include diff --git a/net/netdude/files/patch-protocols-fddi::nd_fddi_callbacks.c b/net/netdude/files/patch-protocols-fddi::nd_fddi_callbacks.c index deccca6b52cb..a54de196327f 100644 --- a/net/netdude/files/patch-protocols-fddi::nd_fddi_callbacks.c +++ b/net/netdude/files/patch-protocols-fddi::nd_fddi_callbacks.c @@ -1,11 +1,11 @@ --- protocols/fddi/nd_fddi_callbacks.c.orig Wed Nov 20 21:37:07 2002 +++ protocols/fddi/nd_fddi_callbacks.c Wed Nov 20 21:38:04 2002 -@@ -22,7 +22,9 @@ +@@ -22,7 +22,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include - #include +-#include +#define FDDI_K_ALEN 6 #include diff --git a/net/netdude/files/protocols-fddi::nd_fddi.h.patch b/net/netdude/files/protocols-fddi::nd_fddi.h.patch new file mode 100644 index 000000000000..33915ad993cc --- /dev/null +++ b/net/netdude/files/protocols-fddi::nd_fddi.h.patch @@ -0,0 +1,11 @@ +--- protocols/fddi/nd_fddi.h.orig Tue May 13 10:34:37 2003 ++++ protocols/fddi/nd_fddi.h Tue May 13 10:40:53 2003 +@@ -26,7 +26,7 @@ + #ifndef __nd_fddi_h + #define __nd_fddi_h + +-#include ++#include + + #include + #include