View | Details | Raw Unified | Return to bug 187757 | Differences between
and this patch

Collapse All | Expand All

(-)converters/ytnef/Makefile (-6 / +9 lines)
Lines 10-33 Link Here
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Unpack data in MS Outlook TNEF format
11
COMMENT=	Unpack data in MS Outlook TNEF format
12
12
13
OPTIONS_DEFINE=	DOCS
13
LICENSE=	GPLv2
14
14
15
LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
15
LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
16
RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
16
RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
17
17
18
USES=		perl5
18
USES=		perl5 shebangfix
19
SHEBANG_FILES=	src/ytnef/*.pl
19
USE_PERL5=	run
20
USE_PERL5=	run
20
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
21
22
22
CFLAGS+=	-I${LOCALBASE}/include
23
CPPFLAGS+=	-I${LOCALBASE}/include
23
LDFLAGS+=	-L${LOCALBASE}/lib
24
LDFLAGS+=	-L${LOCALBASE}/lib
24
25
25
PLIST_FILES=	bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
26
PORTDOCS=	AUTHORS NEWS README
26
PORTDOCS=	AUTHORS NEWS README
27
PLIST_FILES=	bin/ytnef bin/ytnefprint bin/ytnefprocess.pl
28
29
OPTIONS_DEFINE=	DOCS
27
30
28
post-patch:
31
post-patch:
29
	@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
32
	@${REINPLACE_CMD} -e \
30
		${WRKSRC}/src/ytnef/ytnefprocess.pl
33
		's|/usr/local/share|${PREFIX}/share|' ${WRKSRC}/src/ytnef/*.pl
31
34
32
post-install:
35
post-install:
33
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)converters/ytnef/files/patch-src__ytnef__main.c (+25 lines)
Line 0 Link Here
1
--- src/ytnef/main.c.orig
2
+++ src/ytnef/main.c
3
@@ -68,7 +68,7 @@
4
                 case 'v': verbose++;
5
                           break;
6
                 case 'h': PrintHelp();
7
-                          return;
8
+                          return 0;
9
                 case 'f': savefiles = 1;
10
                           filepath = argv[i+1];
11
                           i++;
12
@@ -103,11 +103,12 @@
13
         TNEF.Debug = verbose;
14
         if (TNEFParseFile(argv[i], &TNEF) == -1) {
15
             printf("ERROR processing file\n");
16
-            continue;
17
+            return 1;
18
         }
19
         ProcessTNEF(TNEF);
20
         TNEFFree(&TNEF);
21
     }
22
+    return 0;
23
 }
24
 
25
 void ProcessTNEF(TNEFStruct TNEF) {
(-)converters/ytnef/pkg-descr (-9 / +9 lines)
Lines 1-15 Link Here
1
This program decodes those annoying application/ms-tnef MIME attachments that
1
This program decodes those annoying application/ms-tnef MIME
2
Microsoft mail servers helpfully use to encapsulate your already MIME encoded
2
attachments that Microsoft mail servers helpfully use to encapsulate
3
attachments.
3
your already MIME encoded attachments.
4
4
5
Due to the proliferation of Microsoft Outlook and Exchange mail servers,
5
Due to the proliferation of Microsoft Outlook and Exchange mail
6
more and more mail is encapsulated into this format.
6
servers, more and more mail is encapsulated into this format.
7
7
8
The YTNEF program allows one to unpack the attachments which were encapsulated
8
The YTNEF program allows one to unpack the attachments which were
9
into the YTNEF attachment.  Thus alleviating the need to use Microsoft Outlook
9
encapsulated into the YTNEF attachment. Thus alleviating the need to
10
to view them.
10
use Microsoft Outlook to view them.
11
11
12
Now supports winmail.dat Outlook files
12
Now supports winmail.dat Outlook files
13
13
14
Author: Randall Hand <randall.hand@gmail.com> 	
14
Author: Randall Hand <randall.hand@gmail.com> 	
15
WWW:	http://ytnef.sourceforge.net/
15
WWW: http://ytnef.sourceforge.net/

Return to bug 187757