Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 36916993
en ru br
Репозитории ALT
S:0.3.2-alt1
5.1: 0.3.0-alt0.M50P.1
4.1: 0.2.12-alt1.M41.1
4.0: 0.2.12-alt1
3.0: 0.2.9.1-alt1
www.altlinux.org/Changes

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

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

# $Id: consolehelper.spec,v 1.15 2005/06/22 15:30:03 ldv Exp $

Name: consolehelper
Version: 0.2.9.1
Release: alt1

Group: System/Configuration/Other
Summary: A wrapper that helps console users run system programs
License: GPL

Source: %name-%version.tar.bz2

PreReq: shadow-utils, control
Obsoletes: usermode

BuildPreReq: glib-devel libgtk+2-devel libpam-devel pkgconfig xorg-x11-devel

%define conshelpdir %_libexecdir/%name

%description
consolehelper is a tool that makes it easy for console users to run system
programs, doing authentication via PAM (which can be set up to trust all
console users or to ask for a password at the system administrator's
discretion).  When possible, the authentication is done graphically; otherwise,
it is done within the text console from which consolehelper was started.

consolehelper requires that a PAM configuration for every managed program
exist.  So to make /sbin/foo or /usr/sbin/foo managed, you need to create a
link from /usr/bin/foo to %conshelpdir/helper and create the file
/etc/pam.d/foo, normally using the pam_console(8) PAM module.

%prep
%setup -q

%build
%make_build libexecdir=%_libexecdir helperdir=%conshelpdir

%install
%make_install install libexecdir=%_libexecdir helperdir=%conshelpdir

# compatibility.

pushd $RPM_BUILD_ROOT
%__mkdir_p .%_bindir ./usr/lib/helper
%__ln_s `relative %conshelpdir/helper /usr/lib/helper/` \
./usr/lib/helper/%name
%__ln_s `relative %conshelpdir/helper %_bindir/` \
.%_bindir/%name
popd

%find_lang %name

%pre
/usr/sbin/groupadd -r -f conshelp
%pre_control %name

%post
%post_control %name

%files -f %name.lang
%config /etc/control.d/facilities/%name
%_bindir/*
/usr/lib/helper/*
%dir %conshelpdir
%attr(2711,root,conshelp) %conshelpdir/helper
%attr(710,root,conshelp) %dir %conshelpdir/priv
%attr(4711,root,root) %conshelpdir/priv/auth
%_datadir/pixmaps/*
%_man8dir/*

%changelog

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

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