summaryrefslogtreecommitdiff
path: root/network/wmnotify
diff options
context:
space:
mode:
Diffstat (limited to 'network/wmnotify')
-rw-r--r--network/wmnotify/README17
-rw-r--r--network/wmnotify/slack-desc19
-rw-r--r--network/wmnotify/wmnotify.SlackBuild103
-rw-r--r--network/wmnotify/wmnotify.info10
-rw-r--r--network/wmnotify/wmnotify.patch11
5 files changed, 160 insertions, 0 deletions
diff --git a/network/wmnotify/README b/network/wmnotify/README
new file mode 100644
index 0000000000..3ae2bccf0b
--- /dev/null
+++ b/network/wmnotify/README
@@ -0,0 +1,17 @@
+DockApp e-mail notification program for POP3 and IMAP4 servers
+
+wmnotify is a DockApp application, running under WindowMaker, to periodically check
+a POP3 or IMAP4 email account for new messages. It also supports SSL encryption.
+
+When new messages are detected, the mailbox image is animated to give a visual
+indication that new mail has arrived. Additionnally, if desired, a sound can be
+produced from a WAV or AU audio file, or from the console bell.For simplicity reasons,
+wmnotify doesn't support multiple POP3 accounts.
+
+But by starting a new instance of wmnotify and specifying an alternate configuration
+file on the command line, you can effectively check multiple POP3 accounts.
+
+NOTE: There's a PATCH inside the package to replace the non-stop animation
+ to a static image for incomming e-mails. Just edit the building script
+ and set the "PATCH" variable to "yes" or pass a parameter to the build script
+ PATCH=yes ./wmnotify.SlackBuild
diff --git a/network/wmnotify/slack-desc b/network/wmnotify/slack-desc
new file mode 100644
index 0000000000..3372fa8bfb
--- /dev/null
+++ b/network/wmnotify/slack-desc
@@ -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------------------------------------------------------|
+wmnotify: wmnotify (dock application)
+wmnotify:
+wmnotify: wmnotify is a dock application (dockapp), notification e-mail program
+wmnotify: forr POP3 and IMAP4 servers.
+wmnotify:
+wmnotify: wmnotify periodically check a POP3 or IMAP4 email account for new
+wmnotify: messages. It also supports SSL encryption.
+wmnotify:
+wmnotify: If desired, a sound can be played from a WAV or AU audio file,
+wmnotify: or from the console bell when a nem e-mail arrives.
+wmnotify:
diff --git a/network/wmnotify/wmnotify.SlackBuild b/network/wmnotify/wmnotify.SlackBuild
new file mode 100644
index 0000000000..dff1201d2f
--- /dev/null
+++ b/network/wmnotify/wmnotify.SlackBuild
@@ -0,0 +1,103 @@
+#!/bin/sh
+
+# Slackware build script for wmnotify
+
+# Copyright (c) 2014, Yanes Checcacci Balod <yanes@pobox.com>, Brazil
+# 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=wmnotify
+VERSION=${VERSION:-1.0.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PATCH=${PATCH:-no}
+
+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 xvzf $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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Do you want to Patch it? let'go!
+if [ $PATCH == "yes" ]; then
+ cp $CWD/wmnotify.patch ./src && cd src
+ patch -p0 < wmnotify.patch && cd ..
+fi
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man
+
+make
+make install DESTDIR=$PKG
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+# Collecting each file to DOC package build directory
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -a TODO AUTHORS ChangeLog COPYING INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION/
+
+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}
diff --git a/network/wmnotify/wmnotify.info b/network/wmnotify/wmnotify.info
new file mode 100644
index 0000000000..462b869488
--- /dev/null
+++ b/network/wmnotify/wmnotify.info
@@ -0,0 +1,10 @@
+PRGNAM="wmnotify"
+VERSION="1.0.0"
+HOMEPAGE="http://www.hugovil.com/projet.php?proj=wmnotify"
+DOWNLOAD="http://www.hugovil.com/repository/wmnotify/wmnotify-1.0.0.tar.gz"
+MD5SUM="47b00b26ea0c690bd8aaae52ee0b91c6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Yanes Checcacci Balod"
+EMAIL="yanes@pobox.com"
diff --git a/network/wmnotify/wmnotify.patch b/network/wmnotify/wmnotify.patch
new file mode 100644
index 0000000000..31e0d0d090
--- /dev/null
+++ b/network/wmnotify/wmnotify.patch
@@ -0,0 +1,11 @@
+--- wmnotify.c 2014-01-28 10:12:15.000000000 -0200
++++ wmnotify.c.new 2014-01-28 10:12:15.000000000 -0200
+@@ -285,7 +285,7 @@
+ {
+ if( animation_image == MAILBOX_FULL ) {
+ DisplayOpenedFullMailbox();
+- animation_image = MAILBOX_CLOSED;
++ animation_image = MAILBOX_FULL;
+ if( wmnotify_infos.debug ) {
+ printf( "%s: NewMailAnimation() MAILBOX_FULL.\n", PACKAGE );
+ }