diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-11-14 22:03:45 +0800 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-11-14 22:03:45 +0800 |
commit | e35ec6c5c5be80c2ee87ba0af9ea8e0a7fc295e1 (patch) | |
tree | 0b2fd029916546b67792755fb174c9e70c2f783a /mail | |
parent | 1b8b768f5e59d8db8d77e7c623a588c598140e54 (diff) | |
download | freebsd-ports-gnome-e35ec6c5c5be80c2ee87ba0af9ea8e0a7fc295e1.tar.gz freebsd-ports-gnome-e35ec6c5c5be80c2ee87ba0af9ea8e0a7fc295e1.tar.zst freebsd-ports-gnome-e35ec6c5c5be80c2ee87ba0af9ea8e0a7fc295e1.zip |
- Update to 0.6.17
PR: ports/126345
Submitted by: bf <bf2006a@yahoo.com>
Approved by: maintainer timeout (1 month)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/libpst/Makefile | 39 | ||||
-rw-r--r-- | mail/libpst/distinfo | 6 | ||||
-rw-r--r-- | mail/libpst/files/patch-Makefile | 40 | ||||
-rw-r--r-- | mail/libpst/files/patch-libpst.c | 33 | ||||
-rw-r--r-- | mail/libpst/files/patch-libpst.h | 13 | ||||
-rw-r--r-- | mail/libpst/files/patch-lspst.c | 21 | ||||
-rw-r--r-- | mail/libpst/files/patch-lzfu.c | 11 | ||||
-rw-r--r-- | mail/libpst/files/patch-readpst.c | 11 | ||||
-rw-r--r-- | mail/libpst/files/patch-readpstlog.c | 16 | ||||
-rw-r--r-- | mail/libpst/pkg-descr | 13 | ||||
-rw-r--r-- | mail/libpst/pkg-plist | 19 |
11 files changed, 63 insertions, 159 deletions
diff --git a/mail/libpst/Makefile b/mail/libpst/Makefile index 8616bd237587..dbf1c6032a25 100644 --- a/mail/libpst/Makefile +++ b/mail/libpst/Makefile @@ -6,17 +6,42 @@ # PORTNAME= libpst -PORTVERSION= 0.5.1 +PORTVERSION= 0.6.17 CATEGORIES= mail converters -MASTER_SITES= http://alioth.debian.org/frs/download.php/844/ -EXTRACT_SUFX= .tgz +MASTER_SITES= http://www.five-ten-sg.com/libpst/packages/ MAINTAINER= natey@natey.com -COMMENT= A tool for converting Outlook .pst files to Unix mbox format +COMMENT= A tool for converting Outlook .pst files to mbox and other formats -USE_GMAKE= YES +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_ICONV= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -liconv +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -MAN1= readpst.1 readpstlog.1 -PLIST_FILES= bin/readpst bin/readpstlog bin/lspst +.if exists(${LOCALBASE}/bin/convert) || defined(WITH_PST2DII) +BUILD_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick +RUN_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick +LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd +PLIST_SUB+= PST2DII="" +.else +PLIST_SUB+= PST2DII="@comment " +.endif + +MAN1= lspst.1 pst2dii.1 pst2ldif.1 readpst.1 readpstlog.1 +MAN5= outlook.pst.5 + +post-patch: + ${FIND} -X ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e 's/malloc.h/stdlib.h/g' + ${REINPLACE_CMD} -e 's;doc\/@PACKAGE@-@VERSION@;doc\/@PACKAGE@;g' ${WRKSRC}/Makefile.in \ + ${WRKSRC}/html/Makefile.in + +.ifdef(NOPORTDOCS) +INSTALL_TARGET= install-exec + +post-install: + @(cd ${WRKSRC}/man && ${GMAKE} ${MAKE_ARGS} install) +.endif .include <bsd.port.mk> diff --git a/mail/libpst/distinfo b/mail/libpst/distinfo index bd62d3cc1be2..9f31e3c64e10 100644 --- a/mail/libpst/distinfo +++ b/mail/libpst/distinfo @@ -1,3 +1,3 @@ -MD5 (libpst-0.5.1.tgz) = 0a80562bf7c503f9d3fdd96e0de10408 -SHA256 (libpst-0.5.1.tgz) = 1e4a0e7a8d1572e8fe77c62a0e747b832bb93814fd1df624077ad0f879477857 -SIZE (libpst-0.5.1.tgz) = 89256 +MD5 (libpst-0.6.17.tar.gz) = b2599f5d9b946ae4468188f413653e03 +SHA256 (libpst-0.6.17.tar.gz) = 06ea3c9ebe88316efdafccf041014d44aabc9992fc14f5fc758a48ac52a6bd62 +SIZE (libpst-0.6.17.tar.gz) = 718910 diff --git a/mail/libpst/files/patch-Makefile b/mail/libpst/files/patch-Makefile deleted file mode 100644 index 5aefcbbd78aa..000000000000 --- a/mail/libpst/files/patch-Makefile +++ /dev/null @@ -1,40 +0,0 @@ ---- Makefile.orig Wed Nov 17 14:16:02 2004 -+++ Makefile Mon Sep 26 17:34:36 2005 -@@ -6,10 +6,10 @@ - - #---------------- Do not modify below this point ------------------ - --INSTALL_DIR := $(INSTALL) -p -d -o root -g root -m 0755 --INSTALL_FILE := $(INSTALL) -p -o root -g root -m 0644 --INSTALL_PROGRAM := $(INSTALL) -p -o root -g root -m 0755 # -s --INSTALL_SCRIPT := $(INSTALL) -p -o root -g root -m 0755 -+INSTALL_DIR := $(INSTALL) -p -d -o root -g wheel -m 0755 -+INSTALL_FILE := $(INSTALL) -p -o root -g wheel -m 0644 -+INSTALL_PROGRAM := $(INSTALL) -p -o root -g wheel -m 0755 # -s -+INSTALL_SCRIPT := $(INSTALL) -p -o root -g wheel -m 0755 - - VERSION = $(shell cat VERSION) - -@@ -53,11 +53,18 @@ - distclean: clean - rm -f libpst-*.tar.gz - --install: all -+install: installbin -+ -+installbin: all - $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin -- $(INSTALL_PROGRAM) readpst{,log} $(DESTDIR)$(PREFIX)/bin -- $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/man/man1 -- $(INSTALL_FILE) readpst{,log}.1 $(DESTDIR)$(PREFIX)/share/man/man1/ -+ $(INSTALL_PROGRAM) readpst $(DESTDIR)$(PREFIX)/bin -+ $(INSTALL_PROGRAM) readpstlog $(DESTDIR)$(PREFIX)/bin -+ $(INSTALL_PROGRAM) lspst $(DESTDIR)$(PREFIX)/bin -+ $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/man/man1 -+ $(INSTALL_FILE) readpst.1 $(DESTDIR)$(PREFIX)/man/man1/ -+ $(INSTALL_FILE) readpstlog.1 $(DESTDIR)$(PREFIX)/man/man1/ -+ -+installdocs: - $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/doc/libpst - $(INSTALL_FILE) $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/libpst/ - diff --git a/mail/libpst/files/patch-libpst.c b/mail/libpst/files/patch-libpst.c deleted file mode 100644 index 0e7db5d03aa4..000000000000 --- a/mail/libpst/files/patch-libpst.c +++ /dev/null @@ -1,33 +0,0 @@ ---- libpst.c.orig Sun Sep 25 14:38:16 2005 -+++ libpst.c Sun Sep 25 14:39:04 2005 -@@ -261,7 +261,7 @@ - int32_t pst_attach_to_file(pst_file *pf, pst_item_attach *attach, FILE* fp) { - pst_index_ll *ptr; - struct holder h = {NULL, fp, 0, "", 0}; -- int32_t size; -+ int32_t size = 0; - DEBUG_ENT("pst_attach_to_file"); - if (attach->id_val != -1) { - ptr = _pst_getID(pf, attach->id_val); -@@ -283,7 +283,7 @@ - int32_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp) { - pst_index_ll *ptr; - struct holder h = {NULL, fp, 1, "", 0}; -- int32_t size; -+ int32_t size = 0; - char *c; - DEBUG_ENT("pst_attach_to_file_base64"); - if (attach->id_val != -1) { -@@ -373,10 +373,10 @@ - pst_desc_ll *p; - pst_num_array *na; - // pst_index_ll *list; -- pst_index2_ll *list2;//, *t; -+ pst_index2_ll *list2 = NULL;//, *t; - unsigned char * buffer=NULL, *headerbuffer=NULL;//, *tc; - pst_x_attrib xattrib; -- int32_t bptr = 0, bsize, hsize, tint, err=0, x; -+ int32_t bptr = 0, bsize = 0, hsize = 0, tint, err=0, x; - pst_x_attrib_ll *ptr, *p_head=NULL, *p_sh=NULL, *p_sh2=NULL; - char *wt; - diff --git a/mail/libpst/files/patch-libpst.h b/mail/libpst/files/patch-libpst.h deleted file mode 100644 index 2ff9f0ba713c..000000000000 --- a/mail/libpst/files/patch-libpst.h +++ /dev/null @@ -1,13 +0,0 @@ ---- libpst.h.orig Sat Sep 24 23:28:03 2005 -+++ libpst.h Sun Sep 25 14:23:06 2005 -@@ -14,8 +14,9 @@ - - #ifndef FILETIME_DEFINED - #define FILETIME_DEFINED -+#include <sys/types.h> - //Win32 Filetime struct - copied from WINE --typedef struct { -+typedef struct _FILETIME { - u_int32_t dwLowDateTime; - u_int32_t dwHighDateTime; - } FILETIME; diff --git a/mail/libpst/files/patch-lspst.c b/mail/libpst/files/patch-lspst.c deleted file mode 100644 index 31db4f1d33fb..000000000000 --- a/mail/libpst/files/patch-lspst.c +++ /dev/null @@ -1,21 +0,0 @@ ---- lspst.c.orig Sun Sep 25 13:39:52 2005 -+++ lspst.c Sun Sep 25 14:24:31 2005 -@@ -37,7 +37,9 @@ - char *rfc2426_escape(char *str); - char *rfc2445_datetime_format(FILETIME *ft); - // }}}1 -+#ifndef DEBUG_MAIN - #define DEBUG_MAIN(x) debug_print x; -+#endif // DEBUG_MAIN - // int main(int argc, char** argv) {{{1 - int main(int argc, char** argv) { - -@@ -47,7 +49,7 @@ - pst_desc_ll *d_ptr; - char *temp = NULL; //temporary char pointer - int skip_child = 0; -- struct file_ll *f, *head; -+ struct file_ll *f = NULL, *head; - // }}}2 - - if (argc <= 1) diff --git a/mail/libpst/files/patch-lzfu.c b/mail/libpst/files/patch-lzfu.c deleted file mode 100644 index c36c9176cee3..000000000000 --- a/mail/libpst/files/patch-lzfu.c +++ /dev/null @@ -1,11 +0,0 @@ ---- lzfu.c.orig Mon Sep 26 17:26:39 2005 -+++ lzfu.c Mon Sep 26 17:26:58 2005 -@@ -16,7 +16,7 @@ - #include <stdio.h> - - #ifndef _MSC_VER --#include <stdint.h> -+#include <inttypes.h> - #endif - - #ifdef _MSC_VER diff --git a/mail/libpst/files/patch-readpst.c b/mail/libpst/files/patch-readpst.c deleted file mode 100644 index ef91bf6550e4..000000000000 --- a/mail/libpst/files/patch-readpst.c +++ /dev/null @@ -1,11 +0,0 @@ ---- readpst.c.orig Sun Sep 25 14:24:59 2005 -+++ readpst.c Sun Sep 25 14:25:19 2005 -@@ -144,7 +144,7 @@ - int base64_body = 0; - // int encrypt = 0; - FILE *fp; -- char *enc; // base64 encoded attachment -+ char *enc = NULL; // base64 encoded attachment - char *boundary = NULL, *b1, *b2; // the boundary marker between multipart sections - char *temp = NULL; //temporary char pointer - int attach_num = 0; diff --git a/mail/libpst/files/patch-readpstlog.c b/mail/libpst/files/patch-readpstlog.c deleted file mode 100644 index 6db82d93f949..000000000000 --- a/mail/libpst/files/patch-readpstlog.c +++ /dev/null @@ -1,16 +0,0 @@ ---- readpstlog.c.orig Sun Sep 25 14:25:38 2005 -+++ readpstlog.c Sun Sep 25 14:29:10 2005 -@@ -21,11 +21,11 @@ - - int main(int argc, char** argv) { - int *i=NULL, x, ptr, stop=0, flag; -- char *fname, *buf, format, rec_type; -+ char *fname, *buf, format = ' ', rec_type; - unsigned char version; - int *show_type=NULL, show_size=0; - int *ex_type=NULL, ex_size=0; -- unsigned int funcname, filename, text, end, dtype, line, c; -+ unsigned int funcname=0, filename=0, text=0, end=0, dtype=0, line=0, c; - FILE *fp; - struct _debug_file_rec_m mfile_rec; - struct _debug_file_rec_l lfile_rec; diff --git a/mail/libpst/pkg-descr b/mail/libpst/pkg-descr index b66229b6a4b3..6afaeca0b48a 100644 --- a/mail/libpst/pkg-descr +++ b/mail/libpst/pkg-descr @@ -1,9 +1,14 @@ -readpst: A tool for converting Outlook .pst files to Unix mbox format +readpst: A tool for converting Outlook .pst files to Unix mbox and +other formats. -The aim of this project is to provide libraries and applications for the -conversion of Outlook and Outlook Express data files to Linux MBOX format. +This version can now convert both 32-bit Outlook files (pre-2003), +and the 64-bit Outlook 2003 .pst files. Utilities are supplied to +convert email messages to both mbox and MH mailbox formats, and to +DII load file format for use with many of the CT Summation products. +Contacts can be converted to a simple list, to vcard format, or to +.ldif format for import to an LDAP server. -WWW: http://alioth.debian.org/projects/libpst/ +WWW: http://www.five-ten-sg.com/libpst/ - Natey natey@natey.com diff --git a/mail/libpst/pkg-plist b/mail/libpst/pkg-plist new file mode 100644 index 000000000000..3fe08f2f7ad0 --- /dev/null +++ b/mail/libpst/pkg-plist @@ -0,0 +1,19 @@ +bin/lspst +bin/pst2ldif +bin/readpst +bin/readpstlog +%%PST2DII%%bin/pst2dii +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/libpst.pdf +%%PORTDOCS%%%%DOCSDIR%%/rn01re01.html +%%PORTDOCS%%%%DOCSDIR%%/rn01re02.html +%%PORTDOCS%%%%DOCSDIR%%/rn01re03.html +%%PORTDOCS%%%%DOCSDIR%%/rn01re04.html +%%PORTDOCS%%%%DOCSDIR%%/rn01re05.html +%%PORTDOCS%%%%DOCSDIR%%/rn01re06.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% |