Репозиторий Sisyphus
Последнее обновление: 27 июня 2022 | Пакетов: 17497 | Посещений: 24448549
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 

Name: ftn
Version: 2.2
Release: alt5

Summary: The basic directory layout for FTN system
License: Public Domain
Group: System/Base

BuildArch: noarch
Obsoletes: fidonet
Packager: Vladimir V. Kamarzin <vvk at 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