network/nmh: Removed (unmaintained)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org> Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
b71fcd978f
commit
780c6943a4
|
@ -1,10 +0,0 @@
|
|||
nmh (new MH) is a powerful electronic mail handling system. nmh
|
||||
consists of a collection of fairly simple single-purpose programs
|
||||
to send, receive, save, retrieve, and manipulate e-mail
|
||||
messages. Since nmh is a suite rather than a single monolithic
|
||||
program, you may freely intersperse nmh commands with other
|
||||
commands at your shell prompt, or write custom scripts which use
|
||||
these commands in flexible ways.
|
||||
|
||||
This build includes configure options for setting up nmh with GNU
|
||||
Emacs' MH-E frontend.
|
|
@ -1,13 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
|
@ -1,96 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SlackBuild for New MH System (nmh)
|
||||
# Joel J. Adamson <adamsonj@email.unc.edu>
|
||||
|
||||
PRGNAM=nmh
|
||||
VERSION=1.3
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) 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
|
||||
rm -rf $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc/nmh \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--with-perl=/usr/bin/perl \
|
||||
--enable-mhe \
|
||||
--with-editor=emacsclient \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs 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
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
INSTALL README COPYRIGHT DATE MACHINES docs/ \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
# Let's not clobber config files
|
||||
( cd $PKG/etc/nmh
|
||||
for i in * ; do
|
||||
mv $i $i.new
|
||||
printf "config etc/nmh/$i.new\n" >> $PKG/install/doinst.sh
|
||||
done
|
||||
printf "\n" >> $PKG/install/doinst.sh
|
||||
)
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -1,10 +0,0 @@
|
|||
PRGNAM="nmh"
|
||||
VERSION="1.3"
|
||||
HOMEPAGE="http://www.nongnu.org/nmh/"
|
||||
DOWNLOAD="http://download.savannah.nongnu.org/releases/nmh/nmh-1.3.tar.gz"
|
||||
MD5SUM="a52d1f93e780d7a045207451ce6c9a4e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Joel J. Adamson"
|
||||
EMAIL="adamsonj@email.unc.edu"
|
||||
APPROVED="rworkman"
|
|
@ -1,19 +0,0 @@
|
|||
# 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-------------------------------------------------------|
|
||||
nmh: nmh (The New Message Handler)
|
||||
nmh:
|
||||
nmh: nmh (new MH) is a powerful electronic mail handling system. nmh
|
||||
nmh: consists of a collection of fairly simple single-purpose programs
|
||||
nmh: to send, receive, save, retrieve, and manipulate e-mail
|
||||
nmh: messages. Since nmh is a suite rather than a single monolithic
|
||||
nmh: program, you may freely intersperse nmh commands with other
|
||||
nmh: commands at your shell prompt, or write custom scripts which use
|
||||
nmh: these commands in flexible ways.
|
||||
nmh:
|
||||
nmh: http://www.nongnu.org/nmh/
|
Loading…
Reference in New Issue