You are not logged in.
IPFire has developed their own IP location library so as not to have to rely on the maxmind geoip library and data. It's called libloc and is found here: https://location.ipfire.org/download
I'm trying to compile it and then create a PKGBUILD for it, but I'm not any kind of expert on making such things from scratch. It has an 'autogen.sh' script that generates a 'configure' script. It also shows a few warnings that I don't understand, like 'you should update your aclocal.m4' and 'you should run autoupdate'.
Should I just be able to run:
./configure --prefix=/usr
make
make install
or is there more to it?
Last edited by fiddlinmacx (2023-06-27 20:46:58)
Offline
Why not use the PKGBUILD to test the package?
The following incomplete PKGBUILD should allow you to install the package.
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=libloc
pkgver=0.9.16
pkgrel=1
epoch=
pkgdesc=""
arch=('x86_64')
url="https://location.ipfire.org"
license=('LGPL')
groups=()
depends=(glibc openssl)
makedepends=(asciidoc perl python intltool systemd)
checkdepends=()
optdepends=(perl python)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://source.ipfire.org/releases/$pkgname/$pkgname-$pkgver.tar.gz")
noextract=()
sha256sums=('2092361f0c76b31e65aed85692c56176996925e1cd5d78d113ab9c53ba27f3fc')
validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
intltoolize -f
autoreconf -fi
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --localstatedir=/var
make
}
check() {
cd "$pkgname-$pkgver"
make -k check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Offline
Thanks. I was trying to figure out how to compile it and then make the PKGBUILD, but this helps a lot. There's a lot of stuff in there that I was struggling to figure out.
Offline
@loqs I used your PKGBUILD there and filled it out a bit. I'm going to post the first version.
Offline