1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/www/mod_log_sql/Makefile
Bernard Spil d6f880d222 www/mod_log_sql: Fix PID > 65535
* PID > 65535 when 'LogSQLCreateTables On' [1]
 * Fix WWW address
 * 2 suffix (for Apache 2) is redundant, remove

PR:		243793 [1]
Submitted by:	Tommy P <tommyhp2 gmail com>
2020-08-06 15:09:17 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Clement Laforet <clement@FreeBSD.org>
# $FreeBSD$
PORTNAME= mod_log_sql
PORTVERSION= 1.101
PORTREVISION= 7
CATEGORIES= www databases
MASTER_SITES= http://www.outoforder.cc/downloads/${PORTNAME}/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= apache@FreeBSD.org
COMMENT= Allows Apache to log to a MySQL database
USES= apache gmake mysql tar:bzip2
GNU_CONFIGURE= yes
OPTIONS_SUB= yes
OPTIONS_DEFINE= DBI DOCS
DBI_CONFIGURE_WITH= dbi=${LOCALBASE}
DBI_LIB_DEPENDS= libdbi.so:databases/libdbi
DBI_DESC= depend on databases/libdbi
PORTDOCS= manual.html manual.xml
.include <bsd.port.options.mk>
APMODCFG= 330_mod_log_sql.conf.sample
SUB_FILES+= ${APMODCFG} pkg-message
SUB_LIST+= APMODCFG=${APMODCFG:C/.sample//}
PLIST_SUB+= APMODCFG=${APMODCFG}
CONFIGURE_ARGS+=--with-apxs=${APXS}
LIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql
post-patch:
${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
${WRKSRC}/Makefile.in
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
${CP} ${WRKDIR}/${APMODCFG} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/*.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>