summaryrefslogtreecommitdiff
path: root/databases/proxysql/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/proxysql/Makefile')
-rw-r--r--databases/proxysql/Makefile20
1 files changed, 5 insertions, 15 deletions
diff --git a/databases/proxysql/Makefile b/databases/proxysql/Makefile
index f2ee6bdfe1ec..7741ea538d32 100644
--- a/databases/proxysql/Makefile
+++ b/databases/proxysql/Makefile
@@ -1,5 +1,5 @@
PORTNAME= proxysql
-PORTVERSION= 2.6.3
+PORTVERSION= 2.6.6
CATEGORIES= databases
MAINTAINER= zi@FreeBSD.org
@@ -43,23 +43,16 @@ GH_ACCOUNT= sysown
post-patch:
@${REINPLACE_CMD} -e 's,/etc/,${ETCDIR}/,g' ${WRKSRC}/lib/ProxySQL_GloVars.cpp
@${REINPLACE_CMD} \
- -e 's|strftime(__buffer, 25, "%Y-%m-%d %H:%M:%S", __tm_info);|snprintf(__buffer, 3, "%s", "");|g' \
- -e 's,"%s \[,"%s\[,g' \
- -e '/__timer/d' \
- -e '/__tm_info/d' \
- ${WRKSRC}/include/proxysql_debug.h
- @${REINPLACE_CMD} \
-e 's,/var/lib,/var/db,g' \
-e '7s/^/errorlog="\/var\/log\/proxysql\/proxysql-error.log"\n\n/g' \
- -e '7s/^/pid="\/var\/run\/${PORTNAME}\/${PORTNAME}.pid"\n/g' \
+ -e '7s/^/pidfile="\/var\/run\/${PORTNAME}\/${PORTNAME}.pid"\n/g' \
${WRKSRC}/src/proxysql.cfg
@${REINPLACE_CMD} \
- -e 's,grep,${LOCALBASE}/bin/grep,g' \
- -e 's,ln -fsT,ln -fs,' \
+ -e 's,grep -P,${LOCALBASE}/bin/grep -P,g' \
+ -e '/ export C/d' \
-e 's,PROXYSQLCLICKHOUSE=1 ,,g' \
-e 's,--enable-fastopen=false ,--enable-fastopen=false --enable-shared=no ,g' \
- ${WRKSRC}/Makefile ${WRKSRC}/deps/Makefile \
- ${WRKSRC}/lib/Makefile ${WRKSRC}/src/Makefile
+ ${WRKSRC}/Makefile ${WRKSRC}/deps/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/proxysql ${STAGEDIR}${LOCALBASE}/sbin
@@ -67,11 +60,8 @@ do-install:
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/db/${PORTNAME} \
${STAGEDIR}/var/run/${PORTNAME} \
- ${STAGEDIR}${LOCALBASE}/etc/syslog.d \
${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \
${STAGEDIR}/var/log/${PORTNAME}
- ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf \
- ${STAGEDIR}${LOCALBASE}/etc/syslog.d
${INSTALL_DATA} ${FILESDIR}/proxysql.conf-newsyslog \
${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/proxysql.conf.sample
${INSTALL_DATA} ${WRKSRC}/src/proxysql.cfg \