Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37867262
en ru br
ALT Linux repositórios
5.0: 1.0-alt4.1
4.1: 1.0-alt4.1
4.0: 1.0-alt4.1
3.0: 1.0-alt4.1

Group :: Sistema/Kernel e hardware
RPM: givertcap

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: givertcap
Version: 1.0
Release: alt4.1

Group: System/Kernel and hardware
Summary: GIVERTCAP gives other application real-time capabilities
Summary(ru_RU.KOI8-R): Givertcap ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÐÒÉÌÏÖÅÎÉÑÍ ×ÏÚÍÏÖÎÏÓÔØ ÒÁÂÏÔÁÔØ × ÒÅÖÉÍÅ ÒÅÁÌØÎÏÇÏ ×ÒÅÍÅÎÉ
License: GPL
Url: http://www.tml.hut.fi/~tilmonen/givertcap
Packager: Yuri N. Sedunov <aris at altlinux.ru>

Source: %url/%name.c
Source1: givertcap.html
Source2: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/capfaq-0.2.txt
Patch: %name-1.0-ccrma.patch

# Automatically added by buildreq on Mon Jul 14 2003

BuildRequires: gcc-c++ libcap-devel libstdc++-devel

%description
With the aid of givertcap you can run real-time applications (audio and
video- processing apps for example) with high priority without running
the application as root. Your application does get a collection
capabilities that allow it to run at very high priority. Givertcap was
created to overcome the lack of capability support in Linux file
systems. Once the Linux file systems start to have the necessary
functions themselves, this apps becomes unnecessary.

%description -l ru_RU.KOI8-R
ðÒÉ ÐÏÍÏÝÉ givertcap ×Ù ÍÏÖÅÔÅ ÚÁÐÕÓËÁÔØ ÔÒÅÂÕÀÝÉÅ real-time ÒÅÖÉÍÁ
ÐÒÉÌÏÖÅÎÉÑ Ó ×ÙÓÏËÉÍ ÐÒÉÏÒÉÔÅÔÏÍ ÂÅÚ ÐÒÁ× ÓÕÐÅÒÐÏÌØÚÏ×ÁÔÅÌÑ. ëÏÇÄÁ-ÎÉÂÕÄØ,
ËÏÇÄÁ ÆÁÊÌÏ×ÙÅ ÓÉÓÔÅÍÙ ÄÌÑ Linux ÎÁÞÎÕÔØ ÐÒÅÄÏÓÔÁ×ÌÑÔØ ÎÕÖÎÕÀ
ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ ÓÁÍÉ ÐÏ ÓÅÂÅ, ÎÅÏÂÈÏÄÉÍÏÓÔØ × givertcap ÏÔÏÍÒ£Ô
ÅÓÔÅÓÔ×ÅÎÎÙÍ ÏÂÒÁÚÏÍ.

# We want to limit the number of people who can access this application.

%define GROUP rtusers

%prep
%setup -T -c %name-%version
%__cp %SOURCE0 $RPM_BUILD_DIR/%name-%version
%patch -p1

%build
%__cxx $RPM_OPT_FLAGS %name.c -o %name -lcap

%install
%__install -pD %name %buildroot%_bindir/%name
%__install -d %buildroot%_docdir/%name-%version
%__install -pD -m644 %SOURCE1 %SOURCE2 %buildroot%_docdir/%name-%version

# Applications using %name needs environment variable GIVERTCAP.

cat << EOF >%name.sh
#!/bin/sh
GIVERTCAP="%_bindir/%name"
export GIVERTCAP
EOF

cat << EOF >%name.csh
#!/bin/csh
setenv GIVERTCAP "%_bindir/%name"
EOF

%__install -d %buildroot%_sysconfdir/profile.d
%__install -pD -m755 %name.sh %name.csh %buildroot%_sysconfdir/profile.d

%pre
# We need to create group %GROUP
%_sbindir/groupadd -r -f %GROUP ||:

%files
%attr(4710,root,%GROUP) %_bindir/%name
%_docdir/%name-%version/*
%_sysconfdir/profile.d/*

%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