Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1492716
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: qico.xe

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

%define origname qico
%define branch xe
%define bversion 0.57.1
%define cvsdate 20060706
Name: %origname.%branch
Version: %bversion
%define buildrel 0
%define rel     alt%buildrel.M24.7

Summary: qico, an FTN-compatible mailer
Release: %rel
License: BSD
Group: System/Servers
URL: http://193.232.248.13:8080/qicoxe/

Packager: Anton Gorlov <stalker at altlinux.ru>

%ifdef cvsdate
Source: %origname-%bversion%branch-%cvsdate.tar.bz2
%else
Source: %origname-%bversion%branch.tar.bz2
%endif

Patch0: qico.conf.diff
Source1: %origname.init
Source2: %origname.fido
Source3: %origname.binkp
Source4: %origname.subst
Source5: %origname.passwd
Source6: %origname

Conflicts: %origname

# Automatically added by buildreq on Thu Sep 15 2005

BuildRequires: flex libncurses-devel libtinfo-devel

%description
Qico is an FidoNet Technology Network (FTN) compatible mailer for Unix
systems. It has some original features. Full list of features you can
find in README file. It works well (i.e. was runned at least once ;)
under Linux, FreeBSD and even BeOS.

%package xinetd
Summary: xinetd service %origname for incoming ftn-over-ip sessions
Group: System/Servers
Requires: %name = %version-%release
PreReq: xinetd

%description xinetd
Qico is an FidoNet Technology Network (FTN) compatible mailer for Unix
systems. It has some original features. Full list of features you can
find in README file. It works well (i.e. was runned at least once ;)
under Linux, FreeBSD and even BeOS.

This package contains xinetd service %origname for incoming ftn-over-ip
sessions

%prep
%setup -q -n %origname-%bversion%branch

%ifdef cvsdate
find . \( -type d -a -name CVS \) -print0 | \
xargs -r0 %__rm -rvf --

find . \( -type f -a -name .cvsignore \) -print0 | \
xargs -r0 %__rm -rvf --
%endif

%patch0 -p1
%_buildshell autogen.sh

%build
%configure --with-config=%_sysconfdir/ftn/%name/%origname.conf
%make_build

%install
%make_install DESTDIR=%buildroot install
%__install -d %buildroot{%_sysconfdir/{ftn/%name,xinetd.d,logrotate.d},%_initdir}
%__install -d %buildroot%_var/run/qico

%__install -m755 %SOURCE1 %buildroot%_initdir/%origname
%__install -m644 %SOURCE2 %buildroot%_sysconfdir/xinetd.d/%origname-ifc
%__install -m644 %SOURCE3 %buildroot%_sysconfdir/xinetd.d/%origname-binkp
%__install -m600 %origname.conf.sample %buildroot%_sysconfdir/ftn/%name/%origname.conf
%__install -m600 %SOURCE4 %buildroot%_sysconfdir/ftn/%name/
%__install -m600 %SOURCE5 %buildroot%_sysconfdir/ftn/%name/
%__install -m644 %SOURCE6 %buildroot%_sysconfdir/logrotate.d/

%__rm -f stuff/Makefile{,.in,.am}

%post
%post_service %origname

for i in qico-master.log qico.log history; do
 if [ ! -f "%_logdir/ftn/$i" ]; then
   :>> "%_logdir/ftn/$i"
   %__chown ftn:ftn "%_logdir/ftn/$i"
   %__chmod 640 "%_logdir/ftn/$i"
 fi
done ||:

for i in emsi.log; do
 if [ ! -f "%_logdir/ftn/$i" ]; then
   :>> "%_logdir/ftn/$i"
   %__chown ftn:ftn "%_logdir/ftn/$i"
   %__chmod 600 "%_logdir/ftn/$i"
 fi
done ||:

%preun
%preun_service %origname

%files
%doc stuff README FAQ ChangeLog Changes
%config(noreplace) %_initdir/%origname
%config(noreplace) %_sysconfdir/logrotate.d/%origname
%attr(770,root,ftn) %_var/run/qico
%dir %attr (770,ftn,ftn) %_sysconfdir/ftn/%name
%attr(640,root,ftn) %config(noreplace) %_sysconfdir/ftn/%name/qico.conf
%attr(600,ftn,root) %config(noreplace) %_sysconfdir/ftn/%name/qico.passwd
%attr(640,root,ftn) %config(noreplace) %_sysconfdir/ftn/%name/qico.subst
%_bindir/qcc
%_bindir/qctl
%_sbindir/qico
%_man8dir/*

%files xinetd
%config(noreplace) %_sysconfdir/xinetd.d/%origname-ifc
%config(noreplace) %_sysconfdir/xinetd.d/%origname-binkp

%changelog

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

 
design & coding: Vladimir Lettiev aka crux © 2004-2005