On Wed, Sep 18, 2019 at 3:27 AM Eric Elena <[email protected]> wrote:

> Hello list,
>
> Here is a new port geo/ruby-geoip2_c.
>
> DESCR:
> This gem provides Ruby binding for libmaxminddb.
>
> By default this gem tries to build its own version of libmaxminddb,
> which uses autotools. I patched the configuration to use
> net/libmaxminddb instead and remove FMS extensions from the compiler
> options as they are not supported on OpenBSD.
>
> I use it as a dependency of fluentd (fluentd geoip filter) to locate
> the IP addresses collected via netflow and see that in grafana. This
> gem is the only one that causes trouble hence a port for it. Porting
> fluentd may be the next step for 6.7+.
>
> I'm a beginner in porting, comments are welcome.


Looking at the port:

1) Don't hardcode /usr/local in the patch.  Use LOCALBASE in the patch and
SUBST_CMD in a pre-configure block in the Makefile. See the
www/ruby-passenger port for an example of that.

2) Remove ${GEM_EXTENSIONS_DIR} and ${GEM_LIB}/gems/${DISTNAME}/ext/
directories and stuff underneath them from the PLIST.

3) If you would like to be the maintainer of this port, please add yourself
as MAINTAINER in the Makefile.

Thanks,
Jeremy

Reply via email to