Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2003 20:11:23 +0200
From:      Kirill Ponomarew <ponomarew@oberon.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/52622: Update nast (maintainer): 0.1.7d -> 0.1.7e
Message-ID:  <E19JH0l-0009ls-00@voodoo.oberon.net>
Resent-Message-ID: <200305231820.h4NIK3M4021977@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         52622
>Category:       ports
>Synopsis:       Update nast (maintainer): 0.1.7d -> 0.1.7e
>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:   Fri May 23 11:20:02 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kirill Ponomarew
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Oberon.net 
>Environment:
 
        
>Description:
Update nast: 0.1.7d -> 0.1.7e

- Set promisc mode as default in sniffer
- Fixed a serious memory lack bug in map_lan()
- now it compiles on sparc64 

>How-To-Repeat:
>Fix:
diff -ruN nast.orig/Makefile nast/Makefile
--- nast.orig/Makefile	Sun Apr 27 18:41:53 2003
+++ nast/Makefile	Fri May 23 20:05:37 2003
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	nast
-PORTVERSION=	0.1.7d
+PORTVERSION=	0.1.7e
 CATEGORIES=	net
 MASTER_SITES=	http://nast.berlios.de/src/
 DISTNAME=	${PORTNAME}-${PORTVERSION}
@@ -19,6 +19,7 @@
 LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet-config
 
 MAN8=		nast.8
+DOC_FILES=	README
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
@@ -36,11 +37,18 @@
 	@${ECHO_MSG} ""
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
+		${WRKSRC}/configure
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8/
+.ifndef (NOPORTDOCS)
+	@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+.for doc in ${DOC_FILES}
+	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
 
 post-install:
 	${CHMOD} 0755 ${PREFIX}/bin/${PORTNAME}
diff -ruN nast.orig/distinfo nast/distinfo
--- nast.orig/distinfo	Sun Apr 27 18:41:53 2003
+++ nast/distinfo	Fri May 23 20:07:48 2003
@@ -1 +1 @@
-MD5 (nast-0.1.7d.tar.gz) = 9470ca94be6cd7a359212f1d5888b58e
+MD5 (nast-0.1.7e.tar.gz) = 76471efb15a328fb3cc090bbf7915316
diff -ruN nast.orig/files/patch-Makefile.in nast/files/patch-Makefile.in
--- nast.orig/files/patch-Makefile.in	Fri May  9 21:21:34 2003
+++ nast/files/patch-Makefile.in	Thu Jan  1 01:00:00 1970
@@ -1,11 +0,0 @@
---- Makefile.in.orig	Sat May 10 02:15:34 2003
-+++ Makefile.in	Sat May 10 02:15:43 2003
-@@ -7,7 +7,7 @@
- CPPFLAGS    = @CPPFLAGS@   
- LDFLAGS     = @LDFLAGS@
- LIBS        = @LIBS@  
--DEFS        = -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
-+DEFS        = -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
- INSTALL     = @INSTALL@
- 
- prefix      = @prefix@
diff -ruN nast.orig/files/patch-configure nast/files/patch-configure
--- nast.orig/files/patch-configure	Sat May 10 00:30:14 2003
+++ nast/files/patch-configure	Thu Jan  1 01:00:00 1970
@@ -1,71 +0,0 @@
---- configure.orig	Wed Apr 23 20:24:51 2003
-+++ configure	Sat May 10 02:19:00 2003
-@@ -252,7 +252,7 @@
- #
- # Initializations.
- #
--ac_default_prefix=/usr/local
-+ac_default_prefix=${PREFIX}
- ac_config_libobj_dir=.
- cross_compiling=no
- subdirs=
-@@ -273,7 +273,7 @@
- PACKAGE_BUGREPORT='embyte@madlab.it'
- 
- ac_unique_file="main.c"
--ac_default_prefix=/usr/local
-+ac_default_prefix=${PREFIX}
- # Factoring default headers for most tests.
- ac_includes_default="\
- #include <stdio.h>
-@@ -320,11 +320,11 @@
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- cache_file=/dev/null
--exec_prefix=NONE
-+exec_prefix=${PREFIX}
- no_create=
- no_recursion=
--prefix=NONE
--program_prefix=NONE
-+prefix=${PREFIX}
-+program_prefix=${PREFIX}
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
-@@ -1157,7 +1157,7 @@
- # Let the site file select an alternate cache file if it wants to.
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
--  if test "x$prefix" != xNONE; then
-+  if test "x$prefix" != x${PREFIX}; then
-     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
-   else
-     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
-@@ -1443,17 +1443,6 @@
- 	;;
- esac
- 
--
--################
--# Setup prefix #
--################
--
--
--if test "$prefix" = "NONE"; then
--   prefix="/usr/local"
--   fi
--
--
- #######################
- # Checks for compiler #
- #######################
-@@ -5354,7 +5343,7 @@
- O.S. .......... : `uname -rs` (`uname -n`)
- COMPILER ...... : ${CC}
- CFLAGS ........ : ${CFLAGS}
--DEFINES ....... : -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
-+DEFINES ....... : -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
- CPPFLAGS ...... : ${CPPFLAGS}
- LDFLAGS ....... : ${LDFLAGS}
- LIBS .......... : ${LIBS}
diff -ruN nast.orig/pkg-plist nast/pkg-plist
--- nast.orig/pkg-plist	Sun Apr 27 18:41:53 2003
+++ nast/pkg-plist	Fri May 23 20:05:52 2003
@@ -1 +1,2 @@
 bin/nast
+%%PORTDOCS%%%%DOCSDIR%%/README
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19JH0l-0009ls-00>