Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37517301
en ru br
Репозитории ALT
S:0.3.12-alt1
5.1: 0.3.6-alt2
4.1: 0.3.5-alt1
4.0: 0.3.5-alt1
3.0: 0.3.3-alt1
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: chrooted

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

Name: chrooted
Version: 0.3.6
Release: alt2

Summary: The chrooted environment helper
License: GPL
Group: File tools
BuildArch: noarch
Packager: Dmitry V. Levin <ldv at altlinux.org>

%define _chrootdir %_sysconfdir/chroot.d

Source: %name-%version.tar

Provides: %_chrootdir
Requires: coreutils, getopt, glibc-utils, grep, sed

BuildPreReq: help2man

%description
This package is required for chroot-aware packages.

%prep
%setup -q

%build
sed -i 's/ at VERSION at /%version/g' -- update_chrooted
help2man -N -s8 -i update_chrooted.8.inc ./update_chrooted >update_chrooted.8

%install
mkdir -p %buildroot{/sbin,%_sbindir,%_man8dir,%_chrootdir}
install -pm755 update_chrooted %buildroot/sbin/
ln -s ../../sbin/update_chrooted %buildroot%_sbindir/
install -pm755 functions %buildroot%_chrootdir/
install -pm644 update_chrooted.8 %buildroot%_man8dir/

install -Dpm755 update_chrooted.resolvconf %buildroot/%_sysconfdir/hooks/resolv.conf.d/update_chrooted

# Generate shell functions provides list.

(
echo '# shell functions provides list'
for f in %buildroot%_chrootdir/*; do
[ -x "$f" ] || continue
sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
done |LC_COLLATE=C sort -u
) >%buildroot%_chrootdir/.provides.sh

%post
/sbin/update_chrooted -f all

%files
%_sysconfdir/hooks/resolv.conf.d/*
/sbin/*
%_sbindir/*
%_man8dir/*
%config %_chrootdir

%changelog

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

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