2006-12-18 17:51:26 +00:00
|
|
|
#
|
2011-02-02 01:15:34 +00:00
|
|
|
# spec file for package at
|
2006-12-18 17:51:26 +00:00
|
|
|
#
|
2014-01-10 13:58:57 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-18 17:51:26 +00:00
|
|
|
#
|
2008-09-01 12:45:30 +00:00
|
|
|
# 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.
|
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-09-13 12:29:35 +00:00
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
Name: at
|
2014-09-25 05:54:26 +00:00
|
|
|
Version: 3.1.15
|
2011-12-20 20:05:46 +00:00
|
|
|
Release: 0
|
2006-12-18 17:51:26 +00:00
|
|
|
Summary: A Job Manager
|
2011-12-20 20:05:46 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Daemons
|
2014-03-10 16:59:12 +00:00
|
|
|
|
|
|
|
Url: ftp://ftp.debian.org/debian/pool/main/a/at
|
|
|
|
Source: ftp://ftp.debian.org/debian/pool/main/a/at/%{name}_%{version}.orig.tar.gz
|
2006-12-18 17:51:26 +00:00
|
|
|
Source2: atd.pamd
|
|
|
|
Source3: sysconfig.atd
|
2010-07-23 21:24:30 +00:00
|
|
|
Source4: at.sleep
|
2013-07-15 13:51:19 +00:00
|
|
|
Source5: atd.service
|
2014-03-10 16:59:12 +00:00
|
|
|
|
|
|
|
Patch0: at-3.1.14.patch
|
|
|
|
Patch4: at-3.1.14-joblist.patch
|
|
|
|
Patch5: at-3.1.14-selinux.patch
|
|
|
|
Patch7: at-3.1.8-eal3-manpages.patch
|
2013-06-11 13:42:01 +00:00
|
|
|
## no bugs anymore for patch8. Just paranoia checking
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch8: at-3.1.13-formatbugs.patch
|
|
|
|
Patch9: at-3.1.13-pam.patch
|
|
|
|
Patch10: at-3.1.13-massive_batch.patch
|
|
|
|
Patch11: at-3.1.13-documentation-dir.patch
|
|
|
|
Patch12: at-3.1.13-queue-nice-level.patch
|
2011-04-11 12:30:15 +00:00
|
|
|
# PATCH-FIX-UPSTREAM pam-session-as-root (bnc#408986, bnc#239210)
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch14: at-3.1.13-pam-session-as-root.patch
|
2011-04-11 12:30:15 +00:00
|
|
|
# PATCH-FIX-UPSTREAM clean-up opened descriptors (bnc#533454, bnc#523346)
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch15: at-3.1.13-leak-fix.patch
|
2011-04-11 12:30:15 +00:00
|
|
|
#PATCH-FIX-OPENSUSE add proper system users to the deny list
|
2010-09-28 20:34:15 +00:00
|
|
|
Patch16: at-3.1.8-denylist.patch
|
2011-04-11 12:30:15 +00:00
|
|
|
#PATCH-FIX-UPSTREAM plan jobs with past time to tomorrow (bnc#672586)
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch17: at-3.1.13-tomorrow.patch
|
2011-04-19 08:01:10 +00:00
|
|
|
#PATCH-FIX-UPSTREAM wrong mtime handling of jobdir (bnc#680113)
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch19: at-3.1.8-jobdir-mtime.patch
|
|
|
|
Patch20: at-3.1.14-parse-suse-sysconfig.patch
|
2013-06-18 16:14:47 +00:00
|
|
|
#PATCH-FIX-UPSTREAM fix makefile dependencies
|
2014-03-10 16:59:12 +00:00
|
|
|
Patch21: at-3.1.14-makefile-deps.patch
|
2013-07-13 20:40:31 +00:00
|
|
|
#PATCH-FIX-OPENSUSE Set pid dir to /run not /var/run
|
|
|
|
Patch22: at-piddir.patch
|
2013-10-07 13:11:28 +00:00
|
|
|
Patch23: at-secure_getenv.patch
|
2013-11-12 15:42:40 +00:00
|
|
|
#PATCH-FIX-OPENSUSE backport privs from 3.1.8 (bnc#849720)
|
|
|
|
Patch24: at-backport-old-privs.patch
|
2014-07-31 11:11:32 +00:00
|
|
|
#PATCH-FEATURE-UPSTREAM introduce -o <timeformat> argument for atq (bnc#879402)
|
|
|
|
Patch25: at-atq-timeformat.patch
|
2014-10-02 11:54:39 +00:00
|
|
|
Patch26: at-sane-envkeys.diff
|
2014-03-10 16:59:12 +00:00
|
|
|
|
|
|
|
BuildRequires: autoconf >= 2.69
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: pam-devel
|
2011-12-05 19:22:50 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
2012-11-29 10:10:11 +00:00
|
|
|
BuildRequires: libHX-devel
|
|
|
|
BuildRequires: pkgconfig
|
2013-06-20 11:55:35 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2011-12-05 19:22:50 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
%define has_systemd 1
|
|
|
|
%endif
|
2014-03-10 16:59:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2014-07-28 08:25:25 +00:00
|
|
|
PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq
|
2014-03-10 16:59:12 +00:00
|
|
|
PreReq: permissions
|
|
|
|
Recommends: smtp_daemon
|
2006-12-18 17:51:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This program allows you to run jobs at specified times.
|
|
|
|
|
|
|
|
%prep
|
2009-01-08 13:50:40 +00:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
2006-12-18 17:51:26 +00:00
|
|
|
%patch4
|
2009-01-08 13:50:40 +00:00
|
|
|
%patch5
|
|
|
|
%patch7
|
2006-12-18 17:51:26 +00:00
|
|
|
%patch8
|
|
|
|
%patch9
|
2007-03-20 00:14:00 +00:00
|
|
|
%patch10
|
2008-04-08 20:15:40 +00:00
|
|
|
%patch11
|
2009-02-12 21:41:28 +00:00
|
|
|
%patch12
|
2010-09-28 20:34:15 +00:00
|
|
|
%patch14
|
2009-08-14 12:55:08 +00:00
|
|
|
%patch15
|
2010-09-28 20:34:15 +00:00
|
|
|
%patch16
|
2011-02-01 10:04:54 +00:00
|
|
|
%patch17 -p1
|
2011-04-19 08:01:10 +00:00
|
|
|
%patch19
|
2014-09-25 05:54:26 +00:00
|
|
|
%patch20
|
2013-06-18 16:14:47 +00:00
|
|
|
%patch21 -p1
|
2013-07-13 20:40:31 +00:00
|
|
|
%patch22
|
2013-10-07 13:11:28 +00:00
|
|
|
%patch23 -p1
|
2013-11-12 15:42:40 +00:00
|
|
|
%patch24 -p1
|
2014-07-31 11:11:32 +00:00
|
|
|
%patch25
|
2014-10-02 11:54:39 +00:00
|
|
|
%patch26 -p1
|
2013-11-12 15:42:40 +00:00
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
%build
|
|
|
|
rm -fv y.tab.c y.tab.h lex.yy.c lex.yy.o y.tab.o
|
2012-11-29 10:10:11 +00:00
|
|
|
autoreconf -fiv
|
2014-03-10 16:59:12 +00:00
|
|
|
|
|
|
|
export CFLAGS="%{?optflags} -fPIE"
|
|
|
|
export LDFLAGS="-pie"
|
2010-07-17 02:26:23 +00:00
|
|
|
export SENDMAIL=%{_sbindir}/sendmail
|
2014-03-10 16:59:12 +00:00
|
|
|
|
2009-01-08 13:50:40 +00:00
|
|
|
%configure \
|
|
|
|
--with-pam \
|
|
|
|
--with-selinux \
|
|
|
|
--with-daemon_username=at \
|
|
|
|
--with-daemon_groupname=at
|
2013-11-12 15:42:40 +00:00
|
|
|
|
2014-03-10 16:59:12 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2006-12-18 17:51:26 +00:00
|
|
|
|
|
|
|
%install
|
2014-03-10 16:59:12 +00:00
|
|
|
%{__install} -d %{buildroot}{%{_sysconfdir}/pam.d,%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_localstatedir}/adm/fillup-templates}
|
|
|
|
|
|
|
|
export CFLAGS="%{?optflags}"
|
2010-07-17 02:26:23 +00:00
|
|
|
export SENDMAIL=%{_sbindir}/sendmail
|
2014-03-10 16:59:12 +00:00
|
|
|
|
|
|
|
%{__make} install IROOT=%{buildroot}
|
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
# Don't install docs here in this way
|
|
|
|
mkdir docs
|
2014-03-10 16:59:12 +00:00
|
|
|
mv %{buildroot}/%{_prefix}/doc/at/* docs/
|
2013-11-12 15:42:40 +00:00
|
|
|
|
2014-03-10 16:59:12 +00:00
|
|
|
%{__install} -D -m 0644 %{S:5} %{buildroot}%{_unitdir}/atd.service
|
2013-06-20 11:55:35 +00:00
|
|
|
%{__install} -D -m 0755 %{S:4} %{buildroot}%{_prefix}/lib/systemd/system-sleep/atd.sh
|
2014-07-31 10:53:31 +00:00
|
|
|
%{__ln_s} -f %{_sbindir}/service %{buildroot}%{_sbindir}/rcatd
|
2010-07-23 21:24:29 +00:00
|
|
|
|
2014-03-10 16:59:12 +00:00
|
|
|
%{__install} -m644 %SOURCE2 %{buildroot}%{_sysconfdir}/pam.d/atd
|
|
|
|
%{__install} -m644 %SOURCE3 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
2013-11-12 15:42:40 +00:00
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
%pre
|
2010-07-17 02:26:23 +00:00
|
|
|
%{_sbindir}/groupadd -g 25 -o -r at 2> /dev/null || :
|
|
|
|
%{_sbindir}/useradd -r -o -g at -u 25 -s /bin/bash -c "Batch jobs daemon" -d /var/spool/atjobs at 2> /dev/null || :
|
2011-12-05 19:22:50 +00:00
|
|
|
%service_add_pre atd.service
|
2006-12-18 17:51:26 +00:00
|
|
|
|
|
|
|
%preun
|
2011-12-05 19:22:50 +00:00
|
|
|
%service_del_preun atd.service
|
2006-12-18 17:51:26 +00:00
|
|
|
|
|
|
|
%post
|
2014-07-28 08:25:25 +00:00
|
|
|
%fillup_only -n atd
|
2011-12-05 19:22:50 +00:00
|
|
|
%set_permissions /usr/bin/at
|
|
|
|
%service_add_post atd.service
|
2006-12-18 17:51:26 +00:00
|
|
|
|
2013-10-22 08:50:21 +00:00
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e /usr/bin/at
|
|
|
|
|
2006-12-18 17:51:26 +00:00
|
|
|
%postun
|
2011-12-05 19:22:50 +00:00
|
|
|
%service_del_postun atd.service
|
2006-12-18 17:51:26 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-05-13 07:46:13 +00:00
|
|
|
%doc Problems Copyright COPYING README ChangeLog timespec
|
2014-03-10 16:59:12 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/at.deny
|
2010-07-17 02:26:23 +00:00
|
|
|
%{_sbindir}/rcatd
|
2014-03-10 16:59:12 +00:00
|
|
|
%config %attr(644,root,root) %{_sysconfdir}/pam.d/atd
|
2010-07-17 02:26:23 +00:00
|
|
|
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/at
|
|
|
|
%{_bindir}/atq
|
|
|
|
%{_bindir}/atrm
|
|
|
|
%{_bindir}/batch
|
|
|
|
%{_mandir}/man?/*
|
|
|
|
%{_sbindir}/atd
|
|
|
|
%{_sbindir}/atrun
|
2014-03-10 16:59:12 +00:00
|
|
|
%attr(700,at,at) %dir %{_localstatedir}/spool/atspool
|
|
|
|
%attr(1770,at,at) %dir %{_localstatedir}/spool/atjobs
|
|
|
|
%attr(600,at,at) %{_localstatedir}/spool/atjobs/.SEQ
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.atd
|
2011-12-05 19:22:50 +00:00
|
|
|
%{_unitdir}/atd.service
|
2013-06-20 11:55:35 +00:00
|
|
|
%{_prefix}/lib/systemd/system-sleep/atd.sh
|
2006-12-18 17:51:26 +00:00
|
|
|
|
2007-03-20 00:14:00 +00:00
|
|
|
%changelog
|