Add asn subpackage for net/dbip.

The free DB-IP IP to ASN Lite database is a subset of the IP to ISP
database with reduced coverage and accuracy distributed under the Creative
Commons Attribution License.

OK sthen@, jca@
This commit is contained in:
fcambus 2020-05-19 08:40:21 +00:00
parent ca77b7dcb1
commit 2397b377d8
5 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/03/05 14:19:21 fcambus Exp $
# $OpenBSD: Makefile,v 1.2 2020/05/19 08:40:21 fcambus Exp $
SUBDIR =
SUBDIR += asn
SUBDIR += city
SUBDIR += country

11
net/dbip/asn/Makefile Normal file
View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile,v 1.1 2020/05/19 08:40:21 fcambus Exp $
COMMENT = DB-IP IP to ASN Lite: IPv4/v6 address to ASN
DISTNAME = dbip-asn-lite-${V}.mmdb
PKGNAME = dbip-asn-lite-${V:S/-/./}
post-extract:
mv ${WRKSRC}/${DISTNAME} ${WRKSRC}/dbip-asn-lite.mmdb
.include <bsd.port.mk>

2
net/dbip/asn/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (dbip-asn-lite-2020-05.mmdb.gz) = +xBCIJjag4XSxy8b3OQTaqJqc/Ahl6uVS1XPzb/Fbe8=
SIZE (dbip-asn-lite-2020-05.mmdb.gz) = 3708208

3
net/dbip/asn/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
The free DB-IP IP to ASN Lite database is a subset of the IP to ISP
database with reduced coverage and accuracy distributed under the Creative
Commons Attribution License.

3
net/dbip/asn/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1 2020/05/19 08:40:21 fcambus Exp $
db/dbip/
db/dbip/dbip-asn-lite.mmdb