From 23d9f920ea277357ba8e058ce9d8e07ffcc4814e Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 21 Nov 2016 22:30:22 +0000 Subject: [PATCH] network/imapfilter: Updated for version 2.6.7 + new maintainer. Signed-off-by: David Spencer --- network/imapfilter/README | 15 +++--- network/imapfilter/imapfilter.SlackBuild | 61 +++++++++++++++--------- network/imapfilter/imapfilter.info | 12 ++--- network/imapfilter/slack-desc | 14 +++--- 4 files changed, 61 insertions(+), 41 deletions(-) diff --git a/network/imapfilter/README b/network/imapfilter/README index 48011a5f0c..2f588db01b 100644 --- a/network/imapfilter/README +++ b/network/imapfilter/README @@ -1,8 +1,11 @@ IMAPFilter (a mail filtering utility) -IMAPFilter connects to remote mail servers using the Internet -Message Access Protocol (IMAP), sends searching queries to the -server and processes mailboxes based on the results. It can be used -to delete, copy, move, flag, etc. messages residing in mailboxes at -the same or different mail servers. The 4rev1 and 4 versions of the -IMAP protocol are supported. +IMAPFilter is a mail filtering utility. It connects to remote mail +servers using the Internet Message Access Protocol (IMAP), sends +searching queries to the server and processes mailboxes based on the +results. It can be used to delete, copy, move, flag, etc. messages +residing in mailboxes at the same or different mail servers. The +4rev1 and 4 versions of the IMAP protocol are supported. + +IMAPFilter uses the Lua programming language as a configuration and +extension language. diff --git a/network/imapfilter/imapfilter.SlackBuild b/network/imapfilter/imapfilter.SlackBuild index ef5103b12e..98ea79e011 100644 --- a/network/imapfilter/imapfilter.SlackBuild +++ b/network/imapfilter/imapfilter.SlackBuild @@ -1,16 +1,36 @@ #!/bin/sh -# Slackware build script for IMAPFilter -# Written by Šime Ramov +# Slackware build script for imapfilter + +# Copyright 2010 Šime Ramov +# Copyright 2016 Andrew Clemons, Wellington, New Zealand +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=imapfilter -VERSION=${VERSION:-2.2.2} +VERSION=${VERSION:-2.6.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -21,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -41,32 +61,29 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xzf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure -p /usr -make -make install DESTDIR=$PKG +sed -i "s/\(MYCFLAGS =\)/\1 $SLKCFLAGS/" src/Makefile -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +make PREFIX=/usr all +make PREFIX=/usr DESTDIR=$PKG MANDIR=/usr/man install + +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 -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE NEWS README sample.* \ + AUTHORS LICENSE Makefile NEWS README samples \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/network/imapfilter/imapfilter.info b/network/imapfilter/imapfilter.info index faed20ade8..dccfd108c8 100644 --- a/network/imapfilter/imapfilter.info +++ b/network/imapfilter/imapfilter.info @@ -1,10 +1,10 @@ PRGNAM="imapfilter" -VERSION="2.2.2" -HOMEPAGE="http://imapfilter.hellug.gr/" -DOWNLOAD="http://imapfilter.hellug.gr/source/imapfilter-2.2.2.tar.gz" -MD5SUM="d917416499f4dd5a0112f7fb89523a97" +VERSION="2.6.7" +HOMEPAGE="https://github.com/lefcha/imapfilter" +DOWNLOAD="https://github.com/lefcha/imapfilter/archive/v2.6.7/imapfilter-2.6.7.tar.gz" +MD5SUM="3843adf279122ed8d666a6855ba4e7c8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="lua" -MAINTAINER="Šime Ramov" -EMAIL="s@ramov.com" +MAINTAINER="Andrew Clemons" +EMAIL="andrew.clemons@gmail.com" diff --git a/network/imapfilter/slack-desc b/network/imapfilter/slack-desc index 1d47716d6b..ab5ba58b81 100644 --- a/network/imapfilter/slack-desc +++ b/network/imapfilter/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| imapfilter: imapfilter (a mail filtering utility) imapfilter: -imapfilter: IMAPFilter connects to remote mail servers using the Internet -imapfilter: Message Access Protocol (IMAP), sends searching queries to the -imapfilter: server and processes mailboxes based on the results. It can be used -imapfilter: to delete, copy, move, flag, etc. messages residing in mailboxes at -imapfilter: the same or different mail servers. +imapfilter: IMAPFilter is a mail filtering utility. It connects to remote mail +imapfilter: servers using the Internet Message Access Protocol (IMAP), sends +imapfilter: searching queries to the server and processes mailboxes based on the +imapfilter: results. It can be used to delete, copy, move, flag, etc. messages +imapfilter: residing in mailboxes at the same or different mail servers. The +imapfilter: 4rev1 and 4 versions of the IMAP protocol are supported. imapfilter: imapfilter: IMAPFilter uses the Lua programming language as a configuration and -imapfilter: extension language. -imapfilter: +imapfilter: extension language.