rlerdorf / geoip

PHP geoip ext for PHP 8
Other
16 stars 3 forks source link

Push latest to PECL #1

Open francislavoie opened 2 years ago

francislavoie commented 2 years ago

Hopefully this isn't an unreasonable ask, but would it be possible to push tag 1.3.0 to PECL? http://pecl.php.net/package/geoip

It's still easier to install via pecl or pickle, it would simplify installation slightly.

(Yes, I know, we should switch to the new GeoIP2, but that's a WIP :grimacing:)

For now, I'm doing this in our Dockerfile:

...
    docker-php-source extract; \
    curl -L -o /tmp/geoip.tgz https://github.com/rlerdorf/geoip/archive/refs/tags/1.3.0.tar.gz; \
    mkdir geoip; \
    tar xfz /tmp/geoip.tgz -C geoip --strip-components 1; \
    rm -r /tmp/geoip.tgz; \
    mv geoip /usr/src/php/ext/geoip; \
    docker-php-ext-install -j$(nproc) geoip \
    docker-php-source delete