info: diald.spec

Marek Obuchowicz elephant w shadow.eu.org
Nie, 11 Paź 1998, 21:33:50 CEST


Cześć!
Przyda się modemowcom - ogólnie mi się bardzo przydaje, gorzej jak
przychodzi rachunek......


-- 
  Marek Obuchowicz, Member of the GNU generation
-------------- następna część ---------
Summary: Daemon that provides on demand IP links via SLIP or PPP.
Name: diald
%define versionmajor 0.16
%define versionminor 5
Version: %{versionmajor}.%{versionminor}
Release: 1d
Source0: ftp://ftp.pht.com/.3/sunsite/Incoming/%{name}-%{versionmajor}.tar.gz
Source1: diald-config+scripts.tar.gz
Patch: %{name}.patch
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
Copyright: Freely distributable (see LICENSE)
Group: Networking/Daemons
Requires: ppp
Summary(pl): Daemon który dostarcza na żądanie połączenia SLIP lub PPP

%package config
Summary: Configuration files for diald
Summary(pl): Pliki konfiguracyjne dla diald
Group: Networking/Daemons
Requires: %{name} = %{version}

%description
The purpose of diald is to make it transparently appear that you have a
permanent connection to a remote site. Diald sets up a "proxy" device
which stands in for the physical connection to a remote site. It then
monitors the proxy, waiting for packets to arrive. When interesting
packets arrive it will attempt to establish the physical link to the
remote site using either SLIP or PPP, and if it succeeds it will forward
traffic from the proxy to the physical link. As well, diald will monitor
traffic once the physical link is up, and when it has determined that the
link is idle, the remote connection is terminated. The criteria for
bringing the link up and taking it down are configurable at run time, and
are based upon the type of traffic passing over the link. 

%description config 
These area a set of generic configuration files
for diald that live in the /etc/diald directory.  If you have already 
installed diald, do not install as they will move your current config files.

%description -l pl
Zadaniem diald jest stworzenie wrażenia stałego połączenia z innym
hostem. Diald ustawia urządzenie sieciowe podobne do proxy które
udaje stałe połączenie sieciowe. Następnie monitoruje to urządzenie
oraz oczekuje na przychodzące pakiety. Kiedy nadejdą odpowiednie
dane nawiązuje połączenie SLIP lub PPP i przekazuje do niego
pakiety z danymi. Kiedy diald wykryje, że na urządzenie "proxy" nie
przychodzą pakiety od pewnego czasu połączenie fizyczne z inną maszyną
zostaje zerwane. Kryteria uruchamiania oraz rozłączania połączenia
są możliwe do konfiguracji. Są one bazowane na typie i ilości danych
przechodzących przez połączenie.

%description -l pl config
Są to typowe pliki konfiguracyjne które znajdują się w katalogu
/etc/diald. Jeżeli wcześniej instalowałeś diald nie ma potrzeby
instalacji tego pakietu.

%prep
%setup -q -n %{name}-%{versionmajor} -a 1

%patch -p1

%build
make depend CPP="gcc -w -E"
make CFLAGS="$RPM_OPT_FLAGS -w"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/{etc/{diald,rc.d/init.d},usr/{bin,sbin,man/man{1,5,8},lib/diald}}
install bin/dctrl $RPM_BUILD_ROOT/usr/bin/dctrl
install -s diald $RPM_BUILD_ROOT/usr/sbin
install doc/diald.man $RPM_BUILD_ROOT/usr/man/man8/diald.8
install doc/dctrl.man $RPM_BUILD_ROOT/usr/man/man1/dctrl.1
install doc/diald-examples.man $RPM_BUILD_ROOT/usr/man/man5/diald-examples.5
install doc/diald-control.man $RPM_BUILD_ROOT/usr/man/man5/diald-control.5
install doc/diald-monitor.man $RPM_BUILD_ROOT/usr/man/man5/diald-monitor.5
install config/diald.defs $RPM_BUILD_ROOT/usr/lib/diald
install config/standard.filter $RPM_BUILD_ROOT/usr/lib/diald
install bin/connect $RPM_BUILD_ROOT/usr/lib/diald
cp -rp contrib $RPM_BUILD_ROOT/usr/lib/diald
install contrib/plain/connect $RPM_BUILD_ROOT/etc/diald
install contrib/plain/diald.conf $RPM_BUILD_ROOT/etc/diald
install contrib/plain/diald.defs $RPM_BUILD_ROOT/etc/diald
install contrib/plain/phone.filter $RPM_BUILD_ROOT/etc/diald
mknod -m 0660 $RPM_BUILD_ROOT/etc/diald/diald.ctl p
install contrib/plain/diald-on $RPM_BUILD_ROOT/usr/sbin
install contrib/plain/diald-off $RPM_BUILD_ROOT/usr/sbin
install contrib/plain/dialdc $RPM_BUILD_ROOT/usr/bin
install contrib/plain/diald.init $RPM_BUILD_ROOT/etc/rc.d/init.d/diald

%clean
rm -rf $RPM_BUILD_ROOT

%post
cat << _EOF_

Please configure diald - look at /etc/diald/connect and
/etc/diald/diald.conf.  Test diald by using the dialdc command. After
that run chkconfig -add diald to start diald on boot.

_EOF_

%preun
if [ $1 = 0 ] ; then
        chkconfig --del diald
fi

%files
%doc BUGS CHANGES LICENSE THANKS README doc/diald-faq.txt
%defattr(644,root,root,755)
%attr(660,root,root,755) %ghost /etc/diald/diald.ctl
%config %verify(not size mtime md5) /etc/rc.d/init.d/diald
%attr(711,root,root) /usr/sbin/diald
%attr(755,root,root) /usr/bin
%attr(755,root,root) /usr/sbin/diald-*
/usr/lib/diald
%attr(644,root,man,755) /usr/man

%files config
%attr(700,root,root) %config(noreplace) %verify(not size mtime md5) /etc/diald/connect
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/diald/diald.defs
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/diald/diald.conf
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/diald/phone.filter

%changelog
* Sun Oct 11 1998 Marek Obuchowicz <elephant w shadow.eu.org>
[0.16.5-1d]
- First release for PLD
- Build from non-root account
- Fixed binary permissions
- Build against glibc-2.1 and egcs-1.1
- Added polish translation
- Added RPM_OPT_FLAGS support
- Added -w to avoid warning messages during compilation
- %%config(noreplace) added to files in config package
- Other minor modifications of spec file


Więcej informacji o liście dyskusyjnej pld-devel-pl