From owner-svn-ports-head@FreeBSD.ORG Wed Apr 23 01:15:54 2014 Return-Path: Delivered-To: svn-ports-head@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 E16C78D0; Wed, 23 Apr 2014 01:15:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD86313D5; Wed, 23 Apr 2014 01:15:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3N1FrfP036834; Wed, 23 Apr 2014 01:15:53 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3N1FrjG036831; Wed, 23 Apr 2014 01:15:53 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201404230115.s3N1FrjG036831@svn.freebsd.org> From: Dmitry Marakasov Date: Wed, 23 Apr 2014 01:15:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351902 - in head/converters/ytnef: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 01:15:54 -0000 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 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 -WWW: http://ytnef.sourceforge.net/ +WWW: http://ytnef.sourceforge.net/