Репозиторий Sisyphus
Последнее обновление: 28 ноября 2022 | Пакетов: 17931 | Посещений: 25412252
en ru br
Репозитории ALT
S:2.2-alt5
5.1: 2.2-alt5
4.1: 2.2-alt4
4.0: 2.2-alt4
3.0: 2.2-alt4
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: ftn

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

# $Id: ftn,v 1.3 2003/02/01 17:56:33 raorn Exp $
# vim: set ft=spec:

Name: ftn
Version: 2.2
Release: alt4
Summary: The basic directory layout for FTN system.
License: Public Domain
Group: System/Base
BuildArch: noarch
Obsoletes: fidonet
Packager: FTN Development Team <ftn at packages.altlinux.org>

%description
This is the core of FTN system. This package contains the basic
directory layout for FTN system, including the correct permissions
for the directories.

%prep

%install
# Configuration files
%__mkdir_p %buildroot%_sysconfdir/%name
%__mkdir_p %buildroot%_localstatedir/%name
# Flags and semaphores
%__mkdir_p %buildroot%_localstatedir/%name/flags
%__mkdir_p %buildroot%_localstatedir/%name/files
# Fileechoes (should't it be somewhere in /var/ftp/pub?)
%__mkdir_p %buildroot%_localstatedir/%name/files/public
# Passtrough Fileechoes
%__mkdir_p %buildroot%_localstatedir/%name/files/passthr
# Fileecho dupes
%__mkdir_p %buildroot%_localstatedir/%name/files/dupes
# this is fechoprocessor-specific
%__mkdir_p %buildroot%_localstatedir/%name/files/magic
%__mkdir_p %buildroot%_localstatedir/%name/mail
# FTS-0001 netmail
%__mkdir_p %buildroot%_localstatedir/%name/mail/NETMAIL
# Echomail messagebases
%__mkdir_p %buildroot%_localstatedir/%name/mail/echo
# Local messagebases
%__mkdir_p %buildroot%_localstatedir/%name/mail/local
# Nodelists
%__mkdir_p %buildroot%_localstatedir/%name/nodelist
# TMPDIR
%__mkdir_p %buildroot%_localstatedir/%name/tmp
# Logs
%__mkdir_p %buildroot%_logdir/%name
%__mkdir_p %buildroot%_spooldir/%name
# Insecure inbound
%__mkdir_p %buildroot%_spooldir/%name/in
# Local inbound
%__mkdir_p %buildroot%_spooldir/%name/in/local
# Secure inbound
%__mkdir_p %buildroot%_spooldir/%name/in/secure
# Temp inbound
%__mkdir_p %buildroot%_spooldir/%name/in/temp
%__mkdir_p %buildroot%_spooldir/%name/out
# Amiga-style outbound
%__mkdir_p %buildroot%_spooldir/%name/out/aso
# Fileechoes (passthrough files)
%__mkdir_p %buildroot%_spooldir/%name/out/files
# Long-boxes
%__mkdir_p %buildroot%_spooldir/%name/out/longbox
# Temp outbound
%__mkdir_p %buildroot%_spooldir/%name/out/temp
# Bink-style outbound
%__mkdir_p %buildroot%_spooldir/%name/out/zone

# ~ftn/.i18n - no cyrillic mess in logs (overridable)

%__cat <<__EOF > %buildroot%_localstatedir/%name/.i18n
LANGUAGE=POSIX
LANG=POSIX
LC_ALL=POSIX
LINGUAS=POSIX
__EOF

%pre
/usr/sbin/groupadd -r -f %name ||:
/usr/sbin/useradd -r -g %name -G uucp -M -d %_localstatedir/%name -s /bin/sh -n %name &>/dev/null ||:

%files
%defattr(644,root,%name,750)
%dir %attr(750,%name,%name) %_sysconfdir/%name
%config(noreplace) %_localstatedir/%name/.i18n
%dir %_localstatedir/%name
%dir %attr(3730,%name,%name) %_localstatedir/%name/flags
%dir %_localstatedir/%name/files
%dir %attr(750,%name,%name) %_localstatedir/%name/files/public
%dir %attr(750,%name,%name) %_localstatedir/%name/files/passthr
%dir %attr(750,%name,%name) %_localstatedir/%name/files/dupes
%dir %attr(750,%name,%name) %_localstatedir/%name/files/magic
%dir %_localstatedir/%name/mail
%dir %attr(3770,%name,%name) %_localstatedir/%name/mail/NETMAIL
%dir %attr(750,%name,%name) %_localstatedir/%name/mail/echo
%dir %attr(750,%name,%name) %_localstatedir/%name/mail/local
%dir %attr(750,%name,%name) %_localstatedir/%name/nodelist
%dir %attr(700,%name,%name) %_localstatedir/%name/tmp
%dir %_logdir/%name
%dir %_spooldir/%name
%dir %attr(750,%name,%name) %_spooldir/%name/in
%dir %attr(750,%name,%name) %_spooldir/%name/in/local
%dir %attr(750,%name,%name) %_spooldir/%name/in/secure
%dir %attr(750,%name,%name) %_spooldir/%name/in/temp
%dir %attr(750,%name,%name) %_spooldir/%name/out
%dir %attr(750,%name,%name) %_spooldir/%name/out/aso
%dir %attr(750,%name,%name) %_spooldir/%name/out/files
%dir %attr(750,%name,%name) %_spooldir/%name/out/longbox
%dir %attr(750,%name,%name) %_spooldir/%name/out/temp
%dir %attr(750,%name,%name) %_spooldir/%name/out/zone

%changelog

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

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