From 29995e67bab90e35d0ff0fd868f0e2ee4a5e3962 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 24 Nov 2002 09:03:29 +0000 Subject: Make security/audit compiling on -current again Noticed by: bento PR: ports/45667 Submitted by: Clement Laforet --- security/audit/Makefile | 3 ++- security/audit/files/patch-ac | 13 +++++++++++++ security/audit/files/patch-ad | 13 +++++++++++++ security/audit/files/patch-ae | 12 ++++++++++++ security/audit/files/patch-af | 12 ++++++++++++ 5 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 security/audit/files/patch-ac create mode 100644 security/audit/files/patch-ad create mode 100644 security/audit/files/patch-ae create mode 100644 security/audit/files/patch-af (limited to 'security/audit') diff --git a/security/audit/Makefile b/security/audit/Makefile index 4f3733a0a280..c736c8b045e4 100644 --- a/security/audit/Makefile +++ b/security/audit/Makefile @@ -7,6 +7,7 @@ PORTNAME= audit PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://community.corest.com/pub/audit/ \ ftp://ftp.nuug.no/pub/anders/distfiles/ @@ -58,7 +59,7 @@ post-patch: ${REINPLACE_CMD} -e "s@Linux@FreeBSD@g" ${WRKSRC}/configure (${FIND} ${WRKSRC}/src/modules -name Makefile.in -exec \ ${REINPLACE_CMD} -e \ - "s@^LIB=(.*){VERSION}@SOVERSION=\t${LIBVERSION}\nLIB=\1\{SOVERSION\}@" {} \;) + "s!^LIB=\(.*\).{VERSION}!LIB=\1${LIBVERSION}!" {} \;) ${REINPLACE_CMD} -e "s@AUDIT_VERSION@\"${LIBVERSION}\"@g" \ ${WRKSRC}/src/lib/modules.c .for f in ${FIXPREFIX_CONF} diff --git a/security/audit/files/patch-ac b/security/audit/files/patch-ac new file mode 100644 index 000000000000..495d981dc14f --- /dev/null +++ b/security/audit/files/patch-ac @@ -0,0 +1,13 @@ +--- src/auditd/auditd.c.orig Sun Nov 24 05:22:21 2002 ++++ src/auditd/auditd.c Sun Nov 24 05:25:39 2002 +@@ -54,6 +54,10 @@ + #include + #include + #include ++#include ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 500035) ++#include ++#endif + + #include "version.h" + #include "sysdep.h" diff --git a/security/audit/files/patch-ad b/security/audit/files/patch-ad new file mode 100644 index 000000000000..f89021de5b3d --- /dev/null +++ b/security/audit/files/patch-ad @@ -0,0 +1,13 @@ +--- src/auditd/ia.c.orig Sun Nov 24 05:32:00 2002 ++++ src/auditd/ia.c Sun Nov 24 05:32:23 2002 +@@ -54,6 +54,10 @@ + #include + #include + #include ++#include ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 500035) ++#include ++#endif + + #include "version.h" + #include "sysdep.h" diff --git a/security/audit/files/patch-ae b/security/audit/files/patch-ae new file mode 100644 index 000000000000..acbc497ebe23 --- /dev/null +++ b/security/audit/files/patch-ae @@ -0,0 +1,12 @@ +--- src/modules/attr/mysql/attr_mysql.c.orig Sun Nov 24 06:01:45 2002 ++++ src/modules/attr/mysql/attr_mysql.c Sun Nov 24 06:01:58 2002 +@@ -35,6 +35,9 @@ + */ + + #include ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 500035) ++#include ++#endif + + #ifdef __linux__ + #include diff --git a/security/audit/files/patch-af b/security/audit/files/patch-af new file mode 100644 index 000000000000..281d56102733 --- /dev/null +++ b/security/audit/files/patch-af @@ -0,0 +1,12 @@ +--- src/modules/attr/pgsql/attr_pgsql.c.orig Sun Nov 24 06:02:19 2002 ++++ src/modules/attr/pgsql/attr_pgsql.c Sun Nov 24 06:02:28 2002 +@@ -35,6 +35,9 @@ + */ + + #include ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 500035) ++#include ++#endif + + #ifdef __linux__ + #include -- cgit v1.2.3