diff options
author | sborrill <sborrill@pkgsrc.org> | 2019-11-15 11:09:15 +0000 |
---|---|---|
committer | sborrill <sborrill@pkgsrc.org> | 2019-11-15 11:09:15 +0000 |
commit | ea982b72dbe45634c53eb6b13d063cfd7fced761 (patch) | |
tree | 5f8fe27df65a45a96f44846a793fcd72f63c7379 /mail | |
parent | b1902e41630b23d1eb31ed0967740f668e5ae55a (diff) | |
download | pkgsrc-ea982b72dbe45634c53eb6b13d063cfd7fced761.tar.gz |
pst-utils contains a set of tools to read and convert Outlook PST
(Personal Folders) files. The main tools are:
* readpst - convert PST files to mbox and other formats
* lspst - list PST file data
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pst-utils/DESCR | 8 | ||||
-rw-r--r-- | mail/pst-utils/Makefile | 24 | ||||
-rw-r--r-- | mail/pst-utils/PLIST | 23 | ||||
-rw-r--r-- | mail/pst-utils/distinfo | 9 | ||||
-rw-r--r-- | mail/pst-utils/patches/patch-configure | 15 | ||||
-rw-r--r-- | mail/pst-utils/patches/patch-man_Makefile.in | 15 | ||||
-rw-r--r-- | mail/pst-utils/patches/patch-src_libpst.c | 20 |
7 files changed, 114 insertions, 0 deletions
diff --git a/mail/pst-utils/DESCR b/mail/pst-utils/DESCR new file mode 100644 index 00000000000..b13f16d413d --- /dev/null +++ b/mail/pst-utils/DESCR @@ -0,0 +1,8 @@ +pst-utils contains a set of tools to read and convert Outlook PST +(Personal Folders) files. The main tools are: + * readpst - convert PST files to mbox and other formats + * lspst - list PST file data + +The package has been renamed from libpst to pst-utils to better +reflect that its main purpose is to provide utilities rather than +libraries for use by other packages. diff --git a/mail/pst-utils/Makefile b/mail/pst-utils/Makefile new file mode 100644 index 00000000000..63fe5fc35d9 --- /dev/null +++ b/mail/pst-utils/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2019/11/15 11:09:15 sborrill Exp $ +# + +DISTNAME= libpst-0.6.72 +PKGNAME= ${DISTNAME:S/libpst/pst-utils/} +CATEGORIES= mail +MASTER_SITES= https://www.five-ten-sg.com/libpst/packages/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://www.five-ten-sg.com/libpst/ +COMMENT= Tools for reading and converting PST files +LICENSE= gnu-lgpl-v2.1 + +USE_LANGUAGES= c c++ +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --disable-dii +CONFIGURE_ARGS+= --disable-python +CONFIGURE_ARGS+= --enable-libpst-shared +CONFIGURE_ARGS+= --disable-static-tools + +USE_TOOLS+= pkg-config + +.include "../../devel/libgsf/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/pst-utils/PLIST b/mail/pst-utils/PLIST new file mode 100644 index 00000000000..a73bc973dc2 --- /dev/null +++ b/mail/pst-utils/PLIST @@ -0,0 +1,23 @@ +@comment $NetBSD: PLIST,v 1.1 2019/11/15 11:09:15 sborrill Exp $ +bin/lspst +bin/nick2ldif +bin/pst2ldif +bin/readpst +include/libpst-4/libpst/common.h +include/libpst-4/libpst/libpst.h +include/libpst-4/libpst/libstrfunc.h +include/libpst-4/libpst/lzfu.h +include/libpst-4/libpst/timeconv.h +include/libpst-4/libpst/vbuf.h +lib/libpst.la +lib/pkgconfig/libpst.pc +man/man1/lspst.1 +man/man1/pst2ldif.1 +man/man1/readpst.1 +man/man5/outlook.pst.5 +share/doc/libpst-${PKGVERSION}/AUTHORS +share/doc/libpst-${PKGVERSION}/COPYING +share/doc/libpst-${PKGVERSION}/ChangeLog +share/doc/libpst-${PKGVERSION}/NEWS +share/doc/libpst-${PKGVERSION}/README +@pkgdir share/doc/libpst-${PKGVERSION}/devel diff --git a/mail/pst-utils/distinfo b/mail/pst-utils/distinfo new file mode 100644 index 00000000000..13780910c55 --- /dev/null +++ b/mail/pst-utils/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1 2019/11/15 11:09:15 sborrill Exp $ + +SHA1 (libpst-0.6.72.tar.gz) = 520b555de8efadc251ce4d81bdde65f402003b16 +RMD160 (libpst-0.6.72.tar.gz) = 3b1010e410de21cf3d9e8cc238165ca072e51e0e +SHA512 (libpst-0.6.72.tar.gz) = f2aeb2dc1b9d3e4e33bfddffac6dc3484e8bede432fdaf05a2250d375872db9514a16ff3e19aa823c674fc5ac82d03e257dc06b76e00195439077fd63657b5a5 +Size (libpst-0.6.72.tar.gz) = 14025331 bytes +SHA1 (patch-configure) = 7c6eef14a77dd683b1c9afb3d631fed90a47a46c +SHA1 (patch-man_Makefile.in) = 7217bbcc6476e2d99d87d7df8003d6328d99fdef +SHA1 (patch-src_libpst.c) = dd43530de2c1117838aabc759ad90f9391390ae6 diff --git a/mail/pst-utils/patches/patch-configure b/mail/pst-utils/patches/patch-configure new file mode 100644 index 00000000000..84ac96b4f8f --- /dev/null +++ b/mail/pst-utils/patches/patch-configure @@ -0,0 +1,15 @@ +$NetBSD: patch-configure,v 1.1 2019/11/15 11:09:15 sborrill Exp $ + +Fix test == + +--- configure.orig 2019-11-14 15:23:47.000000000 +0000 ++++ configure 2019-11-14 15:24:53.000000000 +0000 +@@ -23593,7 +23593,7 @@ + ax_python_lib=no + fi + +- if test x$ax_python_lib == xno; then ++ if test x$ax_python_lib = xno; then + as_ac_Lib=`$as_echo "ac_cv_lib_${ax_python_bin}m''_main" | $as_tr_sh` + { $as_echo "$as_me:$LINENO: checking for main in -l${ax_python_bin}m" >&5 + $as_echo_n "checking for main in -l${ax_python_bin}m... " >&6; } diff --git a/mail/pst-utils/patches/patch-man_Makefile.in b/mail/pst-utils/patches/patch-man_Makefile.in new file mode 100644 index 00000000000..3a1d6d9e738 --- /dev/null +++ b/mail/pst-utils/patches/patch-man_Makefile.in @@ -0,0 +1,15 @@ +$NetBSD: patch-man_Makefile.in,v 1.1 2019/11/15 11:09:15 sborrill Exp $ + +Don't install pst2dii man page as binary is not installed + +--- man/Makefile.in.orig 2019-11-15 08:51:15.000000000 +0000 ++++ man/Makefile.in 2019-11-15 08:52:12.000000000 +0000 +@@ -220,7 +220,7 @@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-man_MANS = readpst.1 pst2ldif.1 lspst.1 pst2dii.1 outlook.pst.5 ++man_MANS = readpst.1 pst2ldif.1 lspst.1 outlook.pst.5 + EXTRA_DIST = $(man_MANS) + all: all-am + diff --git a/mail/pst-utils/patches/patch-src_libpst.c b/mail/pst-utils/patches/patch-src_libpst.c new file mode 100644 index 00000000000..121aba9925c --- /dev/null +++ b/mail/pst-utils/patches/patch-src_libpst.c @@ -0,0 +1,20 @@ +$NetBSD: patch-src_libpst.c,v 1.1 2019/11/15 11:09:15 sborrill Exp $ + +Fix segfault as per: +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875894#25 + +Fix will be in next release + +--- src/libpst.c.orig 2019-11-14 16:48:41.000000000 +0000 ++++ src/libpst.c 2019-11-14 16:49:24.000000000 +0000 +@@ -409,6 +409,10 @@ + + int pst_close(pst_file *pf) { + DEBUG_ENT("pst_close"); ++ if (!pf) { ++ DEBUG_RET(); ++ return 0; ++ } + if (!pf->fp) { + DEBUG_RET(); + return 0; |