commit 351c212e70d92000030c89ff0d5e2cb1cf999bd8 Author: EnumDev Date: Sat Sep 27 15:24:04 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..9a6fce4 --- /dev/null +++ b/pkg.info @@ -0,0 +1,18 @@ +name: geoip +description: Non-DNS IP-to-country resolver C library & utils +version: 1.6.12 +revision: 1 +url: https://github.com/maxmind/geoip-api-c +license: LGPL2.1-or-later +architecture: any +type: source +depends: + - zlib +make_depends: + - autoconf + - libtool +downloads: + - url: https://github.com/maxmind/geoip-api-c/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 99b119f8e21e94f1dfd6d49fbeed29a70df1544896e76cd456f25e397b07d476 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..fe5a200 --- /dev/null +++ b/source.sh @@ -0,0 +1,26 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + ./bootstrap +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/geoip + make +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" install + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/geoip/LICENSE +}