]> git.pld-linux.org Git - packages/rusers.git/blob - rusers.spec
73c5cd84e623b0842866612f4bfa043f9b66ad59
[packages/rusers.git] / rusers.spec
1 Summary:        Displays the users logged into machines on the local network
2 Summary(de.UTF-8):      Anzeige von Login-Infos für entfernte Computer
3 Summary(es.UTF-8):      El cliente rusers
4 Summary(fr.UTF-8):      Affiche des informations de login pour les machines distantes
5 Summary(pl.UTF-8):      Wyświetla listę użytkowników zalogowanych na komputerach w sieci lokalnej
6 Summary(pt_BR.UTF-8):   Mostra a informação de login para máquinas remotas
7 Summary(tr.UTF-8):      Ağ üzerindeki makinalardaki kullanıcıları sorgular
8 Name:           rusers
9 Version:        0.17
10 Release:        29
11 License:        BSD
12 Group:          Networking
13 Source0:        ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
14 # Source0-md5:  dc99a80b9fde2ab427c874f88f1c1602
15 Source1:        %{name}d.init
16 Source2:        rstatd.init
17 Source3:        rstatd.tar.gz
18 # Source3-md5:  75c1f4b3df318cf509593af1ee1d52e5
19 Patch0:         netkit-%{name}-numusers.patch
20 Patch1:         rstatd-jbj.patch
21 Patch2:         netkit-%{name}-droppriv-later.patch
22 Patch3:         netkit-%{name}-includes.patch
23 BuildRequires:  procps-devel >= 1:3.2.5-3
24 BuildRequires:  rpmbuild(macros) >= 1.268
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 The rusers program allows users to find out who is logged into various
29 machines on the local network. The rusers command produces output
30 similar to who, but for the specified list of hosts or for all
31 machines on the local network.
32
33 %description -l de.UTF-8
34 Mit Hilfe des rusers-Server und Client (beide Teil dieses Pakets) kann
35 man herausfinden, welche Benutzer an welchen Rechnern im lokalen
36 Netwerk angemeldet sind.
37
38 %description -l fr.UTF-8
39 Le client et le serveur rusers, tous deux inclus dans ce package,
40 permettent aux utilisateurs de trouver quels utilisateurs sont
41 connectés sur les différentes machines du réseau local.
42
43 %description -l pl.UTF-8
44 Program rusers pozwala użytkownikom sprawdzić kto jest zalogowany na
45 różnych maszynach w sieci lokalnej. Wynik komendy rusers jest podobne
46 do komendy who, ale dla określonej listy komputerów lub wszystkich
47 maszyn z sieci lokalnej.
48
49 %description -l pt_BR.UTF-8
50 O programa rusers permite descobrir quem está em várias máquinas na
51 rede. O comando rusers fornece uma saída similar a do comando who para
52 a lista de máquinas especificada ou para todas as máquinas da rede
53 local.
54
55 %description -l tr.UTF-8
56 Bu pakette yer alan rusers sunucusu ve istemcisi ile bir kullanıcı ağ
57 üzerinde bu hizmeti sunan diğer makinalardaki kullanıcıları
58 sorgulayabilir.
59
60 %package -n rusersd
61 Summary:        Server for the rusers protocol
62 Summary(es.UTF-8):      El servidor rusers
63 Summary(pl.UTF-8):      Serwer protokołu rusers
64 Summary(pt_BR.UTF-8):   Servidor para o protocolo rusers
65 Group:          Networking/Daemons
66 Requires(post,preun):   /sbin/chkconfig
67 Requires:       rc-scripts
68 Obsoletes:      rusers-server
69
70 %description -n rusersd
71 The rusersd package contains the server for responding to rusers
72 requests.
73
74 %description -n rusersd -l es.UTF-8
75 El servidor rusers incluido en este paquete, permiten ver cual de los
76 usuarios están "logados" en otras máquinas de la red.
77
78 %description -n rusersd -l pl.UTF-8
79 Pakiet rusersd zawiera serwer odpowiadający na zapytania rusers.
80
81 %description -n rusersd -l pt_BR.UTF-8
82 Servidor para o protocolo rusers.
83
84 %package -n rup
85 Summary:        rstatd client
86 Summary(pl.UTF-8):      Klient rstatd
87 Group:          Networking
88
89 %description -n rup
90 rup displays a summary of the current system status of a particular
91 host or all hosts on the local network. The output shows the current
92 time of day, how long the system has been up, and the load averages.
93 The load average numbers give the number of jobs in the run queue
94 averaged over 1, 5 and 15 minutes.
95
96 %description -n rup -l pl.UTF-8
97 rup wyświetla podsumowanie aktualnego stanu systemu dla określonego
98 komputera lub wszystkich z sieci lokalnej. Wyjście zawiera aktualny
99 czas, jak długo system jest włączony i obciążenie. Obciążenie podawane
100 jest jako ilość procesów w kolejce średnio w 1, 5 i 15 minut.
101
102 %package -n rstatd
103 Summary:        kernel statistics server
104 Summary(pl.UTF-8):      Serwer rstatd
105 Group:          Networking/Daemons
106 Requires(post,preun):   /sbin/chkconfig
107 Requires:       rc-scripts
108
109 %description -n rstatd
110 rpc.rstatd is a server which returns performance statistics obtained
111 from the kernel. These statistics are usually read using the rup(1)
112 command.
113
114 %description -n rstatd -l pl.UTF-8
115 rpc.rstatd to serwer podający statystyki wydajności pobrane od jądra.
116 Statystyki te zwykle są czytane komendą rup(1).
117
118 %prep
119 %setup -q -n netkit-%{name}-%{version} -a3
120 %patch0 -p1
121 %patch1 -p1
122 %patch2 -p1
123 %patch3 -p1
124
125 %build
126 ./configure
127
128 %{__make} \
129         CC="%{__cc}" \
130         CFLAGS="%{rpmcflags} -DGNU_LIBC -D_GNU_SOURCE -D_NO_UT_TIME"
131
132 %{__make} -C rpc.rstatd \
133         CC="%{__cc}" \
134         CFLAGS="%{rpmcflags}" \
135         LIBS="-lprocps"
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}} \
140         $RPM_BUILD_ROOT/etc/rc.d/init.d
141
142 %{__make} install \
143         INSTALLROOT=$RPM_BUILD_ROOT \
144         MANDIR=%{_mandir}
145
146 %{__make} install install -C rpc.rstatd \
147         INSTALLROOT=$RPM_BUILD_ROOT \
148         MANDIR=%{_mandir}
149
150 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rusersd
151 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rstatd
152
153 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/{rstatd,rusersd}.8
154
155 echo ".so rpc.rstatd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rstatd.8
156 echo ".so rpc.rusersd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rusersd.8
157
158 %clean
159 rm -rf $RPM_BUILD_ROOT
160
161 %post -n rusersd
162 /sbin/chkconfig --add rusersd
163 %service rusersd restart "rusersd server"
164
165 %preun -n rusersd
166 if [ "$1" = "0" ]; then
167         %service rusersd stop
168         /sbin/chkconfig --del rusersd
169 fi
170
171 %post -n rstatd
172 /sbin/chkconfig --add rstatd
173 %service rstatd restart "rstatd server"
174
175 %preun -n rstatd
176 if [ "$1" = "0" ]; then
177         %service rstatd stop
178         /sbin/chkconfig --del rstatd
179 fi
180
181 %files
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_bindir}/rusers
184 %{_mandir}/man1/rusers.1*
185
186 %files -n rusersd
187 %defattr(644,root,root,755)
188 %attr(754,root,root) %config /etc/rc.d/init.d/rusersd
189 %attr(755,root,root) %{_sbindir}/rpc.rusersd
190 %{_mandir}/man8/rpc.rusersd.8*
191 %{_mandir}/man8/rusersd.8*
192
193 %files -n rup
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_bindir}/rup
196 %{_mandir}/man1/rup.1*
197
198 %files -n rstatd
199 %defattr(644,root,root,755)
200 %attr(754,root,root) %config /etc/rc.d/init.d/rstatd
201 %attr(755,root,root) %{_sbindir}/rpc.rstatd
202 %{_mandir}/man8/rpc.rstatd.8*
203 %{_mandir}/man8/rstatd.8*
This page took 0.086657 seconds and 2 git commands to generate.