Репозиторий Sisyphus
Последнее обновление: 22 октября 2019 | Пакетов: 17517 | Посещений: 15427673
en ru br
Репозитории ALT
S:2.2.15-alt1
5.1: 2.2.12-alt1
4.1: 2.2.11-alt1
4.0: 2.2.10-alt1
3.0: 2.2.8-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: setup

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

Name: setup
Version: 2.2.11
Release: alt1

Summary: Initial set of configuration files
License: GPL
Group: System/Configuration/Other
BuildArch: noarch
AutoReq: no
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: %name-%version.tar

Provides: %_sysconfdir/profile.d, %_sysconfdir/X11/profile.d
Conflicts: initscripts < 1:5.49.1-alt1, xorg-x11-xfs < 1:1.0.4-alt2

%description
Initial set of configuration files to be placed into /etc.

%prep
%setup -q

%build
find -name \*_d |
while read f; do
mv -v "$f" "${f%%_d}.d"
done
mkdir -p etc/X11/profile.d
pushd etc/profile.d
for f in lang.*; do
mv "$f" "0$f"
ln -s "0$f" "$f"
done
popd

%install
mkdir -p %buildroot%_datadir
cp -a etc %buildroot%_sysconfdir

mv %buildroot%_sysconfdir/base-passwd %buildroot%_datadir/
cp -p %buildroot%_datadir/base-passwd/group.master %buildroot%_sysconfdir/group
cp -p %buildroot%_datadir/base-passwd/passwd.master %buildroot%_sysconfdir/passwd

install -pD -m644 /dev/null %buildroot/var/log/lastlog
install -pD -m644 /dev/null %buildroot/var/log/faillog

echo '%%dir %_sysconfdir/profile.d' >profile.list
find %buildroot%_sysconfdir/profile.d -type f |
sed -e 's|^%buildroot|%%config(noreplace) |' >>profile.list
find %buildroot%_sysconfdir/profile.d -type l |
sed -e 's|^%buildroot||' >>profile.list

%files -f profile.list
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/passwd
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/group
%config(noreplace) %_sysconfdir/csh.*
%config(noreplace) %_sysconfdir/exports
%config(noreplace) %_sysconfdir/filesystems
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/fstab
%config(noreplace) %_sysconfdir/host.conf
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/hosts
%config(noreplace) %_sysconfdir/hosts.*
%config(noreplace) %_sysconfdir/inputrc
%config(noreplace) %_sysconfdir/motd
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/printcap
%config(noreplace) %_sysconfdir/profile
%config(noreplace) %_sysconfdir/protocols
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/resolv.conf
%config(noreplace) %_sysconfdir/services
%config(noreplace) %_sysconfdir/shells
%config(noreplace) %attr(600,root,root) %_sysconfdir/securetty
%config(noreplace) %_sysconfdir/X11/profile.d
%ghost /var/log/*
%_datadir/base-passwd

%changelog

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

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