summaryrefslogtreecommitdiffstats
path: root/security/snortsms/Makefile
blob: 1ca0abeabe68715816d876b661749c693a556a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: J Randolph <snortsms@servangle.net>
# $FreeBSD$

PORTNAME=	snortsms
PORTVERSION=	1.7.8
CATEGORIES=	security www
MASTER_SITES=	SF/${PORTNAME}/SnortSMS%20Suite%20%28Console_Agent%29/${PORTVERSION}-Release

MAINTAINER=	jadawin@FreeBSD.org
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 curl
NO_BUILD=	yes

SUB_FILES=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message
SUB_LIST=	PORTNAME=${PORTNAME} \
		WRKSRC=${WRKSRC} \
		PORTSDIR=${PORTSDIR}

NO_STAGE=	yes
do-install:
	${MKDIR} ${WWWDIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR})
	${CHMOD} 775 ${WWWDIR}/conf
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud