1 Summary: Protocol for Keeping Track of Dynamically Allocated IP
2 Summary(pl): Protoko³u ¶ledzenia dynamicznie przydzielanych adresów IP
8 Source0: http://dl.sourceforge.net/whoson/%{name}-%{version}.tar.gz
9 # Source0-md5: 9bb91b9e0d5a10574e78aa6647dd7ab9
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _libexecdir %{_sbindir}
19 Simple method for Internet server programs to know if a particular
20 (dynamically allocated) IP address is currently allocated to a known
21 (trusted) user and, optionally, the identity of the said user.
24 Program oraz biblioteka bêd±ce implementacj± protoko³u WHOSON
25 pozwalaj±cego innym programom na ¶ledzenie dynamicznie przydzielanych
26 IP u¿ywanych przez znanych (zaufanych) u¿ytkowników.
29 Summary: Whoson server binary and scripts
30 Summary(pl): Plik binarny i skrypty serwera whoson
31 Group: Networking/Daemons
33 Requires(post,preun): /sbin/chkconfig
34 Requires: %{name} = %{version}
37 Whoson server binary and scripts.
39 %description server -l pl
40 Plik binarny i skrypty serwera whoson.
43 Summary: Header files and development docomentation for whoson
44 Summary(pl): Pliki nag³ówkowe i dokumentacja dla dla programistów do whosona
45 Group: Development/Libraries
46 Requires: %{name} = %{version}
49 This is whoson development package. It includes files and development
50 docomentation for whoson.
52 %description devel -l pl
53 To jest pakiet dla programistów. Zawiera pliki nag³ówkowe i
54 dokumentacjê do whosona.
57 Summary: Static whoson library
58 Summary(pl): Biblioteka statyczna whosona
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}
63 Static whoson library.
65 %description static -l pl
66 Biblioteka statyczna whosona.
72 cp -f /usr/share/automake/config.* .
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
82 %{__make} install DESTDIR=$RPM_BUILD_ROOT
84 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
85 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
87 for i in wso_login wso_logout wso_query wso_version; do
88 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
89 echo ".so whoson.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 /sbin/chkconfig --add whosond
100 if [ -f /var/lock/subsys/whosond ]; then
101 /etc/rc.d/init.d/whosond restart >&2
103 echo "Run \"/etc/rc.d/init.d/whosond start\" to start whosond daemon."
107 if [ "$1" = "0" ]; then
108 if [ -f /var/lock/subsys/whosond ]; then
109 /etc/rc.d/init.d/whosond stop >&2
111 /sbin/chkconfig --del whosond
115 %defattr(644,root,root,755)
116 %doc README whoson.txt
117 %attr(755,root,root) %{_sbindir}/whoson
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
119 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/whoson.conf
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_sbindir}/whosond
125 %attr(754,root,root) /etc/rc.d/init.d/whosond
126 %dir /var/lib/whosond
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*.so
136 %defattr(644,root,root,755)