Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37912323
en ru br
ALT Linux repos
S:1.5.2-alt1
5.0: 1.5-alt1

Group :: System/Base
RPM: timeoutd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Summary: timeoutd enforces the time restrictions specified for each or all users.
Name: timeoutd
Version: 1.5
Release: alt1
License: GPL
Group: System/Base
Packager: Boris Savelev <boris at altlinux.org>
Source: %name-%version.tar.bz2
Source1: %name.init
Patch: %name-%version-full.patch

# Automatically added by buildreq on Sat Mar 14 2009

BuildRequires: libX11-devel libXScrnSaver-devel libXext-devel

%description
timeoutd scans /var/run/utmp every minute and checks /etc/timeouts for an entry which matches a restricted user, based on:
- The current day and time
- The tty that the user is currently logged in on
- The user's login ID
- Any primary or secondary groups the user is in
timeoutd can restrict local users, X11-users and users via telnet/SSH for a maximum of their session, max. day, idle or no login at all.
timeoutd is also able to restrict users running X.

%prep
%setup
%patch0 -p1

%build
%make_build CFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p %buildroot%_sbindir
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_man5dir
mkdir -p %buildroot%_man8dir
mkdir -p %buildroot%_sysconfdir/%name/messages/
install -m755 %name %buildroot%_sbindir/%name
install -m755 %SOURCE1 %buildroot%_initdir/%name
install -m644 timeouts %buildroot%_sysconfdir/%name
install -m644 timeouts.5 %buildroot%_man5dir
install -m644 %name.8 %buildroot%_man8dir

%files
%doc README
%dir %_sysconfdir/%name
%dir %_sysconfdir/%name/messages
%config %_sysconfdir/%name/timeouts
%_sbindir/%name
%_initdir/%name
%_man5dir/*
%_man8dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin