mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/libvmime: Added to 13.0 repository
This commit is contained in:
parent
eac700bacb
commit
61f7c1665a
6 changed files with 140 additions and 0 deletions
4
libraries/libvmime/README
Normal file
4
libraries/libvmime/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
VMime is a free mail library for C++, an open-source solution for working
|
||||
with MIME messages and Internet messaging services like IMAP, POP or SMTP.
|
||||
|
||||
This requires libgsasl.
|
13
libraries/libvmime/flags.patch
Normal file
13
libraries/libvmime/flags.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- libvmime-0.9.0_orig/configure 2008-10-19 10:36:19.000000000 -0200
|
||||
+++ libvmime-0.9.0/configure 2009-12-17 09:17:29.000000000 -0200
|
||||
@@ -32224,8 +32224,8 @@
|
||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -D_REENTRANT=1 -D_THREAD_SAFE=1 $LIBGNUTLS_CFLAGS"
|
||||
EXTRA_LIBS="$GSASL_LIBS $LIBGNUTLS_LIBS"
|
||||
|
||||
-CFLAGS=""
|
||||
-CXXFLAGS=""
|
||||
+#CFLAGS=""
|
||||
+#CXXFLAGS=""
|
||||
|
||||
# -- Debug
|
||||
if test x$VMIME_DEBUG = x1 ; then
|
21
libraries/libvmime/gnutls-28.patch
Normal file
21
libraries/libvmime/gnutls-28.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- libvmime-0.9.0.orig/configure
|
||||
+++ libvmime-0.9.0/configure
|
||||
@@ -30792,12 +30792,14 @@
|
||||
{ echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
|
||||
echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
|
||||
no_libgnutls=""
|
||||
- if test "$LIBGNUTLS_CONFIG" = "no" ; then
|
||||
+# if test "$LIBGNUTLS_CONFIG" = "no" ; then
|
||||
+ if [ ! $(pkg-config --modversion gnutls-extra 2> /dev/null) ]; then
|
||||
no_libgnutls=yes
|
||||
else
|
||||
- LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
|
||||
- LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
|
||||
- libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
|
||||
+ LIBGNUTLS_CONFIG=""
|
||||
+ LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --cflags gnutls-extra`
|
||||
+ LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --libs gnutls-extra`
|
||||
+ libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args pkg-config --modversion gnutls-extra`
|
||||
|
||||
|
||||
ac_save_CFLAGS="$CFLAGS"
|
73
libraries/libvmime/libvmime.SlackBuild
Normal file
73
libraries/libvmime/libvmime.SlackBuild
Normal file
|
@ -0,0 +1,73 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for libvmime:
|
||||
# a library for working with MIME messages
|
||||
|
||||
# Written by Niels Horn - niels.horn@gmail.com
|
||||
# revision date 2009/12/17
|
||||
|
||||
PRGNAM=libvmime
|
||||
VERSION=0.9.0
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
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"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $TMP/$PRGNAM-$VERSION $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# Patch "configure" to accept gnutls-2.8 (Security patch in Slackware 13.0)
|
||||
# (Based on: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529834)
|
||||
patch -p1 < $CWD/gnutls-28.patch
|
||||
|
||||
# Force "configure" to respect our CFLAGS / CXXFLAGS
|
||||
patch -p1 < $CWD/flags.patch
|
||||
|
||||
CFLAGS=$SLKCFLAGS \
|
||||
CXXFLAGS=$SLKCFLAGS \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make docdir=/usr/doc/$PRGNAM-$VERSION
|
||||
make docdir=/usr/doc/$PRGNAM-$VERSION install DESTDIR=$PKG
|
||||
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
)
|
||||
|
||||
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}
|
10
libraries/libvmime/libvmime.info
Normal file
10
libraries/libvmime/libvmime.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="libvmime"
|
||||
VERSION="0.9.0"
|
||||
HOMEPAGE="http://www.vmime.org/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/vmime/vmime/0.9/libvmime-0.9.0.tar.bz2"
|
||||
MD5SUM="23feb9cff7ba3961c0693926e21448cf"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="rworkman"
|
19
libraries/libvmime/slack-desc
Normal file
19
libraries/libvmime/slack-desc
Normal 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 ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
libvmime: libvmime (library for working with MIME messages)
|
||||
libvmime:
|
||||
libvmime: VMime is a free mail library for C++, an open-source solution for
|
||||
libvmime: working with MIME messages and Internet messaging services like IMAP,
|
||||
libvmime: POP or SMTP.
|
||||
libvmime:
|
||||
libvmime: http://www.vmime.org/
|
||||
libvmime:
|
||||
libvmime:
|
||||
libvmime:
|
||||
libvmime:
|
Loading…
Reference in a new issue