--- at-3.1.12.orig/atd.c +++ at-3.1.12/atd.c @@ -252,7 +252,10 @@ * somebody else has already locked it (a second atd?); log the * fact and return. */ - if (link(filename, newname) == -1) { + PRIV_START + rc = link(filename, newname); + PRIV_END + if (rc == -1) { if (errno == EEXIST) { free(mailname); free(newname); --- at-3.1.12.orig/debian/postinst +++ at-3.1.12/debian/postinst @@ -0,0 +1,12 @@ +#!/bin/sh -e + +if [ "$1" = "configure" ]; then + SEQFILE=/var/spool/cron/atjobs/.SEQ + if [ ! -f $SEQFILE ]; then + echo 0 > $SEQFILE + chmod 600 $SEQFILE + chown daemon:daemon $SEQFILE + fi +fi + +#DEBHELPER# --- at-3.1.12.orig/debian/copyright +++ at-3.1.12/debian/copyright @@ -0,0 +1,61 @@ +This is the Debian GNU/Linux prepackaged version of the deferred +execution scheduler called at. + +This package was debianized by its author Thomas Koenig +, taken over and re-packaged first by Martin +Schulze and then by Siggy Brentrup , +and then taken over by Ryan Murray . + +In August 2009 the upstream development and Debian packaging were taken over +by Ansgar Burchardt and Cyril Brulebois . + +This may be considered the experimental upstream source, and since there +doesn't seem to be any other upstream source, the only upstream source. + + Copyright: 1993, 1994, 1995, 1996, 1997 (c) Thomas Koenig + 1993 (c) David Parsons + 2002, 2005 (c) Ryan Murray + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +The files posixtm.c and posixtm.h have the following copyright information: + + Copyright (C) 1989, 1990, 1991, 1998, 2000, 2001, 2002, 2003, 2004, + 2005, 2006, 2007 Free Software Foundation Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +parsetime.pl: + + Copyright (C) 2009, Ansgar Burchardt + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- at-3.1.12.orig/debian/compat +++ at-3.1.12/debian/compat @@ -0,0 +1 @@ +7 --- at-3.1.12.orig/debian/at.atd.upstart +++ at-3.1.12/debian/at.atd.upstart @@ -0,0 +1,14 @@ +# atd - deferred execution scheduler +# +# at is a standard UNIX program that runs user-specified programs at +# scheduled deferred times + +description "deferred execution scheduler" + +start on runlevel [2345] +stop on runlevel [!2345] + +expect fork +respawn + +exec atd --- at-3.1.12.orig/debian/control +++ at-3.1.12/debian/control @@ -0,0 +1,24 @@ +Source: at +Section: admin +Priority: standard +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Ansgar Burchardt +Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 7.3.15ubuntu2), autotools-dev, bison, flex, libpam0g-dev, + perl (>= 5.10.1) +Vcs-Browser: http://git.debian.org/?p=collab-maint/at.git +Vcs-Git: git://git.debian.org/git/collab-maint/at.git +DM-Upload-Allowed: yes + +Package: at +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14), libpam-runtime (>= 1.0.1-11) +Suggests: default-mta | mail-transport-agent +Description: Delayed job execution and batch processing + At and batch read shell commands from standard input + storing them as a job to be scheduled for execution in the + future. + . + Use + at to run the job at a specified time + batch to run the job when system load levels permit --- at-3.1.12.orig/debian/rules +++ at-3.1.12/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f + +confflags = --prefix=/usr --with-loadavg_mx=1.5 \ + --with-jobdir=/var/spool/cron/atjobs \ + --with-atspool=/var/spool/cron/atspool \ + SENDMAIL=/usr/sbin/sendmail + +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +build: build-stamp +build-stamp: + [ -f config.sub.ori ] || mv config.sub config.sub.ori + [ -f config.guess.ori ] || mv config.guess config.guess.ori + ln -sf /usr/share/misc/config.sub . + ln -sf /usr/share/misc/config.guess . + + ./configure $(confflags) + $(MAKE) + $(MAKE) test + touch $@ + +clean: + [ ! -f Makefile ] || $(MAKE) distclean + [ ! -f config.sub.ori ] || mv -f config.sub.ori config.sub + [ ! -f config.guess.ori ] || mv -f config.guess.ori config.guess + dh_clean + +binary-indep: +# Nothing to be done here + +binary-arch: build-stamp + dh_testroot + dh_prep + # Install docs: + dh_installchangelogs ChangeLog + dh_installdocs README + # Install everything: + $(MAKE) IROOT=$(CURDIR)/debian/at mandir=/usr/share/man docdir=/usr/share/doc install + # Remove (duplicate) changelog and copyright: + rm debian/at/usr/share/doc/at/Copyright + rm debian/at/usr/share/doc/at/ChangeLog + # TODO: Take care of those: + rm -f debian/at/var/spool/cron/atjobs/.SEQ + chown daemon:daemon debian/at/var/spool/cron/atjobs debian/at/var/spool/cron/atspool + # Take care of the manpages: + dh_installman + mv debian/at/usr/share/man/man5/at_allow.5 \ + debian/at/usr/share/man/man5/at.allow.5 + rm debian/at/usr/share/man/man5/at_deny.5 + ln -sf at.allow.5 \ + debian/at/usr/share/man/man5/at.deny.5 + # TODO: Why removing those? + rm debian/at/usr/sbin/atrun + rm debian/at/usr/share/man/man8/atrun.8 + # Install/rename pam config file: + dh_install pam.conf etc/pam.d + mv debian/at/etc/pam.d/pam.conf \ + debian/at/etc/pam.d/atd + # Install/rename init script: + dh_installinit --name=atd -u"start 89 2 3 4 5 . stop 11 1 ." + # Needed to keep in line with the previous upload: + chown root:daemon debian/at/etc/at.deny + dh_compress + dh_installdeb + dh_shlibdeps + dh_strip + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean --- at-3.1.12.orig/debian/postrm +++ at-3.1.12/debian/postrm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] +then + rm -rf /var/spool/cron/atjobs /var/spool/cron/atspool +fi + +#DEBHELPER# --- at-3.1.12.orig/debian/changelog +++ at-3.1.12/debian/changelog @@ -0,0 +1,568 @@ +at (3.1.12-1ubuntu2) maverick; urgency=low + + * Perform queue hardlinks with full privileges (LP: #598824). + + -- Kees Cook Sun, 27 Jun 2010 12:13:43 -0700 + +at (3.1.12-1ubuntu1) maverick; urgency=low + + * Merge from Debian unstable (LP: #559117), remaining changes: + - Replace init script with Upstart job, and bump build-dependency on + debhelper for Upstart-aware dh_installinit + - debian/control: Add missing ${misc:Depends} + - Suggest: default-mta | mail-transport-agent instead of Recommends: + exim | mail-transport-agent + * Dropped changes: + - Set SENDMAIL to /usr/lib/sendmail: this is wrong, the correct path of + /usr/sbin/sendmail as mandated by policy for the m-t-a package is + already used in Debian. + - Depend on lsb >= 3.2-14: superseded by upstart job and merged in + Debian. + - Add the 'status' action to the init script: superseded by upstart job. + + -- Steve Langasek Thu, 17 Jun 2010 16:32:42 +0000 + +at (3.1.12-1) unstable; urgency=low + + * New upstream release: + + do not increment year twice (Closes: #404965) (LP: #312051) + + do not increment day of month twice (Closes: #386665) + + update documentation on removed environment variables + (Closes: #335374) + + add -f option to stay in foreground (Closes: #208367) - thanks to + Marcela Maslanova + + error when day of month is 0 (Closes: #372671) + + make less assumptations on open file descriptors (Closes: #453707) + + add status action to init script (Closes: #506829) + + make stdout, stderr available to sendmail process (Closes: #316442) + + document -b option (LP: #156493) + + document 4-digit years and ISO date format (Closes: #359010) + + add test suite for date/time parser (Closes: #86662) + - add build-dep on perl (>= 5.10.1) for Test::More 0.92 + * use dh_installinit (Closes: #406359) + * remove support for upgrading from pre-3.1.9 + * remove rc, pam (moved upstream) + * remove Cyril Brulebois from Uploaders as requested on IRC + * now depends on lsb-base (>= 3.2-14) for status_of_proc in init script + * add dependency on libpam-runtime (>= 1.0.1-11) for + common-session-noninteractive + * update debian/copyright + * bump Standards-Version to 3.8.3 (no changes) + * debian/control: Add DM-Upload-Allowed: yes. + + -- Ansgar Burchardt Mon, 30 Nov 2009 20:03:34 +0900 + +at (3.1.11-1ubuntu5) lucid; urgency=low + + * rebuild rest of main for armel armv7/thumb2 optimization; + UbuntuSpec:mobile-lucid-arm-gcc-v7-thumb2 + + -- Alexander Sack Fri, 05 Mar 2010 03:09:56 +0100 + +at (3.1.11-1ubuntu4) karmic; urgency=low + + FFE LP: #427356. + + * Replace init script with Upstart job. + * debian/control: + - Add missing ${misc:Depends} + - Bump build-dependency on debhelper for Upstart-aware dh_installinit + + -- Scott James Remnant Tue, 15 Sep 2009 03:33:39 +0100 + +at (3.1.11-1ubuntu3) karmic; urgency=low + + * And drop the MTA back down from a Recommends to a Suggests, to not be + pulled in by default. + + -- Steve Langasek Fri, 21 Aug 2009 15:21:37 -0700 + +at (3.1.11-1ubuntu2) karmic; urgency=low + + * Restore the Recommends: default-mta | mail-transport-agent, which was + dropped in the latest merge. + + -- Steve Langasek Thu, 20 Aug 2009 15:20:31 +0000 + +at (3.1.11-1ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: LP: #415407 + - debian/control: Depend on lsb >= 3.2-14, which has the + status_of_proc() function. + - debian/rc: Add the 'status' action (Debian Bug: #506829) + - Set SENDMAIL to /usr/lib/sendmail. + + -- Bhavani Shankar Tue, 18 Aug 2009 20:02:37 +0530 + +at (3.1.11-1) unstable; urgency=low + + * New "upstream" release: + + correct comment in atd.c (Closes: #372640) + + rc: do not set -e (Closes: #445489) + + panic.c: switch permissions before unlink (Closes: #518456, #538702) + + at.c: add -t option (Closes: #515262) + + at.c: exit successfully when -V is given (Closes: #292657) + + fix some typos (Closes: #491131) + + set version to 3.1.11 (Closes: #484515) + + [ Cyril Brulebois ] + * Mark old changelog entries using “Old Changelog”. + * debian/rules: + + Stop setting SHELL to bash. + + Get rid of unneeded checkroot target. + + Get rid of unneeded local variables. + + Get rid of lines that are commented out. + + Get rid of obsolete source and diff targets. + + Get rid of unneeded dist and dsc targets. + + Get rid of unneeded variables. + + Use dh_install to install the config files. + + Call some dh_* tools at the end of the build. + - Call dh_md5sum (Closes: #309773) + + Call dh_install{changelogs,doc} to install docs. + + Use dh_installman/dh_compress to handle the manpages. + + Call dh_clean. + + Simplify calling configure. + + Use a build-stamp target. + + Use proper cleaning. + + Use “sed -i”, that's shorter. + + Get rid of the copyright, rules got rewritten. + + No longer make distclean errors. + + Remove additional removals, dh_clean will do that. + + Set SENDMAIL= for ./configure instead of using sed + * debian/control: + + Build-Depend on debhelper (>= 7). + + Update Maintainer/Uploaders according to ITA (Closes: #541013). + + Add Vcs-{Browser,Git} pointing to collab-maint/at.git + * Remove debian/conffiles, debhelper takes care of that. + + [ Ansgar Burchardt ] + * debian/rules: + + use config.{guess,sub} from autotools-dev (Closes: #536294) + + call configure as documented in autotools-dev (Closes: #480825) + + call dh_strip + + remove duplicate ChangeLog + * debian/control: + + do no longer build-dep on ssmtp | mail-transport-agent + (Closes: #524187) + + downgrade dependency on mail-transport-agent to recommends + (Closes: #468326) + + downgrade Priority to standard + + bump Standards-Version to 3.8.2 + * debian/prerm: do not ignore errors + * Copy updated debian/copyright from upstream + + -- Ansgar Burchardt Fri, 14 Aug 2009 20:24:03 +0200 + +at (3.1.10.2ubuntu2) jaunty; urgency=low + + * Set SENDMAIL to /usr/lib/sendmail in configure's env and drop ssmtp | + mail-transport-agent build-deps. + + -- Loic Minier Wed, 15 Apr 2009 12:22:47 +0200 + +at (3.1.10.2ubuntu1) jaunty; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/control: Drop mail-transport-agent to a Suggest + and prefer real alternative postfix. + - debian/control: Depend on lsb >= 3.2-14, which has the + status_of_proc() function. + - debian/rc: Add the 'status' action (Debian Bug: #506829) + + -- Dustin Kirkland Mon, 24 Nov 2008 21:55:01 -0600 + +at (3.1.10.2) unstable; urgency=low + + * Non-maintainer upload. + * Change Depends to include exim4 as alternative to mail-transport-agent. + (closes: #474999) + * Change Build-Depends to include ssmtp as alternative to + mail-transport-agent. This is what the Debian build daemons do anyway. + (closes: #491877) + + -- Christoph Berg Tue, 23 Sep 2008 11:11:21 +0200 + +at (3.1.10.1ubuntu3) intrepid; urgency=low + + * debian/control: Depend on lsb >= 3.2-12ubuntu2, which has the + status_of_proc() function. + * debian/rc: Add the 'status' action (LP: #247091). + + -- Dustin Kirkland Wed, 09 Jul 2008 16:39:40 -0500 + +at (3.1.10.1ubuntu2) intrepid; urgency=low + + * debian/control: Drop mail-transport-agent to a Suggests: again, and prefer + real alternative postfix. (Accidentally dropped in the merge) + + -- Martin Pitt Fri, 16 May 2008 11:52:38 +0200 + +at (3.1.10.1ubuntu1) intrepid; urgency=low + + * Merge with Debian unstable. Remaining Ubuntu changes: + - debian/postinst: Do not install stop rc.d links for shutdown and reboot, + they are not needed. + * debian/rc: Remove 0 and 6 from Default-Stop: LSB header, too. + + -- Martin Pitt Thu, 15 May 2008 15:50:38 +0200 + +at (3.1.10.1) unstable; urgency=low + + * Non-maintainer uploaded to fix release goal issue. + * Correct LSB header of init.d script (Closes: #376780). + + -- Petter Reinholdtsen Sun, 27 Jan 2008 06:15:14 +0100 + +at (3.1.10) unstable; urgency=low + + * Fix typo in init script (closes: #321141) + * Allow "at