OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=1e5b02f0ed5d3284ffc90336bcc74729
163 lines
4.7 KiB
RPMSpec
163 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package at (Version 3.1.8)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: at
|
|
BuildRequires: bison flex pam-devel
|
|
BuildRequires: libselinux-devel
|
|
Url: ftp://ftp.debian.org/debian/pool/main/a/at
|
|
License: GPL v2 or later
|
|
Group: System/Daemons
|
|
AutoReqProv: on
|
|
Version: 3.1.8
|
|
Release: 1077
|
|
Summary: A Job Manager
|
|
Source: at_3.1.8-11.tar.gz
|
|
Source1: atd.init
|
|
Source2: atd.pamd
|
|
Source3: sysconfig.atd
|
|
Patch0: %{name}-%{version}.patch
|
|
Patch1: %{name}-%{version}-bison.patch
|
|
Patch2: %{name}-%{version}-delete_r.patch
|
|
Patch3: %{name}-%{version}-ttime.patch
|
|
Patch4: %{name}-%{version}-joblist.patch
|
|
Patch5: %{name}-%{version}-selinux.patch
|
|
Patch6: %{name}-%{version}-pie.patch
|
|
Patch7: %{name}-%{version}-eal3-manpages.patch
|
|
Patch8: %{name}-%{version}-formatbugs.patch
|
|
Patch9: %{name}-%{version}-pam.patch
|
|
Patch10: %{name}-%{version}-massive_batch.patch
|
|
Patch11: %{name}-%{version}-documentation-dir.patch
|
|
Patch12: %{name}-%{version}-queue-nice-level.patch
|
|
# PATCH-FIX-UPSTREAM cleanup_perm fix permissions for unlink (bnc#478733)
|
|
Patch13: %{name}-%{version}-cleanup_perm.patch
|
|
# PATCH-FIX-UPSTRAM pam-session-as-root (bnc#408986, bnc#239210)
|
|
Patch14: %{name}-%{version}-pam-session-as-root.patch
|
|
# PATCH-FIX-UPSTRAM clean-up opened descriptors (bnc#533454, bnc#523346)
|
|
Patch15: %{name}-%{version}-leak-fix.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
PreReq: /usr/sbin/useradd /usr/sbin/groupadd %fillup_prereq %insserv_prereq
|
|
|
|
%description
|
|
This program allows you to run jobs at specified times.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Thomas Koenig <ig25@rz.uni-karlsruhe.de>
|
|
David Parsons <orc@pell.chi.il.us>
|
|
Martin Schulze <joey@debian.org>
|
|
Siggy Brentrup <bsb@winnegan.de>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
%patch8
|
|
%patch9
|
|
%patch10
|
|
%patch11
|
|
%patch12
|
|
%patch13
|
|
%patch14 -p1
|
|
%patch15
|
|
|
|
%build
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
rm -fv y.tab.c y.tab.h lex.yy.c lex.yy.o y.tab.o
|
|
autoconf
|
|
export SENDMAIL=/usr/sbin/sendmail
|
|
%configure \
|
|
--with-pam \
|
|
--with-selinux \
|
|
--with-daemon_username=at \
|
|
--with-daemon_groupname=at
|
|
make
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/etc/{init.d,pam.d}
|
|
mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin,share/man/man{1,5,8}}
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
export SENDMAIL=/usr/sbin/sendmail
|
|
make install IROOT=$RPM_BUILD_ROOT
|
|
# Don't install docs here in this way
|
|
mkdir docs
|
|
mv $RPM_BUILD_ROOT/%{_prefix}/doc/at/* docs/
|
|
install %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/atd
|
|
ln -sf ../../etc/init.d/atd $RPM_BUILD_ROOT/usr/sbin/rcatd
|
|
install -m644 %SOURCE2 $RPM_BUILD_ROOT/etc/pam.d/atd
|
|
install -m644 %SOURCE3 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
%pre
|
|
/usr/sbin/groupadd -g 25 -o -r at 2> /dev/null || :
|
|
/usr/sbin/useradd -r -o -g at -u 25 -s /bin/bash -c "Batch jobs daemon" -d /var/spool/atjobs at 2> /dev/null || :
|
|
|
|
%preun
|
|
%stop_on_removal atd
|
|
|
|
%post
|
|
# update hack
|
|
# the rcscript used to be /etc/init.d/at
|
|
if [ -f etc/init.d/at ] ; then
|
|
rm -f etc/init.d/at
|
|
%{insserv_cleanup}
|
|
fi
|
|
%{fillup_and_insserv -n atd atd }
|
|
%run_permissions
|
|
|
|
%postun
|
|
%restart_on_update atd
|
|
%insserv_cleanup
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Problems Copyright README ChangeLog timespec
|
|
%config(noreplace) /etc/at.deny
|
|
/usr/sbin/rcatd
|
|
%config /etc/init.d/atd
|
|
%config %attr(644,root,root) /etc/pam.d/atd
|
|
%verify(not mode) %attr(4750,root,trusted) /usr/bin/at
|
|
/usr/bin/atq
|
|
/usr/bin/atrm
|
|
/usr/bin/batch
|
|
%doc /usr/share/man/man1/at.1.gz
|
|
%doc /usr/share/man/man1/atq.1.gz
|
|
%doc /usr/share/man/man1/atrm.1.gz
|
|
%doc /usr/share/man/man1/batch.1.gz
|
|
%doc /usr/share/man/man5/at.allow.5.gz
|
|
%doc /usr/share/man/man5/at.deny.5.gz
|
|
%doc /usr/share/man/man8/atd.8.gz
|
|
%doc /usr/share/man/man8/atrun.8.gz
|
|
/usr/sbin/atd
|
|
/usr/sbin/atrun
|
|
%attr(700,at,at) %dir /var/spool/atspool
|
|
%attr(700,at,at) %dir /var/spool/atjobs
|
|
%attr(600,at,at) /var/spool/atjobs/.SEQ
|
|
/var/adm/fillup-templates/sysconfig.atd
|
|
|
|
%changelog
|