Репозиторий Sisyphus
Последнее обновление: 20 февраля 2019 | Пакетов: 18485 | Посещений: 13050807
en ru br
Репозитории ALT
S:0.5.5-alt1
5.1: 20080706-alt1.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: c-icap

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

Name: c-icap
Version: 0.5.5
Release: alt1
Epoch: 1
Packager: Andrey Cherepanov <cas at altlinux.org>

Summary: ICAP server
License: %lgpl2only
Group: System/Servers
Url: http://c-icap.sourceforge.net/

Source0: %name-%version.tar.gz
Source1: %name.init
Source2: %name.watch
Source3: %name.conf

Requires(pre): shadow-utils

BuildRequires: rpm-build-licenses

BuildRequires: doxygen libdb4-devel libldap-devel libmemcached-devel zlib-devel bzlib-devel

%description
Implementation of an Internet Content Adaptation Protocol (ICAP) server.

%package devel
Summary: ICAP development files
Group: Development/C
Requires: %name = %EVR

%description devel
Headers and libraries for an Internet Content Adaptation Protocol (ICAP)
server implementation.

%if_with clamav
%package clamav
Summary: ICAP ClamAV module
Group: System/Servers
Requires: %name = %EVR

%description clamav
ICAP module for scanning content with ClamAV.
%endif

%prep
%setup -q

%build
%autoreconf
%undefine _configure_gettext
%configure --localstatedir=%_var
%make_build

%install
%makeinstall_std

install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
mkdir -p %buildroot%_sbindir
mv %buildroot%_bindir/%name %buildroot%_sbindir/%name

mkdir -p %buildroot%_logdir/%name
touch %buildroot%_logdir/%name/{server,access}.log

mkdir -p %buildroot{%_var/run/%name,%_cachedir/%name}

rm -f %buildroot%_libdir/c_icap/*.la

# Fix configuration

. shell-config
%define cfg_set shell_config_set %buildroot%_sysconfdir/%name.conf
%cfg_set PidFile     %_runtimedir/%name/%name.pid ' ' ' '
%cfg_set ModulesDir  %_libdir/c_icap ' ' ' '
%cfg_set ServicesDir %_libdir/c_icap ' ' ' '
%cfg_set ServerLog   %_logdir/%name/server.log ' ' ' '
%cfg_set AccessLog   %_logdir/%name/access.log ' ' ' '
%cfg_set LoadMagicFile %_sysconfdir/%name.magic ' ' ' '

# Install /var/run rules

install -Dm 0644 %SOURCE3 %buildroot%_tmpfilesdir/%name.conf

%pre
/usr/sbin/groupadd -r -f _c_icap ||:
/usr/sbin/useradd -M -n _c_icap -r -d %_runtimedir/%name -s /dev/null -c "System user for %name" -g _c_icap > /dev/null 2>&1 ||:

%post
%post_service %name

%preun
%preun_service %name

%files
%doc AUTHORS README TODO contrib/get_file.pl
%config(noreplace) %_sysconfdir/%name.conf*
%config(noreplace) %_sysconfdir/%name.magic*
%attr (755,root,root) %_initdir/%name
%_bindir/*
%attr (755,root,root) %_sbindir/%name
%dir %_libdir/c_icap/
%_libdir/c_icap/*.so
%_libdir/libicapapi.so.*
%if_with clamav
%exclude %_libdir/c_icap/srv_clamav.so
%endif
%attr (750,_c_icap,root) %_logdir/%name/
%ghost %_logdir/%name/*.log
%attr (750,_c_icap,root) %_var/run/%name/
%attr (750,_c_icap,root) %_cachedir/%name/
%_tmpfilesdir/%name.conf
%_man8dir/c-icap*.8*

%files devel
%_includedir/c_icap
%_libdir/libicapapi.so

%changelog

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

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