head	1.19;
access;
symbols
	RELEASE_8_3_0:1.17
	RELEASE_9_0_0:1.17
	RELEASE_7_4_0:1.12
	RELEASE_8_2_0:1.12
	RELEASE_6_EOL:1.11
	RELEASE_8_1_0:1.10
	RELEASE_7_3_0:1.10
	RELEASE_8_0_0:1.10
	RELEASE_7_2_0:1.10
	RELEASE_7_1_0:1.8
	RELEASE_6_4_0:1.8
	RELEASE_5_EOL:1.8
	RELEASE_7_0_0:1.7
	RELEASE_6_3_0:1.7
	PRE_XORG_7:1.2;
locks; strict;
comment	@# @;


1.19
date	2013.01.16.16.42.44;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2012.11.17.06.01.10;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2011.11.23.22.26.40;	author glarkin;	state Exp;
branches;
next	1.16;

1.16
date	2011.10.18.19.39.36;	author glarkin;	state Exp;
branches;
next	1.15;

1.15
date	2011.10.13.20.03.29;	author tabthorpe;	state Exp;
branches;
next	1.14;

1.14
date	2011.09.27.06.56.18;	author wen;	state Exp;
branches;
next	1.13;

1.13
date	2011.03.19.13.15.29;	author ale;	state Exp;
branches;
next	1.12;

1.12
date	2010.12.14.00.41.09;	author wen;	state Exp;
branches;
next	1.11;

1.11
date	2010.07.22.13.26.53;	author wxs;	state Exp;
branches;
next	1.10;

1.10
date	2009.03.24.00.37.24;	author amdmi3;	state Exp;
branches;
next	1.9;

1.9
date	2008.09.29.14.00.04;	author jadawin;	state Exp;
branches;
next	1.8;

1.8
date	2007.12.30.10.53.43;	author rafan;	state Exp;
branches;
next	1.7;

1.7
date	2007.09.10.08.20.02;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2007.06.09.10.41.07;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2007.05.30.06.59.33;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2007.05.25.11.04.44;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2007.05.25.01.13.00;	author kris;	state Exp;
branches;
next	1.2;

1.2
date	2007.04.21.08.58.07;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2007.04.20.21.29.19;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310500
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Valerio Daelli <valerio.daelli@@gmail.com>
# $FreeBSD: head/security/ossec-hids-server/Makefile 310500 2013-01-16 16:01:43Z glarkin $

PORTNAME=	ossec-hids
PORTVERSION=	2.7
PORTREVISION?=	0
CATEGORIES=	security
MASTER_SITES=	http://www.ossec.net/files/ \
		http://www.ossec.net/files/old/
PKGNAMESUFFIX=	-server

MAINTAINER=	glarkin@@FreeBSD.org
COMMENT?=	A security tool to monitor and check logs and intrusions

USE_RC_SUBR=	ossec-hids

.if defined(MAINTAINER_MODE)
UID_FILES+=	../../UIDs
GID_FILES+=	../../GIDs
.endif
USERS=		ossec ossecm ossecr
GROUPS=		ossec

.if !defined(CLIENT_ONLY)
OPTIONS_DEFINE=	MYSQL PGSQL
.endif
OPTIONS_DEFINE+=	DOCS

SUB_LIST=	PORTNAME=${PORTNAME}
SUB_FILES=	pkg-message
PLIST_SUB=	PORTNAME=${PORTNAME}
PORTDOCS=	BUGS CONFIG CONTRIBUTORS INSTALL LICENSE README

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800067
# Add string function that didn't exist until 8.x
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src__os_csyslogd__csyslogd.c
.endif

.if !defined(CLIENT_ONLY)
.if ${PORT_OPTIONS:MMYSQL}
WITH_DB=	yes
USE_MYSQL=	client
.endif

.if ${PORT_OPTIONS:MPGSQL}
WITH_DB=	yes
USE_PGSQL=	yes
.endif
.endif

.if defined(CLIENT_ONLY)
SUB_LIST+=	PRECMD=:
PKGNAMESUFFIX=	-client
CONFLICTS=	ossec-hids-server-[0-9]* ossec-hids-local-[0-9]*
.elif defined(LOCAL_ONLY)
SUB_LIST+=	PRECMD=ossechids_start_precmd
PKGNAMESUFFIX=	-local
CONFLICTS=	ossec-hids-client-[0-9]* ossec-hids-server-[0-9]*
.else
SUB_LIST+=	PRECMD=ossechids_start_precmd
CONFLICTS=	ossec-hids-client-[0-9]* ossec-hids-local-[0-9]*
.endif

post-patch:
	@@${REINPLACE_CMD} 's|PREFIX|${PREFIX}/${PORTNAME}|' ${WRKSRC}/src/LOCATION
	@@${REINPLACE_CMD} 's|PREFIX|${PREFIX}/${PORTNAME}|' ${WRKSRC}/src/headers/defs.h

do-build:
.if defined(WITH_DB)
.if defined(CLIENT_ONLY)
	@@cd ${WRKSRC}/src;${MAKE} setagent;${MAKE} all;${MAKE} build
.elif defined(LOCAL_ONLY)
	@@cd ${WRKSRC}/src;${MAKE} setlocal;${MAKE} all;${MAKE} build
.else
	@@cd ${WRKSRC}/src;${MAKE} setdb;${MAKE} all;${MAKE} build
.endif
.else
.if defined(CLIENT_ONLY)
	@@cd ${WRKSRC}/src;${MAKE} setagent;${MAKE} all;${MAKE} build; \
		${MAKE} unsetdb
.elif defined(LOCAL_ONLY)
	@@cd ${WRKSRC}/src;${MAKE} setlocal;${MAKE} all;${MAKE} build; \
		${MAKE} unsetdb
.else
	@@cd ${WRKSRC}/src;${MAKE} all;${MAKE} build;${MAKE} unsetdb
.endif
.endif

do-install:
.if defined(CLIENT_ONLY)
	@@cd ${WRKSRC}/src; ${MAKE} agent
.elif defined(LOCAL_ONLY)
	@@cd ${WRKSRC}/src; ${MAKE} local
.else
	@@cd ${WRKSRC}/src; ${MAKE} server
.endif

post-install:
	@@${MKDIR} ${PREFIX}/${PORTNAME}/etc

.if defined(CLIENT_ONLY)
	@@${CP} ${WRKSRC}/etc/ossec-agent.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf.sample
	@@if [ ! -f ${PREFIX}/${PORTNAME}/etc/ossec.conf ]; then \
	${CP} ${WRKSRC}/etc/ossec-agent.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf; \
	fi
.elif defined(LOCAL_ONLY)
	${CP} ${WRKSRC}/etc/ossec-local.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf.sample
	@@if [ ! -f ${PREFIX}/${PORTNAME}/etc/ossec.conf ]; then \
	${CP} ${WRKSRC}/etc/ossec-local.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf; \
	fi
.else
	@@if [ ! -f ${PREFIX}/${PORTNAME}/etc/ossec.conf ]; then \
	${CP} ${WRKSRC}/etc/ossec-server.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf; \
	fi
.endif

.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.18
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	ossec-hids-server
# Date created:		23 July 2006
# Whom:			Valerio Daelli <valerio.daelli@@gmail.com>
#
# $FreeBSD: head/security/ossec-hids-server/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d5 2
a6 2
PORTVERSION=	2.6
PORTREVISION=	2
d17 7
d25 1
a25 2
OPTIONS=	MYSQL "Enable MySQL support" off \
		PGSQL "Enable PostgreSQL support" off
d27 1
d35 4
d41 1
a41 1
.if defined(WITH_MYSQL)
d43 1
a43 1
USE_MYSQL=	yes
d46 1
a46 1
.if defined(WITH_PGSQL)
d73 2
d80 5
a84 1
	@@cd ${WRKSRC}/src;${MAKE} setagent;${MAKE} all;${MAKE} build
d86 1
a86 1
	@@cd ${WRKSRC}/src;${MAKE} all;${MAKE} build
d90 1
a91 1
do-install:
a93 1
do-install:
a95 1
do-install:
d100 2
d103 1
a103 1
	${CP} ${WRKSRC}/etc/ossec-agent.conf ${PREFIX}/${PORTNAME}/etc/ossec.conf.sample
d118 1
a118 1
.if !defined(NOPORTDOCS)
@


1.17
log
@- Applied the startup script patch from PR ports/161524 to the local
  installation type [1]
- Streamlined the rc.d file to use fewer functions
- Added a precmd to the rc.d file to ensure the proper ownership on
  some queue files. OSSEC daemons don't properly chown them upon creation.
- Bumped PORTREVISION

Reported by:	Albert Gabas <agabas@@astabis.com> (via email) [1]
Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@- Fixed broken path in startup control script [1]
- Fixed a link in pkg-message to point to a more up-to-date doc page [1]
- Removed unnecessary WITH_BDB knob [1]
- Reformatted pkg-message
- Regenerated/renamed patch files with makepatch target
- Took maintainership
- Bumped PORTREVISION

PR:		ports/161524 [1]
Submitted by:	Dan Parriott <ddpbsd@@gmail.com> [1]
@
text
@d10 1
a10 1
PORTREVISION=	1
d46 1
d50 1
d54 1
@


1.15
log
@- Reassign to the heap
@
text
@d10 1
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
d23 1
a23 2
		PGSQL "Enable PostgreSQL support" off \
		BDB "Enable with Berkeley DB" off
a42 5

.if defined(WITH_BDB)
WITH_DB=	yes
USE_BDB=	yes
.endif
d104 1
a104 1
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@


1.14
log
@- Update to 2.6

PR:		ports/159786
Submitted by:	Jake Smith <jake@@avenue22.net>
Approved by:	maintainer(timeout, > 40 days)
@
text
@d15 1
a15 1
MAINTAINER=	valerio.daelli@@gmail.com
@


1.13
log
@Bump PORTREVISION for ports linking to default libmysqlclient.
@
text
@d9 1
a9 2
PORTVERSION=	2.5.1
PORTREVISION=	1
d20 4
a23 4
.if defined(WITH_DB)
USE_MYSQL=	yes
USE_PGSQL=	yes
USE_BDB=	yes
d33 17
@


1.12
log
@- Update to 2.5.1

PR:		ports/152169
Submitted by:	Marco Re <laza_bsd@@laza.it>
Approved by:	maintainer(timeout, >30 days)
@
text
@d10 1
@


1.11
log
@Update to 2.4.1

PR:		ports/148057
Submitted by:	Marco Re <laza_bsd@@laza.it>
Approved by:	valerio.daelli@@gmail.com (maintainer timeout)
@
text
@d9 1
a9 2
PORTVERSION=	2.4.1
PORTREVISION?=	0
d29 1
a29 1
PORTDOCS=	BUGS CONFIG CONTRIB INSTALL LICENSE README
@


1.10
log
@- Update to 2.0

PR:		132867
Submitted by:	valerio dot daelli at ifom-ieo-campus dot it (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.0
@


1.9
log
@- Update to 1.6

PR:		ports/127708
Submitted by:	valerio.daelli _AT_ gmail _DOT_ com (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.6
@


1.8
log
@- Update to 1.4

PR:		ports/117763
Submitted by:	valerio.daelli at gmail.com (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.4
@


1.7
log
@[patch] Ossec-hids-server upgrade to 1.3

	Attached patch updates ossec-hids-server to version 1.3

PR:		ports/115868
Submitted by:	valerio.daelli@@gmail.com
@
text
@d9 1
a9 1
PORTVERSION=	1.3
d14 1
a14 1
PKGNAMESUFFIX?=	-server
d17 1
a17 1
COMMENT=	A security tool to monitor and check logs and intrusions
d21 6
d49 10
d60 2
@


1.6
log
@- Respect DOCS
- Fix pkg-plist
- Fix rc script

PR:		113259
Submitted by:	Paul Schmehl <pauls@@utdallas.edu>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.2
@


1.5
log
@- Update to 1.2

PR:		112960
Submitted by:	Thomas Abthorpe <thomas@@goodking.ca>
Approved by:	maintainer
@
text
@d21 5
a41 2
do-configure:

d57 7
d65 1
a65 1
	${CP} ${PREFIX}/${PORTNAME}/etc/ossec.conf.sample ${PREFIX}/${PORTNAME}/etc/ossec.conf ; \
d67 5
d73 3
a75 2
.if defined(CLIENT_ONLY)
PLIST=${PKGDIR}/pkg-plist.client
d78 2
@


1.4
log
@Remove BROKENness by pointing to the old/ directory
@
text
@d9 2
a10 2
PORTVERSION=	1.1
PORTREVISION?=	1
d12 2
a13 1
MASTER_SITES=	http://www.ossec.net/files/old/
@


1.3
log
@BROKEN: Unfetchable
@
text
@d12 1
a12 1
MASTER_SITES=	http://www.ossec.net/files/
a17 2
BROKEN=		Unfetchable

@


1.2
log
@- Fix pkg-plist

Submitted by:   pointyhat via krisbot
@
text
@d18 2
@


1.1
log
@OSSEC is an Open Source Host-based Intrusion Detection System.
It performs log analysis, integrity checking, Windows registry
monitoring, rootkit detection, time-based alerting and active
response.

WWW: http://www.ossec.net/

PR:		ports/111944
Submitted by:	Valerio Daelli <valerio.daelli at gmail.com>
@
text
@d10 1
@

