From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 19 18:40:07 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3489F6E5 for ; Wed, 19 Mar 2014 18:40:07 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1553AC7A for ; Wed, 19 Mar 2014 18:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2JIe6FN002587 for ; Wed, 19 Mar 2014 18:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2JIe6cX002586; Wed, 19 Mar 2014 18:40:06 GMT (envelope-from gnats) Resent-Date: Wed, 19 Mar 2014 18:40:06 GMT Resent-Message-Id: <201403191840.s2JIe6cX002586@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187757: converters/ytnef: Fix build on -current X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 18:40:07 -0000 >Number: 187757 >Category: ports >Synopsis: converters/ytnef: Fix build on -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 19 18:40:06 UTC 2014 >Closed-Date: >Last-Modified: >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 -WWW: http://ytnef.sourceforge.net/ +WWW: http://ytnef.sourceforge.net/ >Release-Note: >Audit-Trail: >Unformatted: