dev-perl/ip2as: New ebuild

Package-Manager: Portage-2.3.99, Repoman-2.3.22
This commit is contained in:
Alarig Le Lay 2020-05-21 14:13:48 +02:00
parent 5bb62cfab4
commit 3919627ceb
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit perl-module git-r3
DESCRIPTION="IP to ASN mapping"
EGIT_REPO_URI="https://github.com/JackSlateur/perl-ip2as.git"
#LICENSE="|| ( Artistic GPL-1+ )"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
dev-perl/JSON-XS
dev-perl/Net-Patricia
"
DEPEND="${RDEPEND}"
DOCS=( README.md tools/{asinfo.txt,ip2asn.json} )
src_prepare() {
default
perl_set_version
}
src_install() {
default
insinto "${VENDOR_LIB}"
doins ip2as.pm
insinto "/usr/libexec/${PN}"
doins tools/fetch_ip_asn.py
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Alarig Le Lay</name>
<email>alarig@swordarmor.fr</email>
</maintainer>
</pkgmetadata>