Репозиторий Sisyphus
Последнее обновление: 26 ноября 2020 | Пакетов: 17744 | Посещений: 19694140
en ru br
Репозитории ALT
S:0.5.7-alt1
5.1: 20080706-alt1.1
www.altlinux.org/Changes

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

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

Name: c-icap
Version: 20080706
Release: alt1.1
Packager: Grigory Batalov <bga at altlinux.ru>

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

Source0: http://ovh.dl.sourceforge.net/sourceforge/c-icap/%name-%version.tar
Source1: %name.init
Patch: %name-%version-alt.patch

# Automatically added by buildreq on Thu Apr 09 2009

BuildRequires: gcc-c++ libadns-devel libclamav-devel libmemcache-devel opendbx-devel zlib-devel

Requires(pre): shadow-utils

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

%package devel
Summary: ICAP development files
Group: Development/C
Requires: %name = %version-%release

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

%package clamav
Summary: ICAP ClamAV module
Group: System/Servers
Requires: %name = %version-%release

%description clamav
ICAP module for scanning content with ClamAV

%package url-filter
Summary: ICAP url_filter module
Group: System/Servers
Requires: %name = %version-%release
Requires: opendbx-sqlite3
Provides: %name-skf = %version-%release

%description url-filter
ICAP module for checking URL against blacklist

%prep
%setup -q
%patch -p1

%build
%undefine __libtoolize
%configure
%make_build

%install
%make_install DESTDIR=%buildroot install

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}

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

%post
%post_service %name

%preun
%preun_service %name

%post clamav
/sbin/service %name condrestart ||:

%post url-filter
/sbin/service %name condrestart ||:

%preun clamav
/sbin/service %name condrestart ||:

%preun url-filter
/sbin/service %name condrestart ||:

%files
%doc AUTHORS README INSTALL.txt 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/%name/
%exclude %_libdir/%name/srv_clamav.so
%exclude %_libdir/%name/srv_url_filter.so
%_libdir/%name/*.so
%_libdir/libicapapi.so.*
%dir %attr (750,_c_icap,root) %_logdir/%name/
%ghost %_logdir/%name/*.log
%dir %attr (750,_c_icap,root) %_var/run/%name/
%dir %attr (750,_c_icap,root) %_cachedir/%name/

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

%files clamav
%_libdir/%name/srv_clamav.so

%files url-filter
%_libdir/%name/srv_url_filter.so

%changelog

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

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