2024-01-05 20:36:28 +01:00
|
|
|
%define atdaemon_groupid 65022
|
|
|
|
%define atdaemon_userid 65022
|
|
|
|
|
|
|
|
Name: at
|
2024-01-05 20:36:29 +01:00
|
|
|
Version: 3.2.2
|
|
|
|
Release: 1mamba
|
2024-01-05 20:36:28 +01:00
|
|
|
Summary: Job spooling tools
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 20:36:29 +01:00
|
|
|
URL: https://blog.calhariz.com/tag/at
|
2024-01-05 20:36:29 +01:00
|
|
|
Source0: http://software.calhariz.com/at/at_%{version}.orig.tar.gz
|
2024-01-05 20:36:28 +01:00
|
|
|
Source1: atd-initscript
|
2024-01-05 20:36:29 +01:00
|
|
|
Source2: at-pam.conf
|
2024-01-05 20:36:28 +01:00
|
|
|
# patches stolen from fedora
|
|
|
|
Patch0: %{name}-3.1.7-lockfile.patch
|
|
|
|
Patch1: %{name}-3.1.10-man-timespec-path.patch
|
|
|
|
Patch2: %{name}-3.1.7-sigchld.patch
|
|
|
|
Patch3: %{name}-3.1.10-typo.patch
|
|
|
|
Patch4: %{name}-3.1.10-lexer-parser.patch
|
|
|
|
Patch5: %{name}-3.1.8-test.patch
|
|
|
|
Patch6: %{name}-3.1.8-perr.patch
|
|
|
|
Patch7: %{name}-3.1.10-instinet.patch
|
|
|
|
Patch8: %{name}-3.1.12-shell.patch
|
|
|
|
Patch9: %{name}-3.1.10-pie.patch
|
|
|
|
Patch10: %{name}-3.1.8-t_option.patch
|
|
|
|
Patch11: %{name}-3.1.10-usage.patch
|
|
|
|
Patch12: %{name}-3.1.10-fix_no_export.patch
|
|
|
|
Patch13: %{name}-3.1.10-dont_fork.patch
|
|
|
|
Patch14: %{name}-3.1.13-pam.patch
|
|
|
|
Patch15: %{name}-3.1.13-makefile.patch
|
|
|
|
Patch16: %{name}-3.1.10-daylight.patch
|
|
|
|
Patch17: %{name}-3.1.10-perm.patch
|
|
|
|
Patch18: %{name}-3.1.12-opt_V.patch
|
|
|
|
Patch19: %{name}-3.1.12-selinux.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 20:36:29 +01:00
|
|
|
BuildRequires: libfl-devel
|
|
|
|
BuildRequires: libpam-devel
|
2024-01-05 20:36:28 +01:00
|
|
|
BuildRequires: libselinux-devel
|
2024-01-05 20:36:29 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
%systemd_requires
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
At and batch read commands from standard input or from a specified file.
|
|
|
|
At allows you to specify that a command will be run at a particular time (now or a specified time in the future).
|
|
|
|
Batch will execute commands when the system load levels drop to a particular level.
|
|
|
|
Both commands use /bin/sh to run the commands.
|
|
|
|
|
2024-01-05 20:36:29 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 20:36:29 +01:00
|
|
|
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
|
2024-01-05 20:36:28 +01:00
|
|
|
%patch2 -p1 -b .sigchld
|
|
|
|
%patch4 -p1 -b .lexer
|
2024-01-05 20:36:29 +01:00
|
|
|
#%patch5 -p1 -b .test
|
|
|
|
#%patch6 -p1 -b .perr
|
2024-01-05 20:36:28 +01:00
|
|
|
%patch8 -p1 -b .shell
|
2024-01-05 20:36:29 +01:00
|
|
|
#%patch14 -p1 -b .pam
|
2024-01-05 20:36:28 +01:00
|
|
|
%patch18 -p1 -b .opt_V
|
|
|
|
|
|
|
|
sed -i "s|-g root||g" Makefile.in
|
|
|
|
sed -i "s|-o root||g" Makefile.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
# for patch2
|
|
|
|
rm -f lex.yy.* y.tab.*
|
|
|
|
sed -i "s|/var/run|/run|g" configure
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--with-atspool=%{_localstatedir}/spool/at/spool \
|
|
|
|
--with-jobdir=%{_localstatedir}/spool/at \
|
|
|
|
--with-daemon_username=atdaemon \
|
|
|
|
--with-daemon_groupname=atdaemon \
|
2024-01-05 20:36:29 +01:00
|
|
|
--with-systemdsystemunitdir=%{_unitdir}
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%make -j1
|
|
|
|
#LANG=C make test >/dev/null
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%makeinstall \
|
|
|
|
IROOT=%{buildroot} \
|
|
|
|
DAEMON_USERNAME=`id -nu` \
|
|
|
|
DAEMON_GROUPNAME=`id -ng` \
|
|
|
|
INSTALL_ROOT_USER=`id -nu` \
|
|
|
|
INSTALL_ROOT_GROUP=`id -nu` \
|
|
|
|
docdir=%{_docdir}
|
|
|
|
|
|
|
|
# prefix=%{buildroot}%{_prefix} \
|
|
|
|
# bindir=%{buildroot}%{_bindir} \
|
|
|
|
# sbindir=%{buildroot}%{_sbindir} \
|
|
|
|
# etcdir=%{buildroot}%{_sysconfdir} \
|
|
|
|
# mandir=%{buildroot}%{_mandir} \
|
|
|
|
# ATJOB_DIR=%{buildroot}%{_localstatedir}/spool/at \
|
|
|
|
# ATSPOOL_DIR=%{buildroot}%{_localstatedir}/spool/at/spool \
|
|
|
|
#install -D -m 0755 %{S:1} %{buildroot}%{_initrddir}/atd
|
|
|
|
|
2024-01-05 20:36:29 +01:00
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/atd
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
groupadd -g %{atdaemon_groupid} atdaemon 2>/dev/null
|
|
|
|
useradd -u %{atdaemon_userid} -g atdaemon -c "at daemon" \
|
|
|
|
-d /var/empty -s /bin/false atdaemon 2>/dev/null
|
2024-01-05 20:36:29 +01:00
|
|
|
:
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
touch %{_localstatedir}/spool/at/.SEQ
|
|
|
|
chmod 600 %{_localstatedir}/spool/at/.SEQ
|
|
|
|
chown atdaemon:atdaemon %{_localstatedir}/spool/at/.SEQ
|
2024-01-05 20:36:29 +01:00
|
|
|
%systemd_post atd
|
|
|
|
:
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 20:36:29 +01:00
|
|
|
%systemd_preun atd
|
|
|
|
:
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%postun
|
2024-01-05 20:36:29 +01:00
|
|
|
%systemd_postun_with_restart atd
|
|
|
|
:
|
2024-01-05 20:36:28 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/at.deny
|
2024-01-05 20:36:29 +01:00
|
|
|
%{_sysconfdir}/pam.d/atd
|
|
|
|
%attr(4755,root,root) %{_bindir}/at
|
2024-01-05 20:36:28 +01:00
|
|
|
%{_bindir}/batch
|
|
|
|
%{_bindir}/atrm
|
|
|
|
%{_bindir}/atq
|
|
|
|
%{_sbindir}/atrun
|
|
|
|
%{_sbindir}/atd
|
2024-01-05 20:36:29 +01:00
|
|
|
%{_unitdir}/atd.service
|
2024-01-05 20:36:29 +01:00
|
|
|
%dir %{_datadir}/at
|
|
|
|
%{_datadir}/at/batch-job
|
2024-01-05 20:36:28 +01:00
|
|
|
%attr(0700,atdaemon,atdaemon) %dir %{_localstatedir}/spool/at
|
|
|
|
%attr(0700,atdaemon,atdaemon) %dir %{_localstatedir}/spool/at/spool
|
|
|
|
%ghost %{_localstatedir}/spool/at/.SEQ
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%dir %{_docdir}/at
|
|
|
|
%{_docdir}/at
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:36:29 +01:00
|
|
|
* Tue Apr 27 2021 Automatic Build System <autodist@mambasoft.it> 3.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:29 +01:00
|
|
|
* Tue Dec 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
|
|
|
|
- rebuilt with debug package and aarch64 build fix
|
|
|
|
|
2024-01-05 20:36:29 +01:00
|
|
|
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- update to 3.2.1
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
* Tue Oct 09 2018 Automatic Build System <autodist@mambasoft.it> 3.1.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
* Fri Aug 12 2016 Automatic Build System <autodist@mambasoft.it> 3.1.20-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
* Sun Oct 12 2014 Automatic Build System <autodist@mambasoft.it> 3.1.16-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
* Fri Aug 22 2014 Automatic Build System <autodist@mambasoft.it> 3.1.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:28 +01:00
|
|
|
* Thu Oct 10 2013 Automatic Build System <autodist@mambasoft.it> 3.1.14-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Sep 10 2011 Automatic Build System <autodist@mambasoft.it> 3.1.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Dec 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.12-1mamba
|
|
|
|
- update to 3.1.12
|
|
|
|
|
|
|
|
* Mon Aug 25 2008 Aleph0 <aleph0@openmamba.org> 3.1.10-3mamba
|
|
|
|
- remove broken symlink to debian copyright
|
|
|
|
|
|
|
|
* Mon Jul 02 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.10-2mamba
|
|
|
|
- fix pam file for new release
|
|
|
|
|
|
|
|
* Wed Jan 17 2007 Davide Madrisan <davide.madrisan@qilinux.it> 3.1.10-1qilnx
|
|
|
|
- update to version 3.1.10 by autospec
|
|
|
|
- added missing build requirements
|
|
|
|
- fixed permissions of at binary
|
|
|
|
- enabled support for pam
|
|
|
|
- use the service script to start/restart/stop the atd service
|
|
|
|
- fixed owner and group for /var/spool/at/.SEQ
|
|
|
|
- modified homedir for atd daemon: now is /var/empty
|
|
|
|
|
|
|
|
* Thu Apr 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.8-1qilnx
|
|
|
|
- first build
|