Репозиторий Sisyphus
Последнее обновление: 18 октября 2019 | Пакетов: 17501 | Посещений: 15290167
en ru br
Репозитории ALT
5.1: 0.50-alt5.M51.1
4.1: 0.10-alt2

Группа :: Разработка/Прочее
Пакет: etckeeper

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

%define _unpackaged_files_terminate_build 1

Name: etckeeper
Version: 0.50
Release: alt5.M51.1

Summary: Etckeeper help to keep your /etc directory in VCS repository
License: GPL2+
Group: Development/Other
Url: http://kitenet.net/~joey/code/etckeeper/
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildArch: noarch
AutoReq: yes,noshell
Requires: coreutils diffutils findutils git-core grep sh

Packager: Evgenii Terechkov <evg at altlinux.org>

etckeeper is a collection of tools to let /etc be stored in a VCS
repository. It hooks into apt/yum/packman/etc to automatically commit
changes made to /etc during package upgrades. It's quite modular and
configurable, while also being simple to use if you understand the
basics of working with VCS.

%package origin
Summary: Helper to store original configs from rpm files in separate git branch
Group: Development/Other
Requires: %name = %version-%release

%description origin
etckeeper-origin is helper to store original configs from rpm files in
separate git branch

%patch -p1

make install DESTDIR=%buildroot
install -D debian/cron.daily %buildroot%_sysconfdir/cron.daily/%name

# We dont want bzr now:

rm -rf %buildroot%_libdir/python*
# There is no cruft package for ALT:
rm -rf %buildroot%_sysconfdir/cruft

if [ -e %_sysconfdir/.git/hooks/pre-commit ] && egrep '^(/us[rb]/s?bin/)?%name' %_sysconfdir/.git/hooks/pre-commit >/dev/null 2>&1; then
echo "Replacing path to etckeeper in %_sysconfdir/.git/hooks/pre-commit"
sed -i 's!^/usr/sbin/etckeeper!etckeeper!;s!^/usr/bin/etckeeper!etckeeper!;s!^/usb/sbin/etckeeper!etckeeper!' %_sysconfdir/.git/hooks/pre-commit

%config(noreplace) %_sysconfdir/%name/%name.conf
%exclude %_sysconfdir/%name/%name-origin.conf
%exclude %_sysconfdir/%name/post-install.d/90%name-origin

%files origin
%config(noreplace) %_sysconfdir/%name/%name-origin.conf
%attr(755,root,root) %_sysconfdir/%name/post-install.d/90%name-origin
%doc etckeeper-origin.README


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

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