From 8e7effbb1415dc68b80b89cc913be13a7c780c6b Mon Sep 17 00:00:00 2001 From: Grigorios Bouzakis Date: Tue, 11 May 2010 20:01:32 +0200 Subject: network/fdm: Added to 12.0 repository --- network/fdm/README | 11 ++++++++++ network/fdm/fdm.SlackBuild | 54 ++++++++++++++++++++++++++++++++++++++++++++++ network/fdm/fdm.info | 8 +++++++ network/fdm/slack-desc | 19 ++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 network/fdm/README create mode 100644 network/fdm/fdm.SlackBuild create mode 100644 network/fdm/fdm.info create mode 100644 network/fdm/slack-desc (limited to 'network') diff --git a/network/fdm/README b/network/fdm/README new file mode 100644 index 000000000000..b0fc48f4def8 --- /dev/null +++ b/network/fdm/README @@ -0,0 +1,11 @@ +fdm is a program to fetch mail and deliver it in various ways depending on a +user-supplied ruleset. Mail may be fetched from stdin, IMAP or POP3 servers, or +from local maildirs, and filtered based on whether it matches a regexp, its +size or age, or the output of a shell command. It can be rewritten by an +external process, dropped, left on the server or delivered into maildirs, +mboxes, to a file or pipe, or any combination. + +fdm is designed to be lightweight but powerful, with a compact but clear +configuration syntax. It is primarily designed for single-user uses but may +also be configured to deliver mail in a multi-user setup. In this case, it uses +privilege separation to minimise the amount of code running as the root user. diff --git a/network/fdm/fdm.SlackBuild b/network/fdm/fdm.SlackBuild new file mode 100644 index 000000000000..6d0490ac0bc3 --- /dev/null +++ b/network/fdm/fdm.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh + +# Slackware build script for fdm + +# Written by Grigorios Bouzakis (grbzks@gmail.com) +set -e + +PRGNAM=fdm +VERSION=1.2 +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" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +make +make PREFIX=$PKG/usr install + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( 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 +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES MANUAL README TODO examples $PKG/usr/doc/$PRGNAM-$VERSION +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.tgz diff --git a/network/fdm/fdm.info b/network/fdm/fdm.info new file mode 100644 index 000000000000..05016e875085 --- /dev/null +++ b/network/fdm/fdm.info @@ -0,0 +1,8 @@ +PRGNAM="fdm" +VERSION="1.2" +HOMEPAGE="http://fdm.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/fdm/fdm-1.2.tar.gz" +MD5SUM="e2ae2c34364daef98528ce826ae006c9" +MAINTAINER="Grigorios Bouzakis" +EMAIL="grbzks@gmail.com" +APPROVED="BP{k}" diff --git a/network/fdm/slack-desc b/network/fdm/slack-desc new file mode 100644 index 000000000000..1bcc2e70a414 --- /dev/null +++ b/network/fdm/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 ':'. + + |-----handy-ruler------------------------------------------------------| +fdm: fdm (Simple, lightweight replacement for fetc/getmail type programs) +fdm: +fdm: fdm is a program to fetch mail and deliver it in various ways +fdm: depending on a user-supplied ruleset. Mail may be fetched from stdin, +fdm: IMAP or POP3 servers, or from local maildirs, and filtered based on +fdm: whether it matches a regexp, its ize or age, or the output of a shell +fdm: command.It can be rewritten by an external process, dropped, left on +fdm: the server or delivered into maildirs, mboxes, to a file or pipe, or +fdm: any combination. +fdm: homepage: fdm: http://fdm.sourceforge.net/ +fdm: -- cgit v1.2.3