network/wvdial: Added (ppp dialer app)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Moritz Wilhelmy 2010-12-27 01:28:55 -06:00 committed by Niels Horn
parent ce9927e1f7
commit 5e393451a0
6 changed files with 152 additions and 0 deletions

6
network/wvdial/README Normal file
View File

@ -0,0 +1,6 @@
WvDial is a program that makes it easy to connect your Linux workstation
to the Internet via modem lines. It will automatically detect your modem, and it
can log into almost any Internet provider's server without any special
configuration.
This requires wvstreams.

17
network/wvdial/doinst.sh Normal file
View File

@ -0,0 +1,17 @@
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...
}
config etc/wvdial.conf.new
config etc/ppp/peers/wvdial-pipe.new
config etc/ppp/peers/wvdial.new

19
network/wvdial/slack-desc Normal file
View 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------------------------------------------------------|
wvdial: wvdial (ppp dialer app)
wvdial:
wvdial: wvdial is a program that makes it easy to connect your Linux
wvdial: workstation to the Internet via modem lines.
wvdial:
wvdial: It will automatically detect your modem, and it can log into almost
wvdial: any Internet provider's server without any special configuration.
wvdial:
wvdial: Homepage: http://alumnit.ca/wiki/index.php?page=WvDial
wvdial:
wvdial:

View File

@ -0,0 +1,80 @@
#!/bin/sh
# Slackware build script for wvdial
# Previously maintained by Vincent Batts, vbatts@batts.mine.nu (Thank you!)
# Currently maintained by Moritz Wilhelmy, moritz+slackware@wzff.de
PRGNAM=wvdial
VERSION=${VERSION:-1.61}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
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 # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -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 {} \;
./configure
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make prefix=$PKG/usr PPPDIR=$PKG/etc/ppp/peers MANDIR=$PKG/usr/man install
cat $CWD/wvdial.conf > $PKG/etc/wvdial.conf.new
mv $PKG/etc/ppp/peers/wvdial-pipe $PKG/etc/ppp/peers/wvdial-pipe.new
mv $PKG/etc/ppp/peers/wvdial $PKG/etc/ppp/peers/wvdial.new
find $PKG | xargs 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
cp -a \
CHANGES COPYING.LIB ChangeLog FAQ README TODO MENUS \
$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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,20 @@
[Dialer Defaults]
Modem = /dev/modem
Baud = 57600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Area Code =
Phone = 0
Username =
Password =
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 300
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

View File

@ -0,0 +1,10 @@
PRGNAM="wvdial"
VERSION="1.61"
HOMEPAGE="http://alumnit.ca/wiki/index.php?page=WvDial"
DOWNLOAD="http://wvstreams.googlecode.com/files/wvdial-1.61.tar.gz"
MD5SUM="acd3b2050c9b65fff2aecda6576ee7bc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Moritz Wilhelmy"
EMAIL="moritz+slackware@wzff.de"
APPROVED="rworkman"