Update to 0.5.1

Change home of project

PR:		86554
Submitted by:	Jonathan <afarsec@012.net.il>
Approved by:	pav (mentor), natey@natey.com (maintainer)
This commit is contained in:
Marcus Alves Grando 2005-09-27 17:41:00 +00:00
parent ebb76bfcdb
commit f146dd6db4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143639
13 changed files with 158 additions and 57 deletions

View file

@ -5,17 +5,18 @@
# $FreeBSD$
#
PORTNAME= libpst
PORTVERSION= 0.4.1
CATEGORIES= mail converters
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ol2mbox
DISTNAME= libpst_0.4.1
EXTRACT_SUFX= .tgz
PORTNAME= libpst
PORTVERSION= 0.5.1
CATEGORIES= mail converters
MASTER_SITES= http://alioth.debian.org/download.php/844/
EXTRACT_SUFX= .tgz
MAINTAINER= natey@natey.com
MAINTAINER= natey@natey.com
COMMENT= A tool for converting Outlook .pst files to Unix mbox format
PLIST_FILES= bin/readpst
USE_GMAKE= YES
MAN1= readpst.1 readpstlog.1
PLIST_FILES= bin/readpst bin/readpstlog bin/lspst
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (libpst_0.4.1.tgz) = c574f5c6938cb73bccf7b661b0ad1329
SIZE (libpst_0.4.1.tgz) = 47443
MD5 (libpst-0.5.1.tgz) = 0a80562bf7c503f9d3fdd96e0de10408
SIZE (libpst-0.5.1.tgz) = 89256

View file

@ -0,0 +1,40 @@
--- 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/

View file

@ -1,11 +0,0 @@
--- libpst.c.orig Fri Dec 13 20:32:35 2002
+++ libpst.c Fri Dec 13 20:32:40 2002
@@ -3,8 +3,6 @@
#include <time.h>
#include <string.h>
#include <ctype.h>
-#include <getopt.h>
-//#include <values.h>
#include <limits.h>
#include <errno.h>

View file

@ -1,10 +0,0 @@
--- readpst.c.orig Fri Dec 13 20:26:53 2002
+++ readpst.c Fri Dec 13 20:27:06 2002
@@ -3,7 +3,6 @@
#include <time.h>
#include <string.h>
#include <ctype.h>
-#include <getopt.h>
#include <limits.h>
#ifndef WIN32

View file

@ -1,24 +0,0 @@
--- Makefile.orig Fri Jan 17 18:09:52 2003
+++ Makefile Fri Jan 17 18:11:11 2003
@@ -1,3 +1,6 @@
+EPREFIX= $(PREFIX)
+BINDIR= $(EPREFIX)/bin
+
all: readpst getidblock
libpst.o: libpst.c libpst.h define.h
@@ -19,6 +22,14 @@
getidblock: getidblock.c define.h libpst.o common.h debug.o
gcc -Wall -Werror getidblock.c -g -o getidblock libpst.o debug.o timeconv.o
+
+install: installbin
+
+installbin: readpst
+ mkdir -p $(BINDIR)
+ cp readpst $(BINDIR)
+ strip $(BINDIR)/readpst
+ chmod 755 $(BINDIR)/readpst
clean:
rm -f core readpst libpst.o timeconv.o libstrfunc.o debug.o getidblock *~

View file

@ -0,0 +1,33 @@
--- 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;

View file

@ -0,0 +1,13 @@
--- 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;

View file

@ -0,0 +1,21 @@
--- 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)

View file

@ -0,0 +1,11 @@
--- 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

View file

@ -0,0 +1,11 @@
--- 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;

View file

@ -0,0 +1,16 @@
--- 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;

View file

@ -3,7 +3,7 @@ readpst: A tool for converting Outlook .pst files to Unix mbox format
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.
WWW: http://sourceforge.net/projects/ol2mbox
WWW: http://alioth.debian.org/projects/libpst/
- Natey
natey@natey.com