From nobody Fri Jun 07 13:53:40 2024 X-Original-To: freebsd-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 4VwjNB1dvKz5NXRZ for ; Fri, 07 Jun 2024 13:53:46 +0000 (UTC) (envelope-from rody@dds.nl) Received: from smtp2.signet.nl (smtp2.signet.nl [83.96.147.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VwjN90S0gz4Xj6 for ; Fri, 7 Jun 2024 13:53:44 +0000 (UTC) (envelope-from rody@dds.nl) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=dds.nl; spf=pass (mx1.freebsd.org: domain of rody@dds.nl designates 83.96.147.103 as permitted sender) smtp.mailfrom=rody@dds.nl Received: from [10.0.1.103] (unknown [45.83.7.125]) by smtp2.signet.nl (Postfix) with ESMTPSA id 4AE6540B3F44 for ; Fri, 7 Jun 2024 15:53:40 +0200 (CEST) From: Rody To: freebsd-questions@freebsd.org Subject: How to install geoiplookup? Date: Fri, 7 Jun 2024 15:53:40 +0200 User-Agent: KMail/1.9.10 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202406071553.40403.rody@dds.nl> X-Spamd-Bar: / X-Spamd-Result: default: False [0.04 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_SPAM_SHORT(0.84)[0.839]; DMARC_POLICY_ALLOW(-0.50)[dds.nl,none]; R_SPF_ALLOW(-0.20)[+ip4:83.96.147.103]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[83.96.147.103:from]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:21155, ipnet:83.96.128.0/17, country:NL]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4VwjN90S0gz4Xj6 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. Not sure if ports was indeed installed or not during install. Any way to find out? The following page recommends to use portsnap: https://www.cyberciti.biz/faq/install-ports-in-freebsd/ Portsnap seems to be installed by default and easier to use, but: https://forums.freebsd.org/threads/portsnap-being-retired-whats-the-alternative.76463/ suggests that maybe only git should be used? Still, it seems the database was already installed automatically using pkg so it should probably be deleted prior to starting with ports? I imagine the geoiplookup tool is only a tiny binary and requires a lot of work to get it installed this way, or am I missing something? Rody