#!/bin/sh

name="wvdial"
title="WvDial"
package="wvdial"
version="1.42"
build="1"
noarch="n"
build_info="Standard build."

info="A heuristic autodialer for PPP connections."
info_pl="Heurystyczny dialer połączeń PPP."
desc="WvDial automatically locates and configures modems and can log
into almost any ISP's server without special configuration. You
need to input the username, password, and phone number, and
then WvDial will negotiate the PPP connection using any
mechanism needed."
desc_pl="WvDial automatycznie lokalizuje i konfiguruje modem i
może logować się na niemal dowolnym serwerze ISP bez specjalnej
konfiguracji. Musisz podać tylko nazwę użytkownika, hasło i
numer telefonu, i wtedy WvDial będzie negocjował połączenie PPP
używając potrzebnego mechanizmu."
category="net/tools"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="ANNOUNCE,CHANGES,COPYING.LIB,README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source http://www.worldvisions.ca/$name/$name-$version.tar.gz

apply_patch wvdial-flags.pw.patch

make_option PREFIX=/usr
make_option BINDIR=/usr/bin
make_option MANDIR=/usr/man
install_option PREFIX=$pkg_main/usr
install_option BINDIR=$pkg_main/usr/bin
install_option MANDIR=$pkg_main/usr/man
install_option PPPDIR=$pkg_main/etc/ppp/peers

parent_package="$package"
write_info main

cd $src1

do_make
do_install

copy wvdial.conf.5 $pkg_main/usr/man/man5

make_docs

make_package main

clean_up
