# ChangeLog for net-mail/libpst
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/libpst/ChangeLog,v 1.2 2004/06/24 23:23:59 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/libpst/ChangeLog,v 1.3 2004/12/04 10:59:48 ka0ttic Exp $
+
+*libpst-0.4.1 (04 Dec 2004)
+
+ 04 Dec 2004; Aaron Walker <ka0ttic@gentoo.org> metadata.xml,
+ +files/libpst-0.4.1-gentoo.diff, +libpst-0.4.1.ebuild:
+ Version bump which closes bug 73302; updated metadata.xml to reflect
+ forensics herd.
*libpst-0.3.4 (05 Mar 2004)
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 22a0a82e09a01f50649654e7917d1dc9 libpst-0.4.1.ebuild 844
MD5 57f77bb0c1a6899ea8e2e15f57dbd0e7 libpst-0.3.4.ebuild 827
-MD5 1d2697c3ff7326adde1fe45f9a25d4ed ChangeLog 342
-MD5 6b6c7b74595f5a5ddf5556b82253d873 metadata.xml 290
+MD5 62995b9cb99757066dcd131c242d9139 ChangeLog 580
+MD5 768a13691288420664ddb9cb57d80098 metadata.xml 163
+MD5 f260c24ce039763570ebfdb471a95da0 files/libpst-0.4.1-gentoo.diff 2866
MD5 d621aa03d78f16aafbe1997329cdab1c files/digest-libpst-0.3.4 60
+MD5 2963ca6f8a38b54cd58daa16910ecdcd files/digest-libpst-0.4.1 60
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBsZjIEZCkKN40op4RAvgQAKCJfr9VofVToyf9Tra0rCcs/BhdgwCZAZXC
++WIqe5WrtveyUz3eNKR+kSk=
+=s14Y
+-----END PGP SIGNATURE-----
--- /dev/null
+Files libpst_0.4.1.orig/debug.o and libpst_0.4.1/debug.o differ
+Files libpst_0.4.1.orig/getidblock and libpst_0.4.1/getidblock differ
+Files libpst_0.4.1.orig/libpst.o and libpst_0.4.1/libpst.o differ
+Files libpst_0.4.1.orig/libstrfunc.o and libpst_0.4.1/libstrfunc.o differ
+diff -urN libpst_0.4.1.orig/Makefile libpst_0.4.1/Makefile
+--- libpst_0.4.1.orig/Makefile 2004-12-04 04:39:40.815705272 -0500
++++ libpst_0.4.1/Makefile 2004-12-04 04:45:40.340049264 -0500
+@@ -1,27 +1,41 @@
++CC = gcc
++INSTALL = install
++MYFLAGS = -Wall
++PREFIX = /usr
++BINDIR = $(PREFIX)/bin
++INCLUDEDIR = $(PREFIX)/inclue
++LIBDIR = $(PREFIX)/lib
++
+ all: readpst getidblock
+
+ libpst.o: libpst.c libpst.h define.h
+- gcc -c -Wall -Werror libpst.c -g -o libpst.o
++ $(CC) -c libpst.c $(MYFLAGS) $(CFLAGS) -o libpst.o
+
+ libstrfunc.o: libstrfunc.c libstrfunc.h
+- gcc -c -Wall -Werror libstrfunc.c -g -o libstrfunc.o
++ $(CC) -c libstrfunc.c $(MYFLAGS) $(CFLAGS) -o libstrfunc.o
+
+ debug.o: debug.c
+- gcc -c debug.c -Wall -Werror -g -o debug.o
++ $(CC) -c debug.c $(MYFLAGS) $(CFLAGS) -o debug.o
+
+ readpst: readpst.c define.h libpst.o timeconv.o libstrfunc.o common.h debug.o
+ # ccmalloc gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o
+ # gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o -lefence
+- gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o
++ $(CC) $(MYFLAGS) $(CFLAGS) readpst.c -o readpst libpst.o timeconv.o libstrfunc.o debug.o $(LDFLAGS)
+
+ timeconv.o: timeconv.c timeconv.h common.h
+- gcc -c -Wall -Werror timeconv.c -g -o timeconv.o
++ $(CC) -c timeconv.c $(MYFLAGS) $(CFLAGS) -o timeconv.o
+
+ 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
++ $(CC) $(MYFLAGS) $(CFLAGS) getidblock.c -o getidblock libpst.o debug.o timeconv.o $(LDFLAGS)
+
+ clean:
+ rm -f core readpst libpst.o timeconv.o libstrfunc.o debug.o getidblock *~
+
+ rebuild: clean all
+
++install:
++ $(INSTALL) -d $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(INCLUDEDIR) \
++ $(DESTDIR)/$(LIBDIR)
++ $(INSTALL) readpst getidblock $(DESTDIR)/$(BINDIR)
++ $(INSTALL) -m0644 libpst.h $(DESTDIR)/$(INCLUDEDIR)
++ $(INSTALL) -m0644 libpst.o $(DESTDIR)/$(LIBDIR)
+Files libpst_0.4.1.orig/readpst and libpst_0.4.1/readpst differ
+diff -urN libpst_0.4.1.orig/readpst.c libpst_0.4.1/readpst.c
+--- libpst_0.4.1.orig/readpst.c 2004-12-04 04:39:41.086664080 -0500
++++ libpst_0.4.1/readpst.c 2004-12-04 04:39:40.755714392 -0500
+@@ -718,6 +718,7 @@
+ //return that value
+ char *dir, *out_name, *index;
+ int x;
++ dir = out_name = index = NULL;
+ if (kmail_chdir != NULL && chdir(kmail_chdir)) {
+ x = errno;
+ DIE(("mk_kmail_dir: Cannot change to directory %s: %s\n", dir, strerror(x)));
+Files libpst_0.4.1.orig/timeconv.o and libpst_0.4.1/timeconv.o differ
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/libpst/libpst-0.4.1.ebuild,v 1.1 2004/12/04 10:59:48 ka0ttic Exp $
+
+inherit eutils
+
+MY_P="${P/-/_}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Tools and library for reading Outlook files (.pst format)"
+# note: HOMEPAGE is outdated ; current upstream page is unknown
+HOMEPAGE="http://sourceforge.net/projects/ol2mbox"
+SRC_URI="mirror://gentoo/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc README AUTHORS CREDITS TODO FILE-FORMAT || die "dodoc failed"
+ dohtml FILE-FORMAT.html || die "dohtml failed"
+}