Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > b29eb9e9988119eaabad50f9c1a39196 > files > 4

ibod-1.4-2mdk.src.rpm

Summary: Ibod - ISDN MPPP bandwidth on demand daemon
Name: ibod
Version: 1.4
Release: 2mdk
Source0: http://www.compound.se/download/%{name}-%{version}-src.tar.bz2
Source1: ibod.init
Patch0: ibod.cf.patch.bz2
URL: http://www.compound.se/ibod.html
License: GPL
Group: Networking/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description 
ibod is a ISDN MPPP bandwidth on demand daemon designed to operate
in conjunction with isdn4linux.
It is normally started at boot time, but can be started and stopped
at any time. The program monitors inbound and outbound traffic on
the ISDN interface. When the required bandwidth exceeds the capacity
for one IDSN B-channel (64kbps) a second (slave) channel is connected
according to the MPPP protocol. When the traffic decreases below
one channel capacity, the slave channel is disconnected.

%prep
%setup -q -c -n ibod
%patch0 -p0

%build
%make

%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ppp
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
install -m755 ibod $RPM_BUILD_ROOT/%{_sbindir}
install -m644 ibod.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
install -m644 ibod.cf.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
install -m644 ibod.cf $RPM_BUILD_ROOT/%{_sysconfdir}/ppp/
install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/ibod
ln -s /etc/rc.d/init.d/ibod $RPM_BUILD_ROOT/usr/sbin/rcibod

%clean
rm -rf $RPM_BUILD_ROOT

%post
chkconfig --add ibod

%preun
[ -f /var/lock/subsys/ibod  ] && /etc/rc.d/init.d/ibod stop
/sbin/chkconfig --del ibod

%files
%defattr(-,root,root)
%{_sbindir}/*
%{_mandir}/man1/ibod.1*
%{_mandir}/man4/ibod.cf.4*
%config(noreplace) %{_initrddir}/ibod
%config(noreplace) %{_sysconfdir}/ppp/ibod.cf

%changelog
* Fri Aug  3 2001 dam's <damien@mandrakesoft.com> 1.4-2mdk
- corrected %%post

* Fri Aug  3 2001 dam's <damien@mandrakesoft.com> 1.4-1mdk
- macrozification
- version 1.4
- mandrake adaptation

* Mon Dec 13 1999 Mirko Zeibig <mz@webideal.de>
- changed vendor-tag, so one can find the rpm as well.
* Fri Oct 22 1999 Mirko Zeibig <mz@webideal.de>
- composed the rpm, included a start-up-file for ibod