1 Summary: Protocol for Keeping Track of Dynamically Allocated IP
2 Summary(pl.UTF-8): Protokołu śledzenia dynamicznie przydzielanych adresów IP
8 Source0: http://dl.sourceforge.net/whoson/%{name}-%{version}.tar.gz
9 # Source0-md5: 5c36fbaca0f8a618af2433fc92b3e5b2
12 URL: http://whoson.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: rpmbuild(macros) >= 1.268
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _libexecdir %{_sbindir}
21 Simple method for Internet server programs to know if a particular
22 (dynamically allocated) IP address is currently allocated to a known
23 (trusted) user and, optionally, the identity of the said user.
25 %description -l pl.UTF-8
26 Program oraz biblioteka będące implementacją protokołu WHOSON
27 pozwalającego innym programom na śledzenie dynamicznie przydzielanych
28 IP używanych przez znanych (zaufanych) użytkowników.
31 Summary: Whoson server binary and scripts
32 Summary(pl.UTF-8): Plik binarny i skrypty serwera whoson
33 Group: Networking/Daemons
34 Requires(post,preun): /sbin/chkconfig
35 Requires: %{name} = %{version}-%{release}
39 Whoson server binary and scripts.
41 %description server -l pl.UTF-8
42 Plik binarny i skrypty serwera whoson.
45 Summary: Header files and development docomentation for whoson
46 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla dla programistów do whosona
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 This is whoson development package. It includes files and development
52 docomentation for whoson.
54 %description devel -l pl.UTF-8
55 To jest pakiet dla programistów. Zawiera pliki nagłówkowe i
56 dokumentację do whosona.
59 Summary: Static whoson library
60 Summary(pl.UTF-8): Biblioteka statyczna whosona
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static whoson library.
67 %description static -l pl.UTF-8
68 Biblioteka statyczna whosona.
74 cp -f /usr/share/automake/config.* .
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
85 DESTDIR=$RPM_BUILD_ROOT
87 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
90 for i in wso_login wso_logout wso_query wso_version; do
91 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
92 echo ".so whoson.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 /sbin/chkconfig --add whosond
103 %service whosond restart "whosond daemon"
106 if [ "$1" = "0" ]; then
107 %service whosond stop
108 /sbin/chkconfig --del whosond
112 %defattr(644,root,root,755)
113 %doc README whoson.txt
114 %attr(755,root,root) %{_sbindir}/whoson
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whoson.conf
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_sbindir}/whosond
122 %attr(754,root,root) /etc/rc.d/init.d/whosond
123 %dir /var/lib/whosond
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/lib*.so
133 %defattr(644,root,root,755)