Репозиторий Sisyphus
Последнее обновление: 16 декабря 2019 | Пакетов: 17489 | Посещений: 16107556
en ru br
Репозитории ALT
S:1.1a.99-alt1
4.1: 0.9.5-alt1
4.0: 0.9.5-alt1
3.0: 0.9.5-alt1
www.altlinux.org/Changes

Группа :: Сети/FTN
Пакет: binkd

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

%define name binkd
%define ver  0.9.5
%define rel  alt1

Summary: Binkd - tcp/ip line FTN mailer
Name: %name
Version: %ver
Release: %rel
Group: System/Servers
License: GPL
Packager: FTN Development Team <ftn at packages.altlinux.org>

AutoReq: yes, noperl, nopam, noshell

PreReq: ftn
PreReq: /var/lock/serial

BuildPreReq: kernel-headers

Source: %name-%version.tar.bz2
Source1: %name.init
Source2: %name.xinetd
Source3: %name.logrotate
Source4: %name.conf

Patch1: %name-default-config.patch

%description
Binkd is a simple tcp/ip line FTN mailer. Look sample configs for more
information.

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

%description xinetd
Binkd is a simple tcp/ip line FTN mailer. Look sample configs for more
information.

This package contains xinetd service %name for incoming BinkP sessions

%prep
%setup -q
%patch1 -p1
cp mkfls/unix/* .

%build
./configure --prefix=%prefix --sysconfdir=%_sysconfdir --with-https --with-aso

%make_build

%install
%__mkdir_p %buildroot%_sbindir
%__mkdir_p %buildroot%_initdir
%__mkdir_p %buildroot%_mandir
%__mkdir_p %buildroot%_man8dir
%__mkdir_p %buildroot%_docdir
%__mkdir_p %buildroot%_docdir/%name-%version/
%__mkdir_p %buildroot%_sysconfdir/{ftn,xinetd.d}
%__mkdir_p %buildroot%_sysconfdir/logrotate.d

%make PREFIX=%buildroot/%prefix install

%__install %SOURCE1 %buildroot%_initdir/%name
%__install %SOURCE2 %buildroot%_sysconfdir/xinetd.d/%name
%__install %SOURCE4 %buildroot%_sysconfdir/ftn/%name.cfg

%__install %buildroot/%prefix/man/man8/%name.8 %buildroot%_man8dir/%name.8
%__install %buildroot/%prefix/etc/%name.conf-dist %buildroot%_docdir/%name-%version/%name-example.cfg
%__install COPYING %buildroot%_docdir/%name-%version/COPYING
%__install !README %buildroot%_docdir/%name-%version/README
%__install !README.FIX %buildroot%_docdir/%name-%version/README.FIX
%__install !SRIF.TXT %buildroot%_docdir/%name-%version/SRIF.TXT

%__install %SOURCE3 %buildroot%_sysconfdir/logrotate.d/%name

rm -f %buildroot%_sbindir/%name
mv %buildroot%_sbindir/%name-0.9.5a %buildroot%_sbindir/%name

%post
%post_service %name

:>> "%_logdir/ftn/%name.log"
%__chown ftn:ftn "%_logdir/ftn/%name.log"
%__chmod 640 "%_logdir/ftn/%name.log"

%preun
%preun_service %name

%files
%attr(755,root,root) %config %_initdir/%name

%dir %attr(750,ftn,ftn) %_sysconfdir/ftn/
%attr(640,ftn,ftn)   %config(noreplace) %_sysconfdir/ftn/%name.cfg

%attr(750,ftn,ftn)   %_sbindir/%name

%attr(644,root,root) %_man8dir/*

%dir %attr(755,root,root) %_docdir/%name-%version
%doc %attr(644,root,root) %_docdir/%name-%version/COPYING
%doc %attr(644,root,root) %_docdir/%name-%version/%name-example.cfg
%doc %attr(644,root,root) %_docdir/%name-%version/README
%doc %attr(644,root,root) %_docdir/%name-%version/README.FIX
%doc %attr(644,root,root) %_docdir/%name-%version/SRIF.TXT

%config(noreplace) %attr(644,root,root) %_sysconfdir/logrotate.d/%name

%files xinetd
%attr(644,root,root) %_sysconfdir/xinetd.d/%name

%changelog

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

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