blob: dd416ebe1d832657a424800331424cdb704e44bd (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: apache mod_log_mysql
# Date created: 2001/11/22
# Whom: lev@serebryakov.spb.ru
#
# $FreeBSD$
PORTNAME= mod_log_mysql
PORTVERSION= 1.13
CATEGORIES= www databases
MASTER_SITES= http://www.grubbybaby.com/mod_log_mysql/
MAINTAINER= lev@serebryakov.spb.ru
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/${AP_PORT}
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/${AP_PORT}
WRKSRC= ${WRKDIR}/${PORTNAME}
AP_PORT?= www/apache13
APXS?= ${LOCALBASE}/sbin/apxs
# Here is no mod_ssl by default
HAVE_MOD_SSL=
MOD_SSL_HEADER= ${LOCALBASE}/include/apache/mod_ssl.h
.if exists(${MOD_SSL_HEADER})
HAVE_MOD_SSL= -DWANT_SSL_LOGGING
do-configure:
@${ECHO_MSG} "Make with mod_ssl support"
.else
do-configure:
@${ECHO_MSG} "Make without mod_ssl support"
.endif
do-build:
@cd ${WRKSRC} && ${APXS} -c -o ${PORTNAME}.so -I${LOCALBASE}/include \
-L${LOCALBASE}/lib/mysql -lmysqlclient -DMYSQLSOCKET=\\\"/tmp/mysql.sock\\\" ${HAVE_MOD_SSL} ${PORTNAME}.c
do-install:
cd ${WRKSRC} && ${APXS} -i -n${PORTNAME:S/^mod_//} -A ${PORTNAME}.so
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CONFIGURATION INSTALL README access_log.sql make_combined_log.pl
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|