Update to 2.5.3 based on anacron2 fork which is still actively maintained

ok gonzalo@
This commit is contained in:
giovanni 2013-06-04 13:47:09 +00:00
parent b9edfc5c0f
commit 273b6d95a6
6 changed files with 29 additions and 32 deletions

View File

@ -1,28 +1,29 @@
# $OpenBSD: Makefile,v 1.14 2013/03/11 11:41:29 espie Exp $
# $OpenBSD: Makefile,v 1.15 2013/06/04 13:47:09 giovanni Exp $
COMMENT= periodic command scheduler
DISTNAME= anacron-2.3
REVISION = 4
V= 2.5.3
DISTNAME= anacron.$V
PKGNAME= anacron-$V
CATEGORIES= sysutils
HOMEPAGE= http://sourceforge.net/projects/anacron/
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron/}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron2/}
USE_GMAKE= Yes
USE_GMAKE= Yes
NO_TEST = Yes
MAKE_FLAGS= ANACRONTAB="${SYSCONFDIR}/anacrontab"
MAKE_FLAGS= ANACRONTAB="${SYSCONFDIR}/anacrontab"
WRKDIST= ${WRKDIR}/anacron-$V
post-extract:
rm ${WRKSRC}/*.o
cp ${FILESDIR}/obstack.h ${WRKSRC}
cp ${FILESDIR}/obstack.c ${WRKSRC}

View File

@ -1,2 +1,2 @@
SHA256 (anacron-2.3.tar.gz) = XO7m8izQib2vHAhBIA2+Vya6uvnixDK7F8H8ldpcqZ8=
SIZE (anacron-2.3.tar.gz) = 24140
SHA256 (anacron.2.5.3.tar.gz) = p+cRmKuGGkBEjDXeS22IHDTOwaLOKdesu2oaHhaILSI=
SIZE (anacron.2.5.3.tar.gz) = 48137

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2003/08/23 19:24:50 sturm Exp $
--- Makefile.orig 2000-06-23 00:25:49.000000000 +0200
+++ Makefile 2003-08-09 17:56:35.000000000 +0200
$OpenBSD: patch-Makefile,v 1.2 2013/06/04 13:47:09 giovanni Exp $
--- Makefile.orig Fri Jan 11 19:32:03 2008
+++ Makefile Tue Jun 4 12:39:15 2013
@@ -19,16 +19,14 @@
# `COPYING' that comes with the Anacron source distribution.
@ -19,5 +19,13 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2003/08/23 19:24:50 sturm Exp $
SPOOLDIR = /var/spool/anacron
-ANACRONTAB = /etc/anacrontab
RELEASE = 2.3
RELEASE = 2.4.3
package_name = anacron-$(RELEASE)
@@ -72,7 +70,6 @@ install: installdirs
$(INSTALL_PROGRAM) anacron $(BINDIR)/anacron
$(INSTALL_DATA) anacrontab.5 $(MANDIR)/man5/anacrontab.5
$(INSTALL_DATA) anacron.8 $(MANDIR)/man8/anacron.8
- $(INSTALL_DATA) anacrontab $(ANACRONTAB)
.PHONY: clean
clean:

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-anacron_8,v 1.1.1.1 2003/08/23 19:24:50 sturm Exp $
--- anacron.8.orig 2003-08-13 20:35:38.000000000 +0200
+++ anacron.8 2003-08-13 20:36:12.000000000 +0200
@@ -18,7 +18,7 @@ to control daily, weekly, and monthly jo
$OpenBSD: patch-anacron_8,v 1.2 2013/06/04 13:47:09 giovanni Exp $
--- anacron.8.orig Sun Dec 9 10:09:32 2007
+++ anacron.8 Tue Jun 4 12:26:36 2013
@@ -18,7 +18,7 @@ to control daily, weekly, and monthly jobs that are
usually controlled by \fBcron\fR.
.PP
When executed, Anacron reads a list of jobs from a configuration file, normally

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-gregor_c,v 1.1 2004/05/17 00:22:54 naddy Exp $
--- gregor.c.orig 2004-05-12 21:20:47.000000000 +0100
+++ gregor.c 2004-05-12 21:21:45.000000000 +0100
@@ -65,7 +65,7 @@ day_num(int year, int month, int day)
{
int dn;
int i;
- const int isleap; /* save three calls to leap() */
+ int isleap; /* save three calls to leap() */
/* Some validity checks */

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-runjob_c,v 1.3 2004/05/17 00:22:54 naddy Exp $
$OpenBSD: patch-runjob_c,v 1.4 2013/06/04 13:47:10 giovanni Exp $
--- runjob.c.orig 2000-06-21 00:12:18.000000000 +0100
+++ runjob.c 2004-05-12 20:50:11.000000000 +0100
@@ -34,11 +34,38 @@
@ -23,7 +23,7 @@ $OpenBSD: patch-runjob_c,v 1.3 2004/05/17 00:22:54 naddy Exp $
+ sizeof template) {
+ die_e("TMPDIR too long.");
+ }
+ if (strlcat(template, "/anacronXXXXXXXX", sizeof template) >=
+ if (strlcat(template, "/anacronXXXXXXXXXX", sizeof template) >=
+ sizeof template) {
+ die_e("Temporary filename too long.");
+ }