libraries/libpst: Added (MS Outlook PST file library and utilities)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Roberto Neri 2011-05-17 14:32:48 -05:00 committed by Robby Workman
parent e6ca8e0c38
commit d09694e577
4 changed files with 125 additions and 0 deletions

9
libraries/libpst/README Normal file
View file

@ -0,0 +1,9 @@
The libpst project includes a library and a set of utilities to decode
and convert MS Outlook PST files.
readpst - convert PST files to mbox and other formats
lspst - list PST (MS Outlook Personal Folders) file data
pst2ldif - extract contacts from a PST file in .ldif format
pst2dii - extract email messages from a PST file in DII load format
Also included is a man(5) page which describes the format of PST files.

View file

@ -0,0 +1,87 @@
#!/bin/sh
# Slackware build script for libpst
# Written by Roberto Neri <rneri@libero.it>
PRGNAM=libpst
VERSION=${VERSION:-0.6.51}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-dii \
--disable-static \
--enable-libpst-shared \
--enable-python \
--build=$ARCH-slackware-linux
make
# ./configure does not provide --docdir,
# it is necessary to override "htmldir" and "htmldeveldir"
make install DESTDIR=$PKG \
htmldir=/usr/doc/$PRGNAM-$VERSION \
htmldeveldir=/usr/doc/$PRGNAM-$VERSION/devel
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Package documentation has aready been copied
# into $PKG/usr/doc/$PRGNAM-$VERSION by "make install"
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="libpst"
VERSION="0.6.51"
HOMEPAGE="http://www.five-ten-sg.com/libpst/"
DOWNLOAD="http://www.five-ten-sg.com/libpst/packages/libpst-0.6.51.tar.gz"
MD5SUM="59dec842e192dd494d4c2b639b9a38e1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Roberto Neri"
EMAIL="rneri@libero.it"
APPROVED="rworkman"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
libpst: libpst (MS Outlook Personal Folders converter)
libpst:
libpst: The libpst project includes a library and a set of utilities to decode
libpst: and convert MS Outlook PST files.
libpst:
libpst: readpst - convert PST files to mbox and other formats
libpst: lspst - list PST (MS Outlook Personal Folders) file data
libpst: pst2ldif - extract contacts from a PST file in .ldif format
libpst: pst2dii - extract email messages from a PST file in DII load format
libpst:
libpst: Homepage: http://www.five-ten-sg.com/libpst/