[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63894] [PATCH 48/55] gnu: Add perl-geo-ip.
From: |
Antero Mejr |
Subject: |
[bug#63894] [PATCH 48/55] gnu: Add perl-geo-ip. |
Date: |
Sun, 4 Jun 2023 17:42:42 +0000 |
* gnu/packages/perl-web.scm (perl-geo-ip): New variable.
---
gnu/packages/perl-web.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/perl-web.scm b/gnu/packages/perl-web.scm
index 0bb0070cb5..82d6a2250a 100644
--- a/gnu/packages/perl-web.scm
+++ b/gnu/packages/perl-web.scm
@@ -241,3 +241,33 @@ (define-public geolite-country-data
of their databases. It is intended only as a compatability package for
SpamAssassin.")
(license license:cc-by-sa4.0))))
+
+(define-public perl-geo-ip
+ (package
+ (name "perl-geo-ip")
+ (version "1.51")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
+ (build-system perl-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "lib/Geo/IP.pm"
+ (("/usr/local/share/GeoIP/GeoIP.dat")
+ (string-append
+ #$(this-package-input "geolite-country-data")
+ "/share/GeoIP/GeoIP.dat"))))))))
+ (inputs (list geolite-country-data))
+ (home-page "https://metacpan.org/release/Geo-IP")
+ (synopsis "Look up location and network information by IP Address")
+ (description
+ "The Perl module @code{Geo::IP} looks up location and network information
+by IP Address.")
+ (license license:perl-license)))
--
2.39.2
- [bug#63894] [PATCH 22/55] gnu: Add perl-file-libmagic., (continued)
- [bug#63894] [PATCH 22/55] gnu: Add perl-file-libmagic., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 54/55] gnu: Add perl-razor2-client-agent., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 30/55] gnu: Add perl-package-variant., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 33/55] gnu: perl-sub-quote: Update to 2.006008., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 25/55] gnu: Add perl-graphviz., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 10/55] gnu: Add perl-test-file-sharedir., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 15/55] gnu: Add perl-constant., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 44/55] gnu: Add perl-gravatar-url., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 55/55] gnu: Add spamassassin., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 34/55] gnu: perl-text-balanced: Update to 1.75., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 48/55] gnu: Add perl-geo-ip.,
Antero Mejr <=
- [bug#63894] [PATCH 35/55] gnu: Add perl-text-brew., Antero Mejr, 2023/06/04
- [bug#63894] [PATCH 49/55] gnu: Add perl-net-smtps., Antero Mejr, 2023/06/04