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 URL: http://whoson.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _libexecdir %{_sbindir}
20 Simple method for Internet server programs to know if a particular
21 (dynamically allocated) IP address is currently allocated to a known
22 (trusted) user and, optionally, the identity of the said user.
25 Program oraz biblioteka bêd±ce implementacj± protoko³u WHOSON
26 pozwalaj±cego innym programom na ¶ledzenie dynamicznie przydzielanych
27 IP u¿ywanych przez znanych (zaufanych) u¿ytkowników.
30 Summary: Whoson server binary and scripts
31 Summary(pl): Plik binarny i skrypty serwera whoson
32 Group: Networking/Daemons
34 Requires(post,preun): /sbin/chkconfig
35 Requires: %{name} = %{version}-%{release}
38 Whoson server binary and scripts.
40 %description server -l pl
41 Plik binarny i skrypty serwera whoson.
44 Summary: Header files and development docomentation for whoson
45 Summary(pl): Pliki nag³ówkowe i dokumentacja dla dla programistów do whosona
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 This is whoson development package. It includes files and development
51 docomentation for whoson.
53 %description devel -l pl
54 To jest pakiet dla programistów. Zawiera pliki nag³ówkowe i
55 dokumentacjê do whosona.
58 Summary: Static whoson library
59 Summary(pl): Biblioteka statyczna whosona
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static whoson library.
66 %description static -l pl
67 Biblioteka statyczna whosona.
73 cp -f /usr/share/automake/config.* .
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
84 DESTDIR=$RPM_BUILD_ROOT
86 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
87 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
89 for i in wso_login wso_logout wso_query wso_version; do
90 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
91 echo ".so whoson.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 /sbin/chkconfig --add whosond
102 if [ -f /var/lock/subsys/whosond ]; then
103 /etc/rc.d/init.d/whosond restart >&2
105 echo "Run \"/etc/rc.d/init.d/whosond start\" to start whosond daemon."
109 if [ "$1" = "0" ]; then
110 if [ -f /var/lock/subsys/whosond ]; then
111 /etc/rc.d/init.d/whosond stop >&2
113 /sbin/chkconfig --del whosond
117 %defattr(644,root,root,755)
118 %doc README whoson.txt
119 %attr(755,root,root) %{_sbindir}/whoson
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whoson.conf
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_sbindir}/whosond
127 %attr(754,root,root) /etc/rc.d/init.d/whosond
128 %dir /var/lib/whosond
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/lib*.so
138 %defattr(644,root,root,755)