1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- add patch files and unbreak this port

- utilize PORTDOCS and USE_MYSQL
This commit is contained in:
Yen-Ming Lee 2004-11-03 23:51:15 +00:00
parent 07dc48f0e3
commit 451cac29b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120733
4 changed files with 25 additions and 8 deletions

View File

@ -17,10 +17,11 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}beta-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools for remote and centralized audit data collection
BROKEN= Broken pkg-plist
OPTIONS= MYSQL "With MySQL support" off \
PGSQL "With PostGreSQL support" off
.if defined(WITH_MYSQL)
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
USE_MYSQL= yes
.endif
.if defined(WITH_PGSQL)
POSTGRESQL_PORT?= databases/postgresql7
@ -56,7 +57,7 @@ MANCOMPRESSED= yes
MAN1= audit.1
MAN8= auditd.8
DOCS= COPYING README TODO
PORTDOCS= COPYING README TODO
FIXPREFIX_CONF= src/include/audconf.h src/auditd/auditd.8
LIBVERSION= 1
@ -82,7 +83,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/auditd.conf ${PREFIX}/etc/auditd.conf.sample
.if !defined(NOPORTDOCS)
${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
.for f in ${DOCS}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

View File

@ -0,0 +1,10 @@
--- src/audit/audit.c.orig Thu Nov 4 07:24:04 2004
+++ src/audit/audit.c Thu Nov 4 07:25:17 2004
@@ -143,6 +143,7 @@
case SIGABRT:
fatal(-1, "");
default:
+ break;
}
errno = old_errno;
}

View File

@ -0,0 +1,10 @@
--- src/auditd/audconf.c.orig Thu Nov 4 07:25:36 2004
+++ src/auditd/audconf.c Thu Nov 4 07:25:45 2004
@@ -295,6 +295,7 @@
strlcpy(options->resmodule, value, sizeof(options->resmodule));
return (0);
default:
+ break;
}
errno = EINVAL;

View File

@ -10,8 +10,4 @@ lib/alat/libauth_raw.so.1
lib/alat/libia_syslog.so.1
lib/alat/libres_local.so.1
sbin/auditd
%%PORTDOCS%%share/doc/audit/COPYING
%%PORTDOCS%%share/doc/audit/README
%%PORTDOCS%%share/doc/audit/TODO
%%PORTDOCS%%@dirrm share/doc/audit
@unexec rmdir %D/lib/alat 2>/dev/null || true