Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37553903
en ru br
Репозитории ALT
S:2.05-alt2.1
5.1: 2.05-alt1
4.1: 2.03-alt2
4.0: 2.03-alt2
3.0: 2.03-alt2
www.altlinux.org/Changes

Группа :: Сети/Прочее
Пакет: whoson

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_without static

Name: whoson
Version: 2.03
Release: alt2
Summary: Protocol for Keeping Track of Dynamically Allocated IP
License: Public Domain
URL: http://whoson.sf.net/
Group: Networking/Other
Packager: Victor Forsyuk <force at altlinux.ru>
Source0: http://dl.sf.net/whoson/whoson-%{version}.tar.gz
Source1: %{name}d.init
Source2: %{name}.conf
Patch0: whoson-Makefile.patch

%if_with static
BuildRequires: glibc-devel-static
%endif

%description
Simple method for Internet server programs to know if a particular
(dynamically allocated) IP address is currently allocated to a known
(trusted) user and, optionally, the identity of the said user.

%package server
Summary: Whoson server binary and scripts
Group: Networking/Other
Requires: %{name} = %{version}

%description server
Whoson server binary and scripts

%package -n lib%{name}
Summary: Whoson library
Group: Development/C
Requires: %{name} = %{version}

%description -n lib%{name}
This is whoson library package.

%package -n lib%{name}-devel
Summary: Header files and development documentation for whoson
Group: Development/C
Requires: lib%{name} = %{version}

%description -n lib%{name}-devel
This is whoson development package. It includes files and development
documentation for whoson.

%package -n lib%{name}-devel-static
Summary: Static libraries for whoson
Group: Development/C
Requires: lib%{name}-devel = %{version}

%description -n lib%{name}-devel-static
You should install the lib%{name}-devel-static package if you would like to
develop statically linked whoson applications.

%prep
%setup -q
%patch0 -p1

%build
%configure
# SMP make broken in whoson 2.03
%make

%install
install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}

make DESTDIR=%buildroot install
install -m0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/

for i in wso_login wso_logout wso_query wso_version; do
rm -f $RPM_BUILD_ROOT%_mandir/man3/$i.3
echo ".so whoson.3" > $RPM_BUILD_ROOT%_mandir/man3/$i.3
done

# remove non-packaged files

%if_without static
%__rm -f %buildroot%_libdir/*.a
%endif

%post   -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig

%post server
%post_service %{name}d

%preun server
%preun_service %{name}d

%files
%doc README whoson.txt
%_sbindir/whoson
%config(noreplace) %verify(not size mtime md5) %_sysconfdir/whoson.conf
%_mandir/man[58]/*

%files server
%_sbindir/whosond
%_initrddir/whosond
%dir /var/lib/whosond

%files -n lib%{name}
%_libdir/lib*.so.*

%files -n lib%{name}-devel
%_libdir/lib*.so
# %_libdir/lib*.la
%_includedir/*
%_mandir/man3/*

%if_with static
%files -n lib%{name}-devel-static
%_libdir/lib*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin