# spec file
#

#===============================================================================
# defines

%define MY_PACKAGE	Eznet
%define MY_BIN_PACKAGE	eznet
%define	MY_VERSION	1.11.1
%define MY_RELEASE	1
%define MY_GROUP	Networking/Utilities

#===============================================================================
# Preamble

#===
# Package Name Tags

Name: %{MY_PACKAGE}
Version: %{MY_VERSION}
Release: %{MY_RELEASE}

#===
# Descriptive Tags

Summary: EZnet makes PPP connections EZ!
Copyright: GPL
Distribution: Unix/Linux
#Icon:
Vendor: Kent Robotti <krobot@erols.com>
URL: http://www.hwaci.com/sw/eznet
Group: %{MY_GROUP}
Packager: John W. Woznack <jwoznack@concentric.net>
Source0: %{MY_PACKAGE}-%{MY_VERSION}.tar.gz

%description
EZNET is a easy-to-use, user-friendly way to set up your
PPP daemon. Get it if you're having trouble creating a chat
script to connect to your service provider with pppd & chat.

#===
# Dependancy Tags

Provides: %{MY_PACKAGE}
#Requires:
Serial: %{MY_RELEASE}
#Conflicts:
AutoReqProv: Yes

#===
# Arch/OS Tags

#ExcludeArch:
#ExclusiveArch:
ExcludeOS: Win95 Win98 WinNT
#ExclusiveOS:

#===
# Directory Tags

#Prefix:
#BuildRoot:

#===
# Source/Patch Tags

#NoSource:
#Patch:
#NoPatch:

#==
# Sub Package(s) 
#  (including the binary ones we want!)
#  (don't forget to add the %files line for it!)

%package -n %{MY_BIN_PACKAGE}
Summary: EZnet ppp connection manager
Group: %{MY_GROUP}
Provides: %{MY_BIN_PACKAGE}
%description -n %{MY_BIN_PACKAGE}
EZNET is a easy-to-use, user-friendly way to set up your
PPP daemon. Get it if you're having trouble creating a chat
script to connect to your service provider with pppd & chat.

#===============================================================================
# Scripts

#===
# Prep

%prep
%setup -c

#cd %{MY_PACKAGE}-%{MY_VERSION}
# patch, if needed
#cd ..

#===
# Build

%build

# make the libraries reentrant
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT"

cd %{MY_PACKAGE}-%{MY_VERSION}

#%configure --enable-shared --enable-gcc
make
cd ..

#===
# Pre-Install

%pre

#===
# Install

%install

cd %{MY_PACKAGE}-%{MY_VERSION}
make install
cd ..

#===
# Post-Install

%post

#===
# Pre-UnInstall

%preun

#===
# Post-UnInstall

%postun

#===
# Verify
%verifyscript

#===
# Clean

%clean
rm -rf $RPM_BUILD_ROOT

#===============================================================================
# Files

%files -n %{MY_BIN_PACKAGE}
%doc %{MY_PACKAGE}-%{MY_VERSION}/eznet-1.11.1.lsm
%doc %{MY_PACKAGE}-%{MY_VERSION}/eznet.txt
/usr/bin/eznet

#===============================================================================
# Change Log

%changelog
* Tue Feb 24 1998 Kent Robotti <krobot@erols.com>
- Made these changes to eznet.c 1.11
- Changed DB_DIR to /etc/ppp/eznet
- Added 'asyncmap 0' to pppd options
- Changed sesion.html to sesion.log
- Changed idle 300 to 600
- Removed mtu and mru 552
- Added new line for Up since
- Changed /bin/kill -TERM `/sbin/pidof pppd` to kill -TERM `pidof pppd`
- Changed /bin/kill -TERM `/sbin/pidof diald` to kill -TERM `pidof diald`
