Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Ignore this package
|
||||
echo "ignore"
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user