GNU bug report logs -
#63894
[PATCH] Add SpamAssassin, Debbugs dependencies
Previous Next
Reported by: Antero Mejr <antero <at> mailbox.org>
Date: Sun, 4 Jun 2023 17:37:01 UTC
Severity: normal
Tags: patch
Done: "Danny Milosavljevic" <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
Full log
Message #146 received at 63894 <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.