Subject: Re: snort-mysql
To: None <tech-pkg@netbsd.org>
From: Tracy Di Marco White <gendalia@gendalia.org>
List: tech-pkg
Date: 05/18/2002 17:53:34
-----BEGIN PGP SIGNED MESSAGE-----

Content-Type: text/plain; charset=us-ascii


Bernd Ernesti wrote:
}On Fri, May 17, 2002 at 04:46:25PM -0500, Tracy J. Di Marco White wrote:
}> 
}> I've emulated the snort-pgsql Makefile to try to create a mysql happy
}> snort.  However, I get an error where it doesn't find the libmysql.so
}> files when I run snort unless I set LD_LIBRARY_PATH to /usr/pkg/lib/mysql.
}
}I had a similar problem with databases/p5-DBD-mysql, thats why I had
}to add patch-aa for it. Maybe you are also missing a -Wl,-R/usr/pkg/lib/mysql.

That helped, thanks.  pkgsrc is not my area, would someone care to look it
over and commit it, or let me know know it's ok to commit it?

- -Tracy

.include "../snort/Makefile.common"

PKGNAME=	${DISTNAME:S/-/-mysql-/}

COMMENT=	Libpcap-based packet sniffer/logger using a MySQL database

CONFLICTS+=	snort-[0-9]*
CONFLICTS+=	snort-pgsql-[0-9]*

CONFIGURE_ARGS+=--with-mysql=${BUILDLINK_DIR}

PKGDIR=		${.CURDIR}/../snort
PATCHDIR=	${PKGDIR}/patches
DISTINFO_FILE=	${PKGDIR}/distinfo
LDFLAGS+=	-Wl,-R${LOCALBASE}/lib/mysql

.include "../../databases/mysql-client/buildlink.mk"
.include "../../net/libpcap/buildlink.mk"
.include "../../mk/bsd.pkg.mk"


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQCVAwUBPObNXPhD3v6gRY1hAQFngQQArYLuqRhW6kiAXcF8fTJYwmeskSBK3PwV
5xn3olK1BkJLpexxWv/J3pKmiMxllq6uUhPp4NNJGWCc9N/Ec52t5sCdz2p/9ISE
tf3AKXWKi66gNamYZ0XGcPl4wxifXXfD/3kl3BLHQap24w0f1q5aroCLVZMDmORa
IoRnAL8RzVo=
=2G91
-----END PGP SIGNATURE-----