diff --git a/security/aide/Makefile b/security/aide/Makefile index 20a64c443422..fbf829de0469 100644 --- a/security/aide/Makefile +++ b/security/aide/Makefile @@ -1,32 +1,32 @@ # Created by: Cy Schubert (Cy.Schubert@uumail.gov.bc.ca) PORTNAME= aide -PORTVERSION= 0.16.1 +PORTVERSION= 0.17.4 CATEGORIES= security MASTER_SITES= https://github.com/aide/aide/releases/download/v${PORTVERSION}/ MAINTAINER= cy@FreeBSD.org COMMENT= File and directory integrity checker LIB_DEPENDS= libmhash.so:security/mhash \ libpcre.so:devel/pcre USES= autoreconf bison gmake localbase GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-mhash \ --with-zlib \ --mandir=${MANPREFIX}/man \ --with-config_file=${PREFIX}/etc/aide.conf CONFIGURE_ENV= YACC="bison -y" LDFLAGS+= -lpthread SUB_FILES= pkg-message post-install: ${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf.sample ${MKDIR} ${STAGEDIR}/var/db/aide/databases ${CHMOD} 0700 ${STAGEDIR}/var/db/aide ${STAGEDIR}/var/db/aide/databases .include diff --git a/security/aide/distinfo b/security/aide/distinfo index 05b3dba1c573..73ae932bb832 100644 --- a/security/aide/distinfo +++ b/security/aide/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1555181364 -SHA256 (aide-0.16.1.tar.gz) = 0f2b7cecc70c1a27d35c06c98804fcdb9f326630de5d035afc447122186010b7 -SIZE (aide-0.16.1.tar.gz) = 391531 +TIMESTAMP = 1642975384 +SHA256 (aide-0.17.4.tar.gz) = c81505246f3ffc2e76036d43a77212ae82895b5881d9b9e25c1361b1a9b7a846 +SIZE (aide-0.17.4.tar.gz) = 331783 diff --git a/security/aide/files/patch-doc_aide.1 b/security/aide/files/patch-doc_aide.1 deleted file mode 100644 index 2dacc0a93438..000000000000 --- a/security/aide/files/patch-doc_aide.1 +++ /dev/null @@ -1,14 +0,0 @@ ---- doc/aide.1.orig 2016-07-25 14:09:52.000000000 -0700 -+++ doc/aide.1 2016-07-26 12:35:55.894637000 -0700 -@@ -103,9 +103,9 @@ - .SH FILES - .IP \fB${prefix}/etc/aide.conf\fR - Default aide configuration file. --.IP \fB${prefix}/etc/aide.db\fR -+.IP \fB/var/db/aide/aide.db\fR - Default aide database. --.IP \fB${prefix}/etc/aide.db.new\fR -+.IP \fB/var/db/aide/aide.db.new\fR - Default aide output database. - .SH SEE ALSO - .BR aide.conf (5) diff --git a/security/aide/files/patch-include_util.h b/security/aide/files/patch-include_util.h new file mode 100644 index 000000000000..100a2541214e --- /dev/null +++ b/security/aide/files/patch-include_util.h @@ -0,0 +1,10 @@ +--- include/util.h.orig 2022-01-19 12:03:06.000000000 -0800 ++++ include/util.h 2022-01-23 14:44:04.712694000 -0800 +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include "config.h" + #include "url.h" + + #define HEXD2ASC(x) (((x) < 10) ? ((x) + '0') : ((x) - 10 + 'A')) diff --git a/security/aide/files/patch-src_commandconf.c b/security/aide/files/patch-src_commandconf.c new file mode 100644 index 000000000000..d9c980015ee2 --- /dev/null +++ b/security/aide/files/patch-src_commandconf.c @@ -0,0 +1,13 @@ +--- src/commandconf.c.orig 2022-01-19 12:03:06.000000000 -0800 ++++ src/commandconf.c 2022-01-23 14:49:37.915576000 -0800 +@@ -226,8 +226,8 @@ + c=fgetc(db->fp); + if(c==(unsigned char)'\213'){ + log_msg(LOG_LEVEL_DEBUG,"db_input_wrapper(): handle gzip header"); +- lseek(fileno(db->fp),0L,SEEK_SET); +- db->gzp=gzdopen(fileno(db->fp),"rb"); ++ lseek(fileno((FILE *)(db->fp)),0L,SEEK_SET); ++ db->gzp=gzdopen(fileno((FILE *)(db->fp)),"rb"); + c=gzgetc(db->gzp); + log_msg(LOG_LEVEL_DEBUG, "db_input_wrapper(): first character after gzip header is: %c(%#X)\n",c,c); + if(c==-1) {