# New ports collection makefile for:	snortsms
# Date created:		Mon May 28 16:05:01 CST 2005
# Whom:			J Randolph <snortsms@servangle.net>
#
# $FreeBSD: ports/security/snortsms/Makefile,v 1.3 2005/06/30 19:28:20 flz Exp $
#

PORTNAME=	snortsms
PORTVERSION=	0.14.9
CATEGORIES=	security www
MASTER_SITES=	http://snortsms.servangle.net/dnloads/

MAINTAINER=	snortsms@servangle.net
COMMENT=	A remote management and monitoring interface for Snort based IDS

RUN_DEPENDS=	${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \
		${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl

USE_PHP=	mysql pcre pcntl session
NO_BUILD=	yes

SUB_FILES=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message

do-install:
# Create directory structure
	@${MKDIR} ${PREFIX}/www/snortsms
# copy files
	${CP} -R ${WRKSRC}/* ${PREFIX}/www/snortsms
	${RM} ${PREFIX}/www/snortsms/COPYING
# correct permissions
	${CHMOD} 775 ${PREFIX}/www/snortsms/conf
	${CHOWN} :${WWWGRP} ${PREFIX}/www/snortsms/conf

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
