mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
www/sarg: Update to 2.4.0
Sponsored by: Rubicon Communications, LLC (Netgate)
This commit is contained in:
parent
61d4c8851e
commit
4ec2641eb1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=525812
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= sarg
|
||||
PORTVERSION= 2.3.11
|
||||
PORTVERSION= 2.4.0
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1528577696
|
||||
SHA256 (sarg-2.3.11.tar.gz) = d0f8fbefb5fdc716e75c778525d96ac9eef622d3de94da8d70e2bdc7ab81daa2
|
||||
SIZE (sarg-2.3.11.tar.gz) = 1346884
|
||||
TIMESTAMP = 1581420984
|
||||
SHA256 (sarg-2.4.0.tar.gz) = b4ca0f41f6467673b4c65c6798b44a8886f08180c055eb11c37a96dfc28cb5c3
|
||||
SIZE (sarg-2.4.0.tar.gz) = 1371812
|
||||
|
@ -1,24 +1,25 @@
|
||||
--- Makefile.in.orig 2015-04-12 14:38:36 UTC
|
||||
--- Makefile.in.orig 2017-01-30 12:56:22 UTC
|
||||
+++ Makefile.in
|
||||
@@ -27,11 +27,11 @@ DEFS = $(IBINDIR) $(ISYSCONFDIR)
|
||||
LIBS = @LIBS@ -lm
|
||||
@@ -27,12 +27,12 @@ DEFS = $(IBINDIR) $(ISYSCONFDIR) $(IFONTDIR) $(
|
||||
LIBS = @LIBS@ @LIBINTL@ -lm
|
||||
SRCDIR = .
|
||||
VPATH = .
|
||||
-INSTALL = cp
|
||||
+INSTALL = @INSTALL@ -m 644 -S
|
||||
XSL_MAN_STYLESHEET=@XSL_MAN_STYLESHEET@
|
||||
XSL_HTML_STYLESHEET=@XSL_HTML_STYLESHEET@
|
||||
EXEEXT = @EXEEXT@
|
||||
|
||||
-INSTALL_PROGRAM = $(INSTALL)
|
||||
+INSTALL_PROGRAM = @INSTALL@ -m 755 -S -s
|
||||
|
||||
SRCS = util.c log.c report.c topuser.c email.c sort.c html.c \
|
||||
index.c getconf.c usage.c decomp.c ip2name.c ip2name_dns.c \
|
||||
@@ -93,14 +93,11 @@ install: all install-po
|
||||
index.c getconf.c usage.c decomp.c ip2name.c ip2name_dns.c \
|
||||
@@ -111,14 +111,11 @@ install: all install-po
|
||||
mkdir -p $(DESTDIR)$(IMAGEDIR); \
|
||||
fi
|
||||
$(INSTALL_PROGRAM) sarg $(DESTDIR)$(bindir)/sarg
|
||||
- chmod 755 $(DESTDIR)$(bindir)/sarg
|
||||
$(INSTALL_PROGRAM) sarg$(EXEEXT) $(DESTDIR)$(bindir)/sarg$(EXEEXT);
|
||||
- chmod 755 $(DESTDIR)$(bindir)/sarg$(EXEEXT);
|
||||
- $(INSTALL_PROGRAM) sarg.1 $(DESTDIR)$(man1dir)/sarg.1
|
||||
- chmod 755 $(DESTDIR)$(man1dir)/sarg.1
|
||||
+ $(INSTALL) sarg.1 $(DESTDIR)$(man1dir)/sarg.1
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- configure.ac.orig 2018-01-14 19:01:22 UTC
|
||||
+++ configure.ac
|
||||
@@ -2,6 +2,7 @@ dnl Process this file with autoconf or autoreconf to p
|
||||
AC_INIT([sarg],[2.3.11])
|
||||
AC_CONFIG_SRCDIR([log.c])
|
||||
AC_CONFIG_AUX_DIR(cfgaux)
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
11
www/sarg/files/patch-decomp.c
Normal file
11
www/sarg/files/patch-decomp.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- decomp.c.orig 2020-02-11 12:34:30 UTC
|
||||
+++ decomp.c
|
||||
@@ -486,7 +486,7 @@ FileObject *decomp(const char *arq)
|
||||
ssize_t nread;
|
||||
|
||||
// guess file type
|
||||
- fd=open(arq,O_RDONLY | O_LARGEFILE);
|
||||
+ fd=open(arq,O_RDONLY);
|
||||
if (fd==-1) {
|
||||
debuga(__FILE__,__LINE__,_("Cannot open file \"%s\": %s\n"),arq,strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
21
www/sarg/files/patch-util.c
Normal file
21
www/sarg/files/patch-util.c
Normal file
@ -0,0 +1,21 @@
|
||||
--- util.c.orig 2020-02-11 12:29:43 UTC
|
||||
+++ util.c
|
||||
@@ -27,6 +27,9 @@
|
||||
// #define LEGACY_MY_ATOLL
|
||||
// #define LEGACY_TESTVALIDUSERCHAR
|
||||
|
||||
+#include <sys/param.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
#include "include/conf.h"
|
||||
#include "include/defs.h"
|
||||
|
||||
@@ -402,7 +405,7 @@ int is_absolute(const char *path)
|
||||
|
||||
int PortableMkDir(const char *path,int mode)
|
||||
{
|
||||
-#if defined(__linux__)
|
||||
+#if defined(__linux__) || defined(__FreeBSD__)
|
||||
int mkerror=mkdir(path,mode);
|
||||
#else //mingw
|
||||
(void)mode;
|
@ -14,9 +14,11 @@ man/man1/sarg.1.gz
|
||||
%%PHP%%etc/sarg/sarg-php/COPYING
|
||||
%%PHP%%etc/sarg/sarg-php/INSTALL
|
||||
%%PHP%%etc/sarg/sarg-php/LANGUAGES
|
||||
%%PHP%%etc/sarg/sarg-php/language.php
|
||||
%%PHP%%etc/sarg/sarg-php/config.php.inc
|
||||
%%PHP%%etc/sarg/sarg-php/locale/en_EN/LC_MESSAGES/messages.mo
|
||||
%%PHP%%etc/sarg/sarg-php/locale/en_EN/LC_MESSAGES/messages.po
|
||||
%%PHP%%etc/sarg/sarg-php/locale/es/LC_MESSAGES/messages.mo
|
||||
%%PHP%%etc/sarg/sarg-php/locale/es/LC_MESSAGES/messages.po
|
||||
%%PHP%%etc/sarg/sarg-php/locale/fr/LC_MESSAGES/messages.mo
|
||||
%%PHP%%etc/sarg/sarg-php/locale/fr/LC_MESSAGES/messages.po
|
||||
%%PHP%%etc/sarg/sarg-php/locale/pt_BR/LC_MESSAGES/messages.mo
|
||||
@ -29,6 +31,9 @@ man/man1/sarg.1.gz
|
||||
%%PHP%%etc/sarg/sarg-php/sarg-squidguard-block2.php
|
||||
%%PHP%%etc/sarg/sarg-php/style.php
|
||||
%%PHP%%etc/sarg/sarg-php/translate.this
|
||||
%%PHP%%etc/sarg/sarg-php/update-mo.sh
|
||||
%%PHP%%etc/sarg/sarg-php/update-po.sh
|
||||
%%PHP%%etc/sarg/sarg-php/url_validator.php.inc
|
||||
etc/sarg/user_limit_block
|
||||
%%NLS%%share/locale/bg/LC_MESSAGES/sarg.mo
|
||||
%%NLS%%share/locale/ca/LC_MESSAGES/sarg.mo
|
||||
|
Loading…
Reference in New Issue
Block a user