Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37566372
en ru br
ALT Linux repositórios
S:0.3.2-alt1
5.0: 0.2.12-alt2
4.1: 0.2.12-alt1.M41.1
4.0: 0.2.12-alt1
3.0: 0.2.9.1-alt1

Group :: Sistema/Configurações/Rede
RPM: consolehelper

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: consolehelper
Version: 0.2.12
Release: alt1.M41.1

Group: System/Configuration/Other
Summary: A wrapper that helps console users run system programs
License: GPL
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: %name-%version.tar

PreReq: shadow-utils, control
Obsoletes: usermode

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

%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 %buildroot
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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009