View | Details | Raw Unified | Return to bug 183404
Collapse All | Expand All

(-)Makefile (-18 / +13 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	barnyard2
3
PORTNAME=	barnyard2
4
PORTVERSION=	1.12
4
PORTVERSION=	1.12
5
PORTREVISION=	1
5
CATEGORIES=	security
6
CATEGORIES=	security
6
7
7
MAINTAINER=	pauls@utdallas.edu
8
MAINTAINER=	pauls@utdallas.edu
Lines 37-49 Link Here
37
38
38
USE_RC_SUBR=	barnyard2
39
USE_RC_SUBR=	barnyard2
39
GNU_CONFIGURE=	yes
40
GNU_CONFIGURE=	yes
40
NO_STAGE=	yes
41
41
42
SUB_FILES=	pkg-message
42
SUB_FILES=	pkg-message
43
43
44
PORTDOCS1=	README RELEASE.NOTES
44
PORTDOCS1=	README RELEASE.NOTES
45
PORTDOCS2=	INSTALL README.aruba README.database README.sguil README.snortsam
45
PORTDOCS2=	INSTALL README.aruba README.database README.sguil README.snortsam
46
PORTDOCS=	${PORTDOCS1} ${PORTDOCS2}
47
PORTEXAMPLES=	SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql
46
PORTEXAMPLES=	SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql
48
47
49
.include <bsd.port.options.mk>
48
.include <bsd.port.options.mk>
Lines 62-68 Link Here
62
61
63
.if ${PORT_OPTIONS:MBRO}
62
.if ${PORT_OPTIONS:MBRO}
64
BROKEN=			Bro port is in transition right now, so this is not supported at this time
63
BROKEN=			Bro port is in transition right now, so this is not supported at this time
65
BUILD_DEPENDS+=		bro:${PORTSDIR}/security/bro-barnyard2
64
LIB_DEPENDS+=		libbroccoli.so:${PORTSDIR}/security/broccoli
66
CONFIGURE_ARGS+=	--enable-bro --with-broccoli=${LOCALBASE}/lib
65
CONFIGURE_ARGS+=	--enable-bro --with-broccoli=${LOCALBASE}/lib
67
.else
66
.else
68
CONFIGURE_ARGS+=	--disable-bro
67
CONFIGURE_ARGS+=	--disable-bro
Lines 134-156 Link Here
134
post-patch:
133
post-patch:
135
	@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \
134
	@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \
136
		${WRKSRC}/etc/barnyard2.conf
135
		${WRKSRC}/etc/barnyard2.conf
136
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
137
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
137
138
139
do-install:
140
	${INSTALL_DATA} ${PORTDOCS1:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
141
	${INSTALL_DATA} ${PORTDOCS2:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
142
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/schemas/|} ${STAGEDIR}${EXAMPLESDIR}
143
	${INSTALL_PROGRAM} ${WRKSRC}/src/barnyard2 ${STAGEDIR}${PREFIX}/bin/
144
138
post-install:
145
post-install:
139
	@${CP} ${WRKSRC}/etc/barnyard2.conf ${PREFIX}/etc/barnyard2.conf.sample
146
	@${CP} ${WRKSRC}/etc/barnyard2.conf ${STAGEDIR}${PREFIX}/etc/barnyard2.conf.sample
140
	if [ ! -f ${PREFIX}/etc/barnyard2.conf ]; then \
147
	if [ ! -f ${STAGEDIR}${PREFIX}/etc/barnyard2.conf ]; then \
141
		${CP} -p ${PREFIX}/etc/barnyard2.conf.sample ${PREFIX}/etc/barnyard2.conf; \
148
		${CP} -p ${STAGEDIR}${PREFIX}/etc/barnyard2.conf.sample ${STAGEDIR}${PREFIX}/etc/barnyard2.conf; \
142
	fi
149
	fi
143
150
144
.if ${PORT_OPTIONS:MDOCS}
145
	@${MKDIR} ${DOCSDIR}
146
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS1} ${DOCSDIR}
147
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS2} ${DOCSDIR}
148
.endif
149
.if ${PORT_OPTIONS:MEXAMPLES}
150
	@${MKDIR} ${EXAMPLESDIR}
151
	cd ${WRKSRC}/schemas && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
152
.endif
153
154
	@${CAT} ${PKGMESSAGE}
155
156
.include <bsd.port.mk>
151
.include <bsd.port.mk>
(-)pkg-plist (+15 lines)
Lines 2-4 Link Here
2
@unexec if cmp -s %D/etc/barnyard2.conf %D/etc/barnyard2.conf.sample; then rm -f %D/etc/barnyard2.conf; fi
2
@unexec if cmp -s %D/etc/barnyard2.conf %D/etc/barnyard2.conf.sample; then rm -f %D/etc/barnyard2.conf; fi
3
etc/barnyard2.conf.sample
3
etc/barnyard2.conf.sample
4
@exec [ -f %B/barnyard2.conf ] || cp -p %B/%f %B/barnyard2.conf
4
@exec [ -f %B/barnyard2.conf ] || cp -p %B/%f %B/barnyard2.conf
5
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
6
%%PORTDOCS%%%%DOCSDIR%%/README
7
%%PORTDOCS%%%%DOCSDIR%%/README.aruba
8
%%PORTDOCS%%%%DOCSDIR%%/README.database
9
%%PORTDOCS%%%%DOCSDIR%%/README.sguil
10
%%PORTDOCS%%%%DOCSDIR%%/README.snortsam
11
%%PORTDOCS%%%%DOCSDIR%%/RELEASE.NOTES
12
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/SCHEMA_ACCESS
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_db2
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_mssql
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_mysql
16
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_oracle.sql
17
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_postgresql
18
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
19
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%

Return to bug 183404