info: diald.spec, rdate.spec

Marek Obuchowicz elephant w shadow.eu.org
Pon, 12 Paź 1998, 18:21:06 CEST


Ok, idą poprawione spece, oba programy przesłałem też do Wojtka i moim
zdaniem nie zaszkodziłoby żęby się znalazły w stable...

-- 
  Marek Obuchowicz, Member of the GNU generation
-------------- następna część ---------
Summary:     Remote clock reader (and local setter)
Summary(de): Entfernter Uhrenleser (lokaler Einsteller)
Summary(fr): Lecteur d'horloge distante (et configurateur local)
Summary(pl): Program podający (i ustawiający) zdalny czas zegara
Summary(tr): Ađ üzerinden sistem saatini ayarlayan yazýlým
Name:        rdate
%define versionmajor 0
%define versionminor 960923
Version:     %{versionmajor}.%{versionminor}
Release:     2d
Copyright:   none
Group:       Networking/Utilities
Source:      ftp://sunsite.unc.edu/pub/Linux/system/network/misc/%{name}-%{versionminor}.tar.gz
Patch:       %{name}-%{versionminor}-make.patch
Buildroot:   /var/tmp/%{name}-%{release}-%{version}-root


%description
rdate is a program that can retrieve the time from another
machine on your network.  If run as root, it will also set
your local time to that of the machine you queried.  It is
not super accurate; get xntpd if you are really worried
about milliseconds.


%description -l de
rdate ist ein Programm, das die Uhrzeit von einem anderen
Netzwerkrechner lesen kann. Wenn Sie es als root ausführen,
stellt es Ihre Ortszeit auf die des abgefragten Rechners ein. Es ist 
nicht sehr genau. Wenn Sie auf die Millisekunde genau sein 
wollen, besorgen Sie sich xntpd .

%description -l fr
rdate permet de récupérer l'heure d'une autre machine du réseau.
s'il est lancé par root, il configurera aussi votre heure locale
avec celle de la machine que vous avez interrogé. Il n'est pas
trčs précis ; si vous vous souciez des millisecondes, récupérez
xntpd.

%description -l pl
rdate jest programem który odczytuję datę i godzinę z innej
maszyny w sieci. Jeżeli jest uruchamiany jako root może także
ustawić czas na lokalnej maszynie. Nie jest zbyt dokładny,
jeżeli milisekundy mają dla ciebie znaczenie użyj xntpd.

%description -l tr
rdate ile herhangi baţka bir makinadan sistem saatini sorgulanabilir. Yetkili
kullanýcý tarafýndan çalýţtýrýlýrsa sistem saatini ayarlamak da mümkündür. Ne
var ki bu uygulama çok hassas deđildir.

%prep
%setup -q -n %{name}
%patch -p1

%build
make clean
make

%install
install -d $RPM_BUILD_ROOT/usr/{bin,man/man1}
install -s rdate $RPM_BUILD_ROOT/usr/bin
install rdate.1 $RPM_BUILD_ROOT/usr/man/man1

%files
%defattr(644,root,root,755)
%attr(711,root,root) /usr/bin/rdate
/usr/man/man1/rdate.1

%changelog
* Mon Oct 12 1998 Marek Obuchowicz <elephant w shadow.eu.org>
[0.960923-2d]
- Minor modifications of spec file

* Sun Oct 11 1998 Marek Obuchowicz <elephant w shadow.eu.org>
[0.960923-1d]
- changelog moved to the end of spec
- some other modifications of spec file
- build from non-root account
- fixed file permissons

* Tue May 05 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr


* Mon Oct 20 1997 Otto Hammersmith <otto w redhat.com>

- fixed the url to the source

* Mon Jul 21 1997 Erik Troan <ewt w redhat.com>

- built against glibc
-------------- 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:     2d
Copyright:   Freely distributable (see LICENSE)
Group:       Networking/Daemons
Source0:     ftp://ftp.pht.com/.3/sunsite/Incoming/%{name}-%{versionmajor}.tar.gz
Source1:     diald-config+scripts.tar.gz
Patch:       %{name}.patch
Requires:    ppp
Buildroot:   /var/tmp/%{name}-%{version}-%{release}-root
Summary(pl): Demon który dostarcza na żądanie połączenia SLIP lub PPP.

%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 -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.

%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(755,root,root) %dir /etc/diald
%attr(660,root,root) %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

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

%changelog
* Mon Oct 12 1998 Marek Obuchowicz <elephant w shadow.eu.org>
[0.16.5-2d]
- Minor modifications of spec file
- Packages diald and diald-config merged into diald

* 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