From nobody Fri Jun 7 21:09:50 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vwv3d2z9hz5MHK9 for ; Fri, 07 Jun 2024 21:10:05 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "ns1.nethead.se", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vwv3c3SChz4Ctv for ; Fri, 7 Jun 2024 21:10:04 +0000 (UTC) (envelope-from peo@nethead.se) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=SU5Olzg1; dmarc=pass (policy=none) header.from=nethead.se; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1717794595; bh=gkyaq9M6cWT2F18/a8MOSzsb5muAZkkGSUY7b61CeRE=; h=Date:Subject:To:References:From:In-Reply-To; b=SU5Olzg1QryuXSbL5FRmfS3OYqxxrBf5+ZgpOwtZYRfy1VcXglg7mWKFDvyOip6vP 2qRlsPAh1nKASn7R4dRodvgCsNiJHc0nqQfeULk5WSKgGAuZoP+DyMNYZxO/XWdtUm zu808FVqY5OodI6QP7YVdCYaNs3WUBKvAXYqu1Nc= Message-ID: Date: Fri, 7 Jun 2024 23:09:50 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to install geoiplookup? Content-Language: en-US To: questions@freebsd.org References: <202406071553.40403.rody@dds.nl> From: Per olof Ljungmark In-Reply-To: <202406071553.40403.rody@dds.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.88 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.89)[-0.894]; DMARC_POLICY_ALLOW(-0.50)[nethead.se,none]; R_SPF_ALLOW(-0.20)[+ip4:5.150.237.139]; R_DKIM_ALLOW(-0.20)[nethead.se:s=NETHEADSE]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[nethead.se:+] X-Rspamd-Queue-Id: 4Vwv3c3SChz4Ctv Hi, On 2024-06-07 15:53, Rody wrote: > Hi everyone, > > Trying to prepare myself to get command line geoip lookups working. Running > 13.3-RELEASE-p1 of freebsd. It seems the pkg libmaxminddb is installed by > default but missing the tools to access the data. > > The following page tells me to install the libmaxminddb via ports: > https://forums.freebsd.org/threads/geoiplookup-for-the-new-geolite2-country-db.69866/ > But it does not include info for when you've never used ports before. > > The following page tell what to do to get started with ports: > https://docs.freebsd.org/en/books/handbook/ports/ > And tells me that if ports was not installed during install, I should use a > series of commands to use git. [...] Try, % cd /usr % fetch http://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz % tar -xvzf ports.tar.gz [lots of output] % whereis libmaxminddb /usr/ports/net/libmaxminddb % cd /usr/ports/net/libmaxminddb su # make install clean Per > Rody > >