2011-09-17 06:29:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2011/09/17 10:29:44 sthen Exp $
|
2003-05-26 11:19:32 -04:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= Apache module for logging to an SQL database
|
2003-05-26 11:19:32 -04:00
|
|
|
|
2011-09-17 06:29:43 -04:00
|
|
|
REVISION= 7
|
2003-05-26 11:19:32 -04:00
|
|
|
DISTNAME= mod_log_sql-1.18
|
|
|
|
CATEGORIES= www
|
|
|
|
|
2004-08-08 05:25:15 -04:00
|
|
|
HOMEPAGE= http://www.outoforder.cc/projects/apache/mod_log_sql/
|
2003-05-26 11:19:32 -04:00
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODULES+= apache-module
|
|
|
|
|
2003-05-26 11:19:32 -04:00
|
|
|
# Artistic
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-11-11 07:35:09 -05:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
WANTLIB += lib/mysql/mysqlclient>=10 z
|
2003-05-26 11:19:32 -04:00
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODAPACHE_NAME= sql_log
|
|
|
|
MODAPACHE_ENABLE= mod_log_sql-enable
|
|
|
|
MODAPACHE_MODULE= mod_log_sql.so
|
|
|
|
|
2004-08-08 05:25:15 -04:00
|
|
|
MASTER_SITES= http://www.outoforder.cc/downloads/mod_log_sql/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS= databases/mysql
|
2003-05-26 11:19:32 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/mod_log_sql
|
|
|
|
EXAMPLES= create_tables.sql make_combined_log.pl
|
|
|
|
|
|
|
|
APXS= /usr/sbin/apxs
|
|
|
|
FLAGS= -I${LOCALBASE}/include/mysql -L${LOCALBASE}/lib \
|
|
|
|
-DWANT_SSL_LOGGING -lmysqlclient -lz
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKBUILD} && \
|
|
|
|
${APXS} -c -o mod_log_sql.so ${FLAGS} mod_log_sql.c
|
2007-06-26 15:19:45 -04:00
|
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
2003-05-26 11:19:32 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_log_sql
|
|
|
|
for p in ${EXAMPLES}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$p \
|
|
|
|
${PREFIX}/share/examples/mod_log_sql; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_log_sql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Documentation/HTML/* \
|
|
|
|
${PREFIX}/share/doc/mod_log_sql
|
2007-06-26 15:19:45 -04:00
|
|
|
${MODAPACHE_INSTALL}
|
2003-05-26 11:19:32 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|