Hi ports@,

Here is a diff to add an asn subpackage for net/dbip.

>From DESCR:

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.

Comments? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/dbip/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    5 Mar 2020 14:19:21 -0000       1.1.1.1
+++ Makefile    18 May 2020 14:34:43 -0000
@@ -1,6 +1,7 @@
 # $OpenBSD: Makefile,v 1.1.1.1 2020/03/05 14:19:21 fcambus Exp $
 
 SUBDIR =
+SUBDIR += asn
 SUBDIR += city
 SUBDIR += country
 
Index: asn/Makefile
===================================================================
RCS file: asn/Makefile
diff -N asn/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ asn/Makefile        18 May 2020 14:34:43 -0000
@@ -0,0 +1,11 @@
+# $OpenBSD$
+
+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>
Index: asn/distinfo
===================================================================
RCS file: asn/distinfo
diff -N asn/distinfo
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ asn/distinfo        18 May 2020 14:34:43 -0000
@@ -0,0 +1,2 @@
+SHA256 (dbip-asn-lite-2020-05.mmdb.gz) = 
+xBCIJjag4XSxy8b3OQTaqJqc/Ahl6uVS1XPzb/Fbe8=
+SIZE (dbip-asn-lite-2020-05.mmdb.gz) = 3708208
Index: asn/pkg/DESCR
===================================================================
RCS file: asn/pkg/DESCR
diff -N asn/pkg/DESCR
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ asn/pkg/DESCR       18 May 2020 14:34:43 -0000
@@ -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.
Index: asn/pkg/PLIST
===================================================================
RCS file: asn/pkg/PLIST
diff -N asn/pkg/PLIST
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ asn/pkg/PLIST       18 May 2020 14:34:43 -0000
@@ -0,0 +1,3 @@
+@comment $OpenBSD: PLIST,v$
+db/dbip/
+db/dbip/dbip-asn-lite.mmdb

Reply via email to