Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37041883
en ru br
Репозитории ALT
S:2.0.12-alt1
5.1: 1.3.4-alt1
4.1: 1.3.0-alt1
4.0: 1.3.0-alt1
3.0: 1.2.2-alt1
+backports:1.2.9-alt1.M30.1
www.altlinux.org/Changes

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

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

Name: hasher-priv
Version: 2.0.12
Release: alt1

Summary: A privileged helper for the hasher project
License: GPLv2+
Group: Development/Other

Source: %name-%version.tar

%define _libexecdir %_prefix/libexec
%define helperdir %_libexecdir/%name
%define configdir %_sysconfdir/%name

Provides: %helperdir

# Due to makedev removal.

Conflicts: hasher < 1.4.0

BuildPreReq: help2man, sisyphus_check >= 0:0.7.11
BuildRequires: setproctitle-devel

%description
This package provides helpers for executing privileged operations
required by hasher utilities.

%prep
%setup

%build
%make_build CC="%__cc" CFLAGS="%optflags" libexecdir="%_libexecdir"

%install
%makeinstall_std \
libexecdir="%_libexecdir" \
tmpfilesdir="%_tmpfilesdir" \
systemd_unitdir="%_unitdir" \
#

%pre
groupadd -r -f hashman

%post
%post_service hasher-privd

%preun
%preun_service hasher-privd

%triggerpostun -- %name < 2.0
/sbin/chkconfig --add hasher-privd
if [ -n "$(getent group hashman |cut -d: -f4)" ]; then
/sbin/chkconfig hasher-privd on
/sbin/service hasher-privd start
fi

%files
%_sbindir/hasher-useradd
%_mandir/man?/*
# config
%attr(750,root,hashman) %dir %configdir
%attr(750,root,hashman) %dir %configdir/user.d
%attr(640,root,hashman) %config(noreplace) %configdir/fstab
%attr(640,root,hashman) %config(noreplace) %configdir/system
%attr(640,root,hashman) %config(noreplace) %configdir/daemon.conf
# helpers
%attr(750,root,hashman) %dir %helperdir
%attr(710,root,hashman) %helperdir/%name
%attr(755,root,root) %helperdir/*.sh
# daemon
%_sbindir/hasher-privd
%_unitdir/hasher-privd.service
%_initdir/hasher-privd
# socketdir
%_tmpfilesdir/%name.conf
%attr(710,root,hashman) %dir /run/%name/

%doc DESIGN

%changelog

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

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