* [meta-networking][PATCH 0/2] add new recipes for GeoIP
@ 2014-12-26 6:23 leimaohui
2014-12-26 6:23 ` [meta-networking][PATCH 1/2] GeoIP: add recipe leimaohui
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: leimaohui @ 2014-12-26 6:23 UTC (permalink / raw)
To: openembedded-devel
GeoIP: allow you to look up information about a given IP address.
geoipupdate: can download and update the GeoLite Legacy databases.
leimh (2):
GeoIP: add recipe
geoipupdate: add new recipe
meta-networking/recipes-support/GeoIP/GeoIP.inc | 10 ++++
.../recipes-support/GeoIP/GeoIP_1.6.0.bb | 54 ++++++++++++++++++++++
.../GeoIP/geoipupdate-2.1.0/GeoIP.conf | 11 +++++
.../GeoIP/geoipupdate-2.1.0/geoipupdate.cron | 5 ++
.../recipes-support/GeoIP/geoipupdate_2.1.0.bb | 26 +++++++++++
5 files changed, 106 insertions(+)
create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP.inc
create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb
--
1.9.1
^ permalink raw reply [flat|nested] 8+ messages in thread* [meta-networking][PATCH 1/2] GeoIP: add recipe
2014-12-26 6:23 [meta-networking][PATCH 0/2] add new recipes for GeoIP leimaohui
@ 2014-12-26 6:23 ` leimaohui
2014-12-30 8:27 ` Martin Jansa
2014-12-26 6:23 ` [meta-networking][PATCH 2/2] geoipupdate: add new recipe leimaohui
2014-12-29 20:22 ` [meta-networking][PATCH 0/2] add new recipes for GeoIP Joe MacDonald
2 siblings, 1 reply; 8+ messages in thread
From: leimaohui @ 2014-12-26 6:23 UTC (permalink / raw)
To: openembedded-devel
From: leimh <leimaohui@cn.fujitsu.com>
GeoIP app allow you to look up information about a given IP address.
Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
---
meta-networking/recipes-support/GeoIP/GeoIP.inc | 10 ++++
.../recipes-support/GeoIP/GeoIP_1.6.0.bb | 54 ++++++++++++++++++++++
2 files changed, 64 insertions(+)
create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP.inc
create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
diff --git a/meta-networking/recipes-support/GeoIP/GeoIP.inc b/meta-networking/recipes-support/GeoIP/GeoIP.inc
new file mode 100644
index 0000000..d52f1f2
--- /dev/null
+++ b/meta-networking/recipes-support/GeoIP/GeoIP.inc
@@ -0,0 +1,10 @@
+SUMMARY = "C library for country/city/organization to IP address or hostname mapping"
+DESCRIPTION = "GeoIP is a C library that enables the user to find the country that any IP\
+address or hostname originates from. It uses a file based database that is\
+accurate as of March 2003. This database simply contains IP blocks as keys, and\
+countries as values. This database should be more complete and accurate than\
+using reverse DNS lookups."
+
+HOMEPAGE = "http://www.maxmind.com/app/c"
+SECTION = "Development/Libraries"
+
diff --git a/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
new file mode 100644
index 0000000..ec00d76
--- /dev/null
+++ b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
@@ -0,0 +1,54 @@
+require GeoIP.inc
+
+SRC_URI = "http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarball \
+ http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz;apply=no;name=GeoIP-dat \
+ http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no;name=GeoIPv6-dat \
+ http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;apply=no;name=GeoLiteCity-dat \
+ http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \
+ "
+
+SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca"
+SRC_URI[tarball.sha256sum] = "075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"
+
+SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05"
+SRC_URI[GeoIP-dat.sha256sum] = "a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"
+
+SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2"
+SRC_URI[GeoIPv6-dat.sha256sum] = "1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"
+
+SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874"
+SRC_URI[GeoLiteCity-dat.sha256sum] = "2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"
+
+SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a"
+SRC_URI[GeoLiteCityv6-dat.sha256sum] = "4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"
+
+
+LICENSE = "LGPL-2.1"
+
+LIC_FILES_CHKSUM = "\
+file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \
+file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2 \
+"
+
+S = "${WORKDIR}/${PN}-1.6.0"
+
+inherit autotools
+
+EXTRA_OECONF = "\
+ --disable-static \
+ --disable-dependency-tracking \
+"
+
+do_install() {
+ make DESTDIR=${D} install
+ install -d ${D}/${datadir}/GeoIP
+ install ${WORKDIR}/GeoIP.dat ${D}/${datadir}/GeoIP/
+ install ${WORKDIR}/GeoIPv6.dat ${D}/${datadir}/GeoIP/
+ install ${WORKDIR}/GeoLiteCity.dat ${D}/${datadir}/GeoIP/
+ install ${WORKDIR}/GeoLiteCityv6.dat ${D}/${datadir}/GeoIP/
+}
+
+PACKAGES =+ "${PN}-database"
+FILES_${PN}-database = ""
+FILES_${PN}-database += "${datadir}/GeoIP/*"
+
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
2014-12-26 6:23 ` [meta-networking][PATCH 1/2] GeoIP: add recipe leimaohui
@ 2014-12-30 8:27 ` Martin Jansa
2015-01-02 11:18 ` Lei, Maohui
0 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2014-12-30 8:27 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 4919 bytes --]
On Fri, Dec 26, 2014 at 02:23:25PM +0800, leimaohui wrote:
> From: leimh <leimaohui@cn.fujitsu.com>
>
> GeoIP app allow you to look up information about a given IP address.
Please use lowercase recipe/package names, this causes many warnings:
GeoIP-1.6.0: GeoIP-database doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP-dbg doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP-staticdev doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP-dev doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP-doc doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP-locale doesn't match the [a-z0-9.+-]+ regex [pkgname]
GeoIP-1.6.0: GeoIP doesn't match the [a-z0-9.+-]+ regex [pkgname]
>
> Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
> ---
> meta-networking/recipes-support/GeoIP/GeoIP.inc | 10 ++++
> .../recipes-support/GeoIP/GeoIP_1.6.0.bb | 54 ++++++++++++++++++++++
> 2 files changed, 64 insertions(+)
> create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP.inc
> create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
>
> diff --git a/meta-networking/recipes-support/GeoIP/GeoIP.inc b/meta-networking/recipes-support/GeoIP/GeoIP.inc
> new file mode 100644
> index 0000000..d52f1f2
> --- /dev/null
> +++ b/meta-networking/recipes-support/GeoIP/GeoIP.inc
> @@ -0,0 +1,10 @@
> +SUMMARY = "C library for country/city/organization to IP address or hostname mapping"
> +DESCRIPTION = "GeoIP is a C library that enables the user to find the country that any IP\
> +address or hostname originates from. It uses a file based database that is\
> +accurate as of March 2003. This database simply contains IP blocks as keys, and\
> +countries as values. This database should be more complete and accurate than\
> +using reverse DNS lookups."
> +
> +HOMEPAGE = "http://www.maxmind.com/app/c"
> +SECTION = "Development/Libraries"
> +
> diff --git a/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> new file mode 100644
> index 0000000..ec00d76
> --- /dev/null
> +++ b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> @@ -0,0 +1,54 @@
> +require GeoIP.inc
> +
> +SRC_URI = "http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarball \
> + http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz;apply=no;name=GeoIP-dat \
> + http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no;name=GeoIPv6-dat \
> + http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;apply=no;name=GeoLiteCity-dat \
> + http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \
> + "
> +
> +SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca"
> +SRC_URI[tarball.sha256sum] = "075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"
> +
> +SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05"
> +SRC_URI[GeoIP-dat.sha256sum] = "a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"
> +
> +SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2"
> +SRC_URI[GeoIPv6-dat.sha256sum] = "1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"
> +
> +SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874"
> +SRC_URI[GeoLiteCity-dat.sha256sum] = "2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"
> +
> +SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a"
> +SRC_URI[GeoLiteCityv6-dat.sha256sum] = "4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"
> +
> +
> +LICENSE = "LGPL-2.1"
> +
> +LIC_FILES_CHKSUM = "\
> +file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \
> +file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2 \
> +"
> +
> +S = "${WORKDIR}/${PN}-1.6.0"
> +
> +inherit autotools
> +
> +EXTRA_OECONF = "\
> + --disable-static \
> + --disable-dependency-tracking \
> +"
> +
> +do_install() {
> + make DESTDIR=${D} install
> + install -d ${D}/${datadir}/GeoIP
> + install ${WORKDIR}/GeoIP.dat ${D}/${datadir}/GeoIP/
> + install ${WORKDIR}/GeoIPv6.dat ${D}/${datadir}/GeoIP/
> + install ${WORKDIR}/GeoLiteCity.dat ${D}/${datadir}/GeoIP/
> + install ${WORKDIR}/GeoLiteCityv6.dat ${D}/${datadir}/GeoIP/
> +}
> +
> +PACKAGES =+ "${PN}-database"
> +FILES_${PN}-database = ""
> +FILES_${PN}-database += "${datadir}/GeoIP/*"
> +
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
2014-12-30 8:27 ` Martin Jansa
@ 2015-01-02 11:18 ` Lei, Maohui
0 siblings, 0 replies; 8+ messages in thread
From: Lei, Maohui @ 2015-01-02 11:18 UTC (permalink / raw)
To: openembedded-devel@lists.openembedded.org
Hi Martin and Joe
Thank you for reply, I will modify my patches ,and then re submit them later.
Cheers
Lei Maohui
> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Tuesday, December 30, 2014 4:28 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-networking][PATCH 1/2] GeoIP: add recipe
>
> On Fri, Dec 26, 2014 at 02:23:25PM +0800, leimaohui wrote:
> > From: leimh <leimaohui@cn.fujitsu.com>
> >
> > GeoIP app allow you to look up information about a given IP address.
>
> Please use lowercase recipe/package names, this causes many warnings:
>
> GeoIP-1.6.0: GeoIP-database doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP-dbg doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP-staticdev doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP-dev doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP-doc doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP-locale doesn't match the [a-z0-9.+-]+ regex [pkgname]
> GeoIP-1.6.0: GeoIP doesn't match the [a-z0-9.+-]+ regex [pkgname]
>
> >
> > Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
> > ---
> > meta-networking/recipes-support/GeoIP/GeoIP.inc | 10 ++++
> > .../recipes-support/GeoIP/GeoIP_1.6.0.bb | 54
> ++++++++++++++++++++++
> > 2 files changed, 64 insertions(+)
> > create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP.inc
> > create mode 100644
> > meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> >
> > diff --git a/meta-networking/recipes-support/GeoIP/GeoIP.inc
> > b/meta-networking/recipes-support/GeoIP/GeoIP.inc
> > new file mode 100644
> > index 0000000..d52f1f2
> > --- /dev/null
> > +++ b/meta-networking/recipes-support/GeoIP/GeoIP.inc
> > @@ -0,0 +1,10 @@
> > +SUMMARY = "C library for country/city/organization to IP address or hostname
> mapping"
> > +DESCRIPTION = "GeoIP is a C library that enables the user to find the
> > +country that any IP\ address or hostname originates from. It uses a
> > +file based database that is\ accurate as of March 2003. This database
> > +simply contains IP blocks as keys, and\ countries as values. This
> > +database should be more complete and accurate than\ using reverse DNS
> lookups."
> > +
> > +HOMEPAGE = "http://www.maxmind.com/app/c"
> > +SECTION = "Development/Libraries"
> > +
> > diff --git a/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> > b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> > new file mode 100644
> > index 0000000..ec00d76
> > --- /dev/null
> > +++ b/meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> > @@ -0,0 +1,54 @@
> > +require GeoIP.inc
> > +
> > +SRC_URI =
> "http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarba
> ll \
> > +
> http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.da
> t.gz;apply=no;name=GeoIP-dat \
> > +
> http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no
> ;name=GeoIPv6-dat \
> > +
> http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;appl
> y=no;name=GeoLiteCity-dat \
> > +
> http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoL
> iteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \
> > + "
> > +
> > +SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca"
> > +SRC_URI[tarball.sha256sum] =
> "075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"
> > +
> > +SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05"
> > +SRC_URI[GeoIP-dat.sha256sum] =
> "a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"
> > +
> > +SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2"
> > +SRC_URI[GeoIPv6-dat.sha256sum] =
> "1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"
> > +
> > +SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874"
> > +SRC_URI[GeoLiteCity-dat.sha256sum] =
> "2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"
> > +
> > +SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a"
> > +SRC_URI[GeoLiteCityv6-dat.sha256sum] =
> "4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"
> > +
> > +
> > +LICENSE = "LGPL-2.1"
> > +
> > +LIC_FILES_CHKSUM = "\
> > +file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \
> > +file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2 \ "
> > +
> > +S = "${WORKDIR}/${PN}-1.6.0"
> > +
> > +inherit autotools
> > +
> > +EXTRA_OECONF = "\
> > + --disable-static \
> > + --disable-dependency-tracking \ "
> > +
> > +do_install() {
> > + make DESTDIR=${D} install
> > + install -d ${D}/${datadir}/GeoIP
> > + install ${WORKDIR}/GeoIP.dat ${D}/${datadir}/GeoIP/
> > + install ${WORKDIR}/GeoIPv6.dat ${D}/${datadir}/GeoIP/
> > + install ${WORKDIR}/GeoLiteCity.dat ${D}/${datadir}/GeoIP/
> > + install ${WORKDIR}/GeoLiteCityv6.dat ${D}/${datadir}/GeoIP/ }
> > +
> > +PACKAGES =+ "${PN}-database"
> > +FILES_${PN}-database = ""
> > +FILES_${PN}-database += "${datadir}/GeoIP/*"
> > +
> > --
> > 1.9.1
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [meta-networking][PATCH 2/2] geoipupdate: add new recipe
2014-12-26 6:23 [meta-networking][PATCH 0/2] add new recipes for GeoIP leimaohui
2014-12-26 6:23 ` [meta-networking][PATCH 1/2] GeoIP: add recipe leimaohui
@ 2014-12-26 6:23 ` leimaohui
2014-12-29 20:22 ` [meta-networking][PATCH 0/2] add new recipes for GeoIP Joe MacDonald
2 siblings, 0 replies; 8+ messages in thread
From: leimaohui @ 2014-12-26 6:23 UTC (permalink / raw)
To: openembedded-devel
From: leimh <leimaohui@cn.fujitsu.com>
for update the IP geolocation databases
Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
---
.../GeoIP/geoipupdate-2.1.0/GeoIP.conf | 11 +++++++++
.../GeoIP/geoipupdate-2.1.0/geoipupdate.cron | 5 +++++
.../recipes-support/GeoIP/geoipupdate_2.1.0.bb | 26 ++++++++++++++++++++++
3 files changed, 42 insertions(+)
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron
create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb
diff --git a/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf b/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf
new file mode 100644
index 0000000..134cfed
--- /dev/null
+++ b/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf
@@ -0,0 +1,11 @@
+# The following UserId and LicenseKey are required placeholders:
+UserId 999999
+LicenseKey 000000000000
+
+# Include one or more of the following ProductIds:
+# * GeoLite2-City - GeoLite 2 City
+# * GeoLite2-Country - GeoLite2 Country
+# * 506 - GeoLite Legacy Country
+# * 517 - GeoLite Legacy ASN
+# * 533 - GeoLite Legacy City
+ProductIds GeoLite2-City GeoLite2-Country 506 517 533
diff --git a/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron b/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron
new file mode 100644
index 0000000..40597a8
--- /dev/null
+++ b/meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron
@@ -0,0 +1,5 @@
+# top of crontab
+MAILTO=your@email.com
+
+32 11 * * 4 /usr/local/bin/geoipupdate
+# end of crontab
diff --git a/meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb b/meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb
new file mode 100644
index 0000000..0de8a4d
--- /dev/null
+++ b/meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb
@@ -0,0 +1,26 @@
+require GeoIP.inc
+DEPENDS = "zlib curl"
+
+
+SRC_URI = "https://github.com/maxmind/geoipupdate/releases/download/v2.1.0/geoipupdate-2.1.0.tar.gz \
+ file://GeoIP.conf \
+ file://geoipupdate.cron \
+ "
+
+SRC_URI[md5sum] = "9107d082f15c8e482f4b6f1080e7deaf"
+SRC_URI[sha256sum] = "7388c46f6c483ae609e5f5333a2585bc9713d56bb522da5c11b09d41c87aa5fb"
+
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "\
+file://ChangeLog.md;md5=25f3500fad03ad7e6bf135b29c9c7c2d \
+"
+
+inherit autotools
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}
+ install -d ${D}/${sysconfdir}/cron.d
+ install ${WORKDIR}/GeoIP.conf ${D}/${sysconfdir}/
+ install ${WORKDIR}/geoipupdate.cron ${D}/${sysconfdir}/cron.d/
+}
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [meta-networking][PATCH 0/2] add new recipes for GeoIP
2014-12-26 6:23 [meta-networking][PATCH 0/2] add new recipes for GeoIP leimaohui
2014-12-26 6:23 ` [meta-networking][PATCH 1/2] GeoIP: add recipe leimaohui
2014-12-26 6:23 ` [meta-networking][PATCH 2/2] geoipupdate: add new recipe leimaohui
@ 2014-12-29 20:22 ` Joe MacDonald
2 siblings, 0 replies; 8+ messages in thread
From: Joe MacDonald @ 2014-12-29 20:22 UTC (permalink / raw)
To: leimaohui; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2308 bytes --]
[[oe] [meta-networking][PATCH 0/2] add new recipes for GeoIP] On 14.12.26 (Fri 14:23) leimaohui wrote:
> GeoIP: allow you to look up information about a given IP address.
> geoipupdate: can download and update the GeoLite Legacy databases.
This looks good over-all but we're really trying to limit the number of
.inc files unless we have an expectation that we'll be maintaining more
than one version of the recipe at the same time. Or, I suppose, if the
recipe is very complex and it could be made clearer by breaking it up
into an include and a recipe file, that might make sense, but I don't
think this falls into either category. Would you mind combining them
and eliminating the .inc file?
While we're here, there's a couple of minor stylistic things. I don't
know exactly what's happening here:
meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb:
51 PACKAGES =+ "${PN}-database"
52 FILES_${PN}-database = ""
53 FILES_${PN}-database += "${datadir}/GeoIP/*"
and for this:
28 LIC_FILES_CHKSUM = "\
29 file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \
30 file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2 \
31 "
the usual approach is to either line up the indenting with the first "
or four spaces. I'm okay with either, though four spaces is probably
preferred here and probably do the same for EXTRA_OECONF.
-J.
>
> leimh (2):
> GeoIP: add recipe
> geoipupdate: add new recipe
>
> meta-networking/recipes-support/GeoIP/GeoIP.inc | 10 ++++
> .../recipes-support/GeoIP/GeoIP_1.6.0.bb | 54 ++++++++++++++++++++++
> .../GeoIP/geoipupdate-2.1.0/GeoIP.conf | 11 +++++
> .../GeoIP/geoipupdate-2.1.0/geoipupdate.cron | 5 ++
> .../recipes-support/GeoIP/geoipupdate_2.1.0.bb | 26 +++++++++++
> 5 files changed, 106 insertions(+)
> create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP.inc
> create mode 100644 meta-networking/recipes-support/GeoIP/GeoIP_1.6.0.bb
> create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/GeoIP.conf
> create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate-2.1.0/geoipupdate.cron
> create mode 100644 meta-networking/recipes-support/GeoIP/geoipupdate_2.1.0.bb
>
> --
> 1.9.1
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [meta-networking][PATCH 0/2] add new recipes for GeoIP
@ 2015-01-05 2:39 leimaohui
2015-01-07 19:13 ` Joe MacDonald
0 siblings, 1 reply; 8+ messages in thread
From: leimaohui @ 2015-01-05 2:39 UTC (permalink / raw)
To: openembedded-devel
From: leimh <leimaohui@cn.fujitsu.com>
geoip: allow you to look up information about a given IP address.
geoipupdate: can download and update the GeoLite Legacy databases.
leimh (2):
GeoIP: add recipe
geoipupdate: add new recipe
.../recipes-support/geoip/geoip_1.6.0.bb | 58 ++++++++++++++++++++++
.../geoip/geoipupdate-2.1.0/GeoIP.conf | 11 ++++
.../geoip/geoipupdate-2.1.0/geoipupdate.cron | 5 ++
.../recipes-support/geoip/geoipupdate_2.1.0.bb | 30 +++++++++++
4 files changed, 104 insertions(+)
create mode 100644 meta-networking/recipes-support/geoip/geoip_1.6.0.bb
create mode 100644 meta-networking/recipes-support/geoip/geoipupdate-2.1.0/GeoIP.conf
create mode 100644 meta-networking/recipes-support/geoip/geoipupdate-2.1.0/geoipupdate.cron
create mode 100644 meta-networking/recipes-support/geoip/geoipupdate_2.1.0.bb
--
1.8.4.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-networking][PATCH 0/2] add new recipes for GeoIP
2015-01-05 2:39 leimaohui
@ 2015-01-07 19:13 ` Joe MacDonald
0 siblings, 0 replies; 8+ messages in thread
From: Joe MacDonald @ 2015-01-07 19:13 UTC (permalink / raw)
To: leimaohui; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Merged, thanks. I had to update the checksums because the geoip
databases had been updated. I think this is likely to continue to
happen, so I'm going to send out a proposal soon on how to work around
this once I see it working for myself.
-J.
[[oe] [meta-networking][PATCH 0/2] add new recipes for GeoIP] On 15.01.05 (Mon 10:39) leimaohui wrote:
> From: leimh <leimaohui@cn.fujitsu.com>
>
> geoip: allow you to look up information about a given IP address.
> geoipupdate: can download and update the GeoLite Legacy databases.
>
> leimh (2):
> GeoIP: add recipe
> geoipupdate: add new recipe
>
> .../recipes-support/geoip/geoip_1.6.0.bb | 58 ++++++++++++++++++++++
> .../geoip/geoipupdate-2.1.0/GeoIP.conf | 11 ++++
> .../geoip/geoipupdate-2.1.0/geoipupdate.cron | 5 ++
> .../recipes-support/geoip/geoipupdate_2.1.0.bb | 30 +++++++++++
> 4 files changed, 104 insertions(+)
> create mode 100644 meta-networking/recipes-support/geoip/geoip_1.6.0.bb
> create mode 100644 meta-networking/recipes-support/geoip/geoipupdate-2.1.0/GeoIP.conf
> create mode 100644 meta-networking/recipes-support/geoip/geoipupdate-2.1.0/geoipupdate.cron
> create mode 100644 meta-networking/recipes-support/geoip/geoipupdate_2.1.0.bb
>
> --
> 1.8.4.2
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-01-07 19:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-26 6:23 [meta-networking][PATCH 0/2] add new recipes for GeoIP leimaohui
2014-12-26 6:23 ` [meta-networking][PATCH 1/2] GeoIP: add recipe leimaohui
2014-12-30 8:27 ` Martin Jansa
2015-01-02 11:18 ` Lei, Maohui
2014-12-26 6:23 ` [meta-networking][PATCH 2/2] geoipupdate: add new recipe leimaohui
2014-12-29 20:22 ` [meta-networking][PATCH 0/2] add new recipes for GeoIP Joe MacDonald
-- strict thread matches above, loose matches on Subject: below --
2015-01-05 2:39 leimaohui
2015-01-07 19:13 ` Joe MacDonald
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.