From 5981b096444e6457e72b8711782e247842994eb2 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 12 Jan 2009 22:59:26 +0000 Subject: - Add mysql/postgresql to REQUIRE: in rc.script for correct start order PR: 127954 Submitted by: Helmut Schneider Approved by: maintainer timeout --- security/snort/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'security/snort') diff --git a/security/snort/Makefile b/security/snort/Makefile index e59f13bea5e4..c35883120ecf 100644 --- a/security/snort/Makefile +++ b/security/snort/Makefile @@ -7,7 +7,7 @@ PORTNAME= snort PORTVERSION= 2.8.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://www.snort.org/dl/current/ @@ -152,6 +152,14 @@ pre-configure: @sleep 5 .endif +pre-install: +.if defined(WITH_POSTGRESQL) + @${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| postgresql|' ${WRKDIR}/snort.sh +.endif +.if defined(WITH_MYSQL) + @${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/snort.sh +.endif + post-install: .if !defined(WITHOUT_DYNAMIC) @${LIBTOOL} --finish ${LOCALBASE}/snort/dynamicpreprocessor -- cgit v1.2.3