summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2017-10-17 08:21:17 +0000
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2017-10-17 08:21:17 +0000
commitd5619e7fdbe2b6a38a20e26797bf7a7acaf9d450 (patch)
tree9ab909e49c25416cbc1ece339b1704f619dc7043 /sysutils
parentNew port for the FUSE support library version 3. (diff)
sysutils/logrotate: Update to 3.13.0
PR: 223017 Submitted by: js@iksz.hu (maintainer) Approved by: olivier (mentor) Differential Revision: https://reviews.freebsd.org/D12687
Notes
Notes: svn path=/head/; revision=452271
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/logrotate/Makefile2
-rw-r--r--sysutils/logrotate/distinfo5
-rw-r--r--sysutils/logrotate/files/patch-Makefile29
-rw-r--r--sysutils/logrotate/files/patch-config.c15
-rw-r--r--sysutils/logrotate/files/patch-config.h16
-rw-r--r--sysutils/logrotate/files/patch-logrotate.824
-rw-r--r--sysutils/logrotate/files/patch-logrotate.c15
7 files changed, 18 insertions, 88 deletions
diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile
index b19ac44a4336..ff1c05543887 100644
--- a/sysutils/logrotate/Makefile
+++ b/sysutils/logrotate/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= logrotate
-PORTVERSION= 3.9.2
+PORTVERSION= 3.13.0
CATEGORIES= sysutils
MAINTAINER= js@iksz.hu
diff --git a/sysutils/logrotate/distinfo b/sysutils/logrotate/distinfo
index c6995b5626a2..bc06a4318c52 100644
--- a/sysutils/logrotate/distinfo
+++ b/sysutils/logrotate/distinfo
@@ -1,2 +1,3 @@
-SHA256 (logrotate-logrotate-3.9.2_GH0.tar.gz) = 2de00c65e23fa9d7909cae6594e550b9abe9a7eb1553669ddeaca92d30f97009
-SIZE (logrotate-logrotate-3.9.2_GH0.tar.gz) = 80711
+TIMESTAMP = 1508013010
+SHA256 (logrotate-logrotate-3.13.0_GH0.tar.gz) = fb1ff8502e7ae4aedaa3d0da8d3740a6a0f44b72e34666af724e9094b166c942
+SIZE (logrotate-logrotate-3.13.0_GH0.tar.gz) = 82436
diff --git a/sysutils/logrotate/files/patch-Makefile b/sysutils/logrotate/files/patch-Makefile
deleted file mode 100644
index a23719b2ae8c..000000000000
--- a/sysutils/logrotate/files/patch-Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
---- Makefile.orig 2015-02-13 06:11:21 UTC
-+++ Makefile
-@@ -81,6 +81,13 @@ ifeq ($(OS_NAME),NetBSD)
- LOADLIBES += -L$(BASEDIR)/lib -Wl,-R,$(BASEDIR)/lib
- endif
-
-+# FreeBSD
-+ifeq ($(OS_NAME),FreeBSD)
-+ LOADLIBES += -L${LOCALBASE}/lib
-+ CFLAGS += -I${LOCALBASE}/include
-+ PREFIX=
-+endif
-+
- ifneq ($(POPT_DIR),)
- CFLAGS += -I$(POPT_DIR)
- LOADLIBES += -L$(POPT_DIR)
-@@ -155,9 +162,9 @@ install:
- $(INSTALL) $(MAN) $(PREFIX)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"` 0644 bin bin; \
- $(INSTALL) $(MAN5) $(PREFIX)$(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"` 0644 bin bin; \
- else if [ "$(OS_NAME)" = FreeBSD ]; then \
-- $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR); \
-- $(BSD_INSTALL_MAN) $(MAN) $(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \
-- $(BSD_INSTALL_MAN) $(MAN5) $(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"`/$(MAN5); \
-+ $(BSD_INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(BINDIR); \
-+ $(BSD_INSTALL_MAN) $(MAN) $(DESTDIR)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \
-+ $(BSD_INSTALL_MAN) $(MAN5) $(DESTDIR)$(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"`/$(MAN5); \
- else \
- $(INSTALL) -m 755 $(PROG) $(PREFIX)$(BINDIR); \
- $(INSTALL) -m 644 $(MAN) $(PREFIX)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \
diff --git a/sysutils/logrotate/files/patch-config.c b/sysutils/logrotate/files/patch-config.c
index 31078a3590c0..ce1cfa77d001 100644
--- a/sysutils/logrotate/files/patch-config.c
+++ b/sysutils/logrotate/files/patch-config.c
@@ -1,11 +1,10 @@
---- config.c.orig 2015-02-13 06:11:21 UTC
-+++ config.c
-@@ -1,8 +1,4 @@
+--- config.c.orig 2017-10-12 15:19:41.000000000 +0000
++++ config.c 2017-10-14 21:59:41.716559000 +0000
+@@ -1,6 +1,6 @@
#include "queue.h"
--/* Alloca is defined in stdlib.h in NetBSD */
+ /* Alloca is defined in stdlib.h in NetBSD */
-#ifndef __NetBSD__
--#include <alloca.h>
--#endif
++#if !defined(__FreeBSD__) && !defined(__NetBSD__)
+ #include <alloca.h>
+ #endif
#include <limits.h>
- #include <ctype.h>
- #include <dirent.h>
diff --git a/sysutils/logrotate/files/patch-config.h b/sysutils/logrotate/files/patch-config.h
deleted file mode 100644
index f614c411624a..000000000000
--- a/sysutils/logrotate/files/patch-config.h
+++ /dev/null
@@ -1,16 +0,0 @@
---- config.h.orig 2015-02-13 06:11:21 UTC
-+++ config.h
-@@ -23,6 +23,13 @@
- #define STATEFILE "/var/log/logrotate.status"
- #endif
-
-+#ifdef __FreeBSD__
-+ #define DEFAULT_MAIL_COMMAND "/usr/bin/mailx"
-+ #define COMPRESS_COMMAND "/usr/bin/gzip"
-+ #define UNCOMPRESS_COMMAND "/usr/bin/gunzip"
-+ #define STATEFILE "/var/run/logrotate.status"
-+#endif
-+
- /*
- * Default settings for Linux - leave these last.
- */
diff --git a/sysutils/logrotate/files/patch-logrotate.8 b/sysutils/logrotate/files/patch-logrotate.8
deleted file mode 100644
index 2c4599513ac3..000000000000
--- a/sysutils/logrotate/files/patch-logrotate.8
+++ /dev/null
@@ -1,24 +0,0 @@
---- logrotate.8.orig 2015-02-13 06:11:21 UTC
-+++ logrotate.8
-@@ -59,7 +59,7 @@ and mail it to the recipient. The defaul
- \fB\-s\fR, \fB\-\-state <statefile>\fR
- Tells \fBlogrotate\fR to use an alternate state file. This is useful
- if logrotate is being run as a different user for various sets of
--log files. The default state file is \fI/var/lib/logrotate.status\fR.
-+log files. The default state file is \fI/var/run/logrotate.status\fR.
-
- .TP
- \fB\-\-usage\fR
-@@ -550,10 +550,10 @@ Log files are rotated if the current yea
- .SH FILES
- .PD 0
- .TP 27
--\fI/var/lib/logrotate.status\fR
-+\fI/var/run/logrotate.status\fR
- Default state file.
- .TP 27
--\fI/etc/logrotate.conf\fR
-+\fI/usr/local/etc/logrotate.conf\fR
- Configuration options.
-
- .SH SEE ALSO
diff --git a/sysutils/logrotate/files/patch-logrotate.c b/sysutils/logrotate/files/patch-logrotate.c
index ca2dc0434a3f..854db23df096 100644
--- a/sysutils/logrotate/files/patch-logrotate.c
+++ b/sysutils/logrotate/files/patch-logrotate.c
@@ -1,11 +1,10 @@
---- logrotate.c.orig 2015-02-13 06:11:21 UTC
-+++ logrotate.c
-@@ -1,8 +1,4 @@
+--- logrotate.c.orig 2017-10-12 15:19:41.000000000 +0000
++++ logrotate.c 2017-10-14 22:00:57.613844000 +0000
+@@ -1,6 +1,6 @@
#include "queue.h"
--/* alloca() is defined in stdlib.h in NetBSD */
+ /* alloca() is defined in stdlib.h in NetBSD */
-#ifndef __NetBSD__
--#include <alloca.h>
--#endif
++#if !defined(__FreeBSD__) && !defined(__NetBSD__)
+ #include <alloca.h>
+ #endif
#include <limits.h>
- #include <ctype.h>
- #include <dirent.h>