From tkato432@yahoo.com  Wed Mar 19 18:30:18 2014
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 5EB0B4A8
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 18:30:18 +0000 (UTC)
Received: from omta01.auone-net.jp (mail-or0-f67.auone-net.jp [106.187.230.67])
	by mx1.freebsd.org (Postfix) with ESMTP id 09EA5BE6
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 18:30:18 +0000 (UTC)
Received: from coppermine.my.domain (ZT028161.ppp.dion.ne.jp [59.128.28.161])
	by omta01.auone-net.jp (au one net mail) with ESMTP id D394B98000B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 20 Mar 2014 03:30:08 +0900 (JST)
Message-Id: <20140320032531.70524b647b7b18d590be3888@yahoo.com>
Date: Thu, 20 Mar 2014 03:25:31 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: converters/ytnef: Fix build on -current

>Number:         187757
>Category:       ports
>Synopsis:       converters/ytnef: Fix build on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 18:40:06 UTC 2014
>Closed-Date:    Wed Apr 23 01:16:16 UTC 2014
>Last-Modified:  Wed Apr 23 01:20:00 UTC 2014
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix build on -current
- Add LICENSE

New file:
files/patch-src__ytnef__main.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/converters/ytnef/Makefile converters/ytnef/Makefile
--- /usr/ports/converters/ytnef/Makefile	2014-03-01 06:21:17.000000000 +0900
+++ converters/ytnef/Makefile	2014-03-20 00:00:00.000000000 +0900
@@ -10,24 +10,27 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Unpack data in MS Outlook TNEF format
 
-OPTIONS_DEFINE=	DOCS
+LICENSE=	GPLv2
 
 LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
 RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
 
-USES=		perl5
+USES=		perl5 shebangfix
+SHEBANG_FILES=	src/ytnef/*.pl
 USE_PERL5=	run
 GNU_CONFIGURE=	yes
 
-CFLAGS+=	-I${LOCALBASE}/include
+CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-PLIST_FILES=	bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
 PORTDOCS=	AUTHORS NEWS README
+PLIST_FILES=	bin/ytnef bin/ytnefprint bin/ytnefprocess.pl
+
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
-		${WRKSRC}/src/ytnef/ytnefprocess.pl
+	@${REINPLACE_CMD} -e \
+		's|/usr/local/share|${PREFIX}/share|' ${WRKSRC}/src/ytnef/*.pl
 
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff -urN /usr/ports/converters/ytnef/files/patch-src__ytnef__main.c converters/ytnef/files/patch-src__ytnef__main.c
--- /usr/ports/converters/ytnef/files/patch-src__ytnef__main.c	1970-01-01 09:00:00.000000000 +0900
+++ converters/ytnef/files/patch-src__ytnef__main.c	2014-03-20 00:00:00.000000000 +0900
@@ -0,0 +1,25 @@
+--- src/ytnef/main.c.orig
++++ src/ytnef/main.c
+@@ -68,7 +68,7 @@
+                 case 'v': verbose++;
+                           break;
+                 case 'h': PrintHelp();
+-                          return;
++                          return 0;
+                 case 'f': savefiles = 1;
+                           filepath = argv[i+1];
+                           i++;
+@@ -103,11 +103,12 @@
+         TNEF.Debug = verbose;
+         if (TNEFParseFile(argv[i], &TNEF) == -1) {
+             printf("ERROR processing file\n");
+-            continue;
++            return 1;
+         }
+         ProcessTNEF(TNEF);
+         TNEFFree(&TNEF);
+     }
++    return 0;
+ }
+ 
+ void ProcessTNEF(TNEFStruct TNEF) {
diff -urN /usr/ports/converters/ytnef/pkg-descr converters/ytnef/pkg-descr
--- /usr/ports/converters/ytnef/pkg-descr	2014-01-23 03:00:23.000000000 +0900
+++ converters/ytnef/pkg-descr	2014-03-20 00:00:00.000000000 +0900
@@ -1,15 +1,15 @@
-This program decodes those annoying application/ms-tnef MIME attachments that
-Microsoft mail servers helpfully use to encapsulate your already MIME encoded
-attachments.
+This program decodes those annoying application/ms-tnef MIME
+attachments that Microsoft mail servers helpfully use to encapsulate
+your already MIME encoded attachments.
 
-Due to the proliferation of Microsoft Outlook and Exchange mail servers,
-more and more mail is encapsulated into this format.
+Due to the proliferation of Microsoft Outlook and Exchange mail
+servers, more and more mail is encapsulated into this format.
 
-The YTNEF program allows one to unpack the attachments which were encapsulated
-into the YTNEF attachment.  Thus alleviating the need to use Microsoft Outlook
-to view them.
+The YTNEF program allows one to unpack the attachments which were
+encapsulated into the YTNEF attachment. Thus alleviating the need to
+use Microsoft Outlook to view them.
 
 Now supports winmail.dat Outlook files
 
 Author: Randall Hand <randall.hand@gmail.com> 	
-WWW:	http://ytnef.sourceforge.net/
+WWW: http://ytnef.sourceforge.net/
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 19 18:40:43 UTC 2014 
Responsible-Changed-Why:  
miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187757 

From: KATO Tsuguru <tkato432@yahoo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187757: converters/ytnef: Fix build on -current
Date: Fri, 4 Apr 2014 03:58:47 +0900

 This is a multi-part message in MIME format.
 
 --Multipart=_Fri__4_Apr_2014_03_58_47_+0900_oOiQPFBpO.U8+8=N
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Remake of the patch against current tree.
 
 --Multipart=_Fri__4_Apr_2014_03_58_47_+0900_oOiQPFBpO.U8+8=N
 Content-Type: text/x-diff;
  name="converters_ytnef.diff"
 Content-Disposition: attachment;
  filename="converters_ytnef.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/converters/ytnef/Makefile converters/ytnef/Makefile
 --- /usr/ports/converters/ytnef/Makefile	2014-03-01 06:21:17.000000000 +0900
 +++ converters/ytnef/Makefile	2014-04-04 03:00:00.000000000 +0900
 @@ -10,24 +10,27 @@
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Unpack data in MS Outlook TNEF format
  
 -OPTIONS_DEFINE=	DOCS
 +LICENSE=	GPLv2
  
  LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
  RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
  
 -USES=		perl5
 +USES=		perl5 shebangfix
 +SHEBANG_FILES=	src/ytnef/*.pl
  USE_PERL5=	run
  GNU_CONFIGURE=	yes
  
 -CFLAGS+=	-I${LOCALBASE}/include
 +CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib
  
 -PLIST_FILES=	bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
  PORTDOCS=	AUTHORS NEWS README
 +PLIST_FILES=	bin/ytnef bin/ytnefprint bin/ytnefprocess.pl
 +
 +OPTIONS_DEFINE=	DOCS
  
  post-patch:
 -	@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
 -		${WRKSRC}/src/ytnef/ytnefprocess.pl
 +	@${REINPLACE_CMD} -e \
 +		's|/usr/local/share|${PREFIX}/share|' ${WRKSRC}/src/ytnef/*.pl
  
  post-install:
  	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 diff -urN /usr/ports/converters/ytnef/files/patch-src__ytnef__main.c converters/ytnef/files/patch-src__ytnef__main.c
 --- /usr/ports/converters/ytnef/files/patch-src__ytnef__main.c	2014-04-04 03:34:06.000000000 +0900
 +++ converters/ytnef/files/patch-src__ytnef__main.c	2014-04-04 03:00:00.000000000 +0900
 @@ -9,3 +9,17 @@
                   case 'f': savefiles = 1;
                             filepath = argv[i+1];
                             i++;
 +@@ -103,11 +103,12 @@
 +         TNEF.Debug = verbose;
 +         if (TNEFParseFile(argv[i], &TNEF) == -1) {
 +             printf("ERROR processing file\n");
 +-            continue;
 ++            return 1;
 +         }
 +         ProcessTNEF(TNEF);
 +         TNEFFree(&TNEF);
 +     }
 ++    return 0;
 + }
 + 
 + void ProcessTNEF(TNEFStruct TNEF) {
 diff -urN /usr/ports/converters/ytnef/pkg-descr converters/ytnef/pkg-descr
 --- /usr/ports/converters/ytnef/pkg-descr	2014-01-23 03:00:23.000000000 +0900
 +++ converters/ytnef/pkg-descr	2014-04-04 03:00:00.000000000 +0900
 @@ -1,15 +1,15 @@
 -This program decodes those annoying application/ms-tnef MIME attachments that
 -Microsoft mail servers helpfully use to encapsulate your already MIME encoded
 -attachments.
 +This program decodes those annoying application/ms-tnef MIME
 +attachments that Microsoft mail servers helpfully use to encapsulate
 +your already MIME encoded attachments.
  
 -Due to the proliferation of Microsoft Outlook and Exchange mail servers,
 -more and more mail is encapsulated into this format.
 +Due to the proliferation of Microsoft Outlook and Exchange mail
 +servers, more and more mail is encapsulated into this format.
  
 -The YTNEF program allows one to unpack the attachments which were encapsulated
 -into the YTNEF attachment.  Thus alleviating the need to use Microsoft Outlook
 -to view them.
 +The YTNEF program allows one to unpack the attachments which were
 +encapsulated into the YTNEF attachment. Thus alleviating the need to
 +use Microsoft Outlook to view them.
  
  Now supports winmail.dat Outlook files
  
  Author: Randall Hand <randall.hand@gmail.com> 	
 -WWW:	http://ytnef.sourceforge.net/
 +WWW: http://ytnef.sourceforge.net/
 
 --Multipart=_Fri__4_Apr_2014_03_58_47_+0900_oOiQPFBpO.U8+8=N--
Responsible-Changed-From-To: miwi->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Tue Apr 22 00:15:23 UTC 2014 
Responsible-Changed-Why:  
Take, since I've committed fixes to these 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187757 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Wed Apr 23 01:16:14 UTC 2014 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187757 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187757: commit references a PR
Date: Wed, 23 Apr 2014 01:15:57 +0000 (UTC)

 Author: amdmi3
 Date: Wed Apr 23 01:15:52 2014
 New Revision: 351902
 URL: http://svnweb.freebsd.org/changeset/ports/351902
 QAT: https://qat.redports.org/buildarchive/r351902/
 
 Log:
   - Minor port cleanup
   - Add LICENSE
   - Fix error handling
   
   PR:		187757
   Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
 
 Modified:
   head/converters/ytnef/Makefile
   head/converters/ytnef/files/patch-src__ytnef__main.c
   head/converters/ytnef/pkg-descr
 
 Modified: head/converters/ytnef/Makefile
 ==============================================================================
 --- head/converters/ytnef/Makefile	Wed Apr 23 01:14:42 2014	(r351901)
 +++ head/converters/ytnef/Makefile	Wed Apr 23 01:15:52 2014	(r351902)
 @@ -3,31 +3,34 @@
  
  PORTNAME=	ytnef
  PORTVERSION=	2.6
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	converters mail
  MASTER_SITES=	SF
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Unpack data in MS Outlook TNEF format
  
 -OPTIONS_DEFINE=	DOCS
 +LICENSE=	GPLv2
  
  LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
  RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
  
 -USES=		perl5
 +USES=		perl5 shebangfix
 +SHEBANG_FILES=	src/ytnef/*.pl
  USE_PERL5=	run
  GNU_CONFIGURE=	yes
  
 -CFLAGS+=	-I${LOCALBASE}/include
 +CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib
  
 -PLIST_FILES=	bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
  PORTDOCS=	AUTHORS NEWS README
 +PLIST_FILES=	bin/ytnef bin/ytnefprint bin/ytnefprocess.pl
 +
 +OPTIONS_DEFINE=	DOCS
  
  post-patch:
 -	@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
 -		${WRKSRC}/src/ytnef/ytnefprocess.pl
 +	@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|' \
 +		${WRKSRC}/src/ytnef/*.pl
  
  post-install:
  	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 
 Modified: head/converters/ytnef/files/patch-src__ytnef__main.c
 ==============================================================================
 --- head/converters/ytnef/files/patch-src__ytnef__main.c	Wed Apr 23 01:14:42 2014	(r351901)
 +++ head/converters/ytnef/files/patch-src__ytnef__main.c	Wed Apr 23 01:15:52 2014	(r351902)
 @@ -9,3 +9,17 @@
                   case 'f': savefiles = 1;
                             filepath = argv[i+1];
                             i++;
 +@@ -103,11 +103,12 @@
 +         TNEF.Debug = verbose;
 +         if (TNEFParseFile(argv[i], &TNEF) == -1) {
 +             printf("ERROR processing file\n");
 +-            continue;
 ++            return 1;
 +         }
 +         ProcessTNEF(TNEF);
 +         TNEFFree(&TNEF);
 +     }
 ++    return 0;
 + }
 + 
 + void ProcessTNEF(TNEFStruct TNEF) {
 
 Modified: head/converters/ytnef/pkg-descr
 ==============================================================================
 --- head/converters/ytnef/pkg-descr	Wed Apr 23 01:14:42 2014	(r351901)
 +++ head/converters/ytnef/pkg-descr	Wed Apr 23 01:15:52 2014	(r351902)
 @@ -1,15 +1,14 @@
 -This program decodes those annoying application/ms-tnef MIME attachments that
 -Microsoft mail servers helpfully use to encapsulate your already MIME encoded
 -attachments.
 +This program decodes those annoying application/ms-tnef MIME
 +attachments that Microsoft mail servers helpfully use to encapsulate
 +your already MIME encoded attachments.
  
 -Due to the proliferation of Microsoft Outlook and Exchange mail servers,
 -more and more mail is encapsulated into this format.
 +Due to the proliferation of Microsoft Outlook and Exchange mail
 +servers, more and more mail is encapsulated into this format.
  
 -The YTNEF program allows one to unpack the attachments which were encapsulated
 -into the YTNEF attachment.  Thus alleviating the need to use Microsoft Outlook
 -to view them.
 +The YTNEF program allows one to unpack the attachments which were
 +encapsulated into the YTNEF attachment. Thus alleviating the need to
 +use Microsoft Outlook to view them.
  
  Now supports winmail.dat Outlook files
  
 -Author: Randall Hand <randall.hand@gmail.com> 	
 -WWW:	http://ytnef.sourceforge.net/
 +WWW: http://ytnef.sourceforge.net/
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
