--- Makefile.orig 2020-09-17 11:39:03.464365000 +0300 +++ Makefile 2020-09-17 11:37:14.464658000 +0300 @@ -15,7 +15,7 @@ BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man -USES= autoreconf libtool:keepla python:2.7 shebangfix +USES= autoreconf libtool:keepla python shebangfix USE_GITHUB= yes USE_LDCONFIG= yes USE_RC_SUBR= flow_capture flow_fanout @@ -38,12 +38,27 @@ OPTIONS_DEFINE= MYSQL OPENSSL PGSQL +PY2TO3_CMD= ${LOCALBASE}/bin/2to3-${PYTHON_VER} +PY2TO3_ARGS= --fix=all --no-diffs --nobackups --verbose --write + MYSQL_USES= mysql MYSQL_CONFIGURE_ON= --with-mysql="${LOCALBASE}" OPENSSL_USES= ssl OPENSSL_CONFIGURE_ON= --with-openssl="${OPENSSLBASE}" PGSQL_USES= pgsql PGSQL_CONFIGURE_ON= --with-postgresql +PGSQL_CONFIGURE_OFF= --with-postgresql=no + +.include + +post-patch: +. if ${PYTHON_MAJOR_VER} >= 3 + ${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/bin/flow-* +. endif + +#.if ${PYTHON_REL} >= 3000 +# @${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/bin/flow-* +#.endif post-install: ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/libft.so.0.0.0