add new recipes for GeoIP
cover add new recipes for GeoIP
From: leimh <[email protected]>
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
Signature · 1 line
1.8.4.2
PATCH 1/2 GeoIP: add recipe
From: leimh <[email protected]>
GeoIP app allow you to look up information about a given IP address.
--- .../recipes-support/geoip/geoip_1.6.0.bb | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 meta-networking/recipes-support/geoip/geoip_1.6.0.bb
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +58 -0
@@ -0,0 +1,58 @@ +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://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries" + +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}/GeoIP-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/*" +
Signature · 1 line
1.8.4.2
Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
Quoted 16 lines · leimaohui
From: leimh <[email protected]>
GeoIP app allow you to look up information about a given IP address.
Signed-off-by leimh <[email protected]>--- .../recipes-support/geoip/geoip_1.6.0.bb | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+)create mode 100644 meta-networking/recipes-support/geoip/geoip_1.6.0.bb
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +0
-0
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 9 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +9
-0@@ -0,0 +1,58 @@ +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://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"
I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
The similar to geoipupdate.
// Robert
Quoted 50 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +49
-0+ +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}/GeoIP-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/*" +
Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
Hi Robert
Quoted 7 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
Thank you, it does make sense. I didn't pay attention to this detail. But it is hard to find the rule of assignment of " SECTION " variable. I searched the meta-openembedded, "network" is also be used to be section name. What's the difference between the "net" and the "network"?
[meta-openembedded]$ grep "SECTION " ./ -r | grep bb
...
./meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb:SECTION = "net"
...
./meta-networking/recipes-daemons/squid/squid_3.4.7.bb:SECTION = "network"
...
[meta-openembedded]$
Quoted 2 lines
The similar to geoipupdate.
Lei
Quoted 121 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Robert Yang
Sent: Monday, January 05, 2015 11:07 AM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/2] GeoIP: add recipeQuoted 7 lines · leimaohui
From: leimh <[email protected]>
GeoIP app allow you to look up information about a given IP address.
Signed-off-by leimh <[email protected]>--- .../recipes-support/geoip/geoip_1.6.0.bb | 58++++++++++++++++++++++
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 1
Quoted 12 lines
1 file changed, 58 insertions(+)create mode 100644
meta-networking/recipes-support/geoip/geoip_1.6.0.bbmeta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0@@ -0,0 +1,58 @@ +SUMMARY = "C library for country/city/organization to IP address or hostnamemapping"
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 6
Quoted 5 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +5
-0+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 DNSlookups."
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
The similar to geoipupdate.
// Robert
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 11
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+ +SRC_URI ="http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarba ll \
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 12
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.da
t.gz;apply=no;name=GeoIP-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 13
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no
;name=GeoIPv6-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 14
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;appl
y=no;name=GeoLiteCity-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 15
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0++http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/Geo LiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \ "
meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca" +SRC_URI[tarball.sha256sum] ="
075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05" +SRC_URI[GeoIP-dat.sha256sum] ="
a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2" +SRC_URI[GeoIPv6-dat.sha256sum] ="
1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874" +SRC_URI[GeoLiteCity-dat.sha256sum] ="
2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a" +SRC_URI[GeoLiteCityv6-dat.sha256sum] ="
4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 6 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +6
-0+ + +LICENSE = "LGPL-2.1" + +LIC_FILES_CHKSUM = "file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \ + file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2"
Quoted 11 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ +S = "${WORKDIR}/GeoIP-1.6.0" + +inherit autotools + +EXTRA_OECONF = "--disable-static \ + --disable-dependency-tracking " + +do_install() { + make DESTDIR=${D} installmeta-networking/recipes-support/geoip/geoip_1.6.0.bb line 58
Quoted 10 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ 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/*" +--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
Quoted 9 lines · Maohui
Hi Robert
Quoted 6 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
Quoted 6 lines
Quoted 1 line
SECTION = "net"
Thank you, it does make sense. I didn't pay attention to this detail. But it is hard to find the rule of assignment of " SECTION " variable. I searched the meta-openembedded, "network" is also be used to be section name. What's the difference between the "net" and the "network"?
I think they are the same, Joe M, who is the maintainer of meta-networking may know about it.
// Robert
Quoted 140 lines
[meta-openembedded]$ grep "SECTION " ./ -r | grep bb
...
./meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb:SECTION = "net"
...
./meta-networking/recipes-daemons/squid/squid_3.4.7.bb:SECTION = "network"
...
[meta-openembedded]$Quoted 2 lines
The similar to geoipupdate.
Lei
Quoted 121 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Robert Yang
Sent: Monday, January 05, 2015 11:07 AM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/2] GeoIP: add recipeQuoted 7 lines · leimaohui
From: leimh <[email protected]>
GeoIP app allow you to look up information about a given IP address.
Signed-off-by leimh <[email protected]>--- .../recipes-support/geoip/geoip_1.6.0.bb | 58++++++++++++++++++++++
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 1
Quoted 12 lines
1 file changed, 58 insertions(+)create mode 100644
meta-networking/recipes-support/geoip/geoip_1.6.0.bbmeta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0@@ -0,0 +1,58 @@ +SUMMARY = "C library for country/city/organization to IP address or hostnamemapping"
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 6
Quoted 5 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +5
-0+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 DNSlookups."
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
The similar to geoipupdate.
// Robert
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 11
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+ +SRC_URI ="http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarba ll \
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 12
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.da
t.gz;apply=no;name=GeoIP-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 13
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no
;name=GeoIPv6-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 14
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;appl
y=no;name=GeoLiteCity-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 15
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0++http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/Geo LiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \ "
meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca" +SRC_URI[tarball.sha256sum] ="
075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05" +SRC_URI[GeoIP-dat.sha256sum] ="
a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2" +SRC_URI[GeoIPv6-dat.sha256sum] ="
1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874" +SRC_URI[GeoLiteCity-dat.sha256sum] ="
2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a" +SRC_URI[GeoLiteCityv6-dat.sha256sum] ="
4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 6 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +6
-0+ + +LICENSE = "LGPL-2.1" + +LIC_FILES_CHKSUM = "file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \ + file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2"
Quoted 11 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ +S = "${WORKDIR}/GeoIP-1.6.0" + +inherit autotools + +EXTRA_OECONF = "--disable-static \ + --disable-dependency-tracking " + +do_install() { + make DESTDIR=${D} installmeta-networking/recipes-support/geoip/geoip_1.6.0.bb line 58
Quoted 10 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ 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/*" +--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-networking][PATCH 1/2] GeoIP: add recipe
Quoted 14 lines · [Re: [oe] [meta-networking][PATCH 1/2] GeoIP: add recipe] On 15.01.05 (Mon…
Quoted 11 lines · Maohui
Hi Robert
Quoted 7 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
Quoted 7 lines
Quoted 4 lines
Thank you, it does make sense. I didn't pay attention to this detail. But it is hard to find the rule of assignment of " SECTION " variable. I searched the meta-openembedded, "network" is also be used to be section name. What's the difference between the "net" and the "network"?
I think they are the same, Joe M, who is the maintainer of meta-networking may know about it.
I'm not aware of a stated policy on what format SECTION should follow or what options are recommended, actually. At least in terms of meta-networking I've not really questioned anything (as far as I know) that looks sensible.
Now that I'm thinking about it, though, I think some sort of structure would be good. So to that end, I won't ask for any changes here, but I'll follow up (later on today, I hope) with my proposed changes to the meta-networking hierarchy and hopefully get some kind of pattern to what's set there. Right now a raw count shows the Fedora-style convention is the most popular by a slim margin. I'm inclined to go with, for example, SECTION = "console/network" here, since that conveys a reasonable amount of information and looks to be easily parsable and more closely matches what's used in, for example, meta-oe/.
-J.
Quoted 143 lines
// Robert
Quoted 140 lines
[meta-openembedded]$ grep "SECTION " ./ -r | grep bb
...
./meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb:SECTION = "net"
...
./meta-networking/recipes-daemons/squid/squid_3.4.7.bb:SECTION = "network"
...
[meta-openembedded]$Quoted 2 lines
The similar to geoipupdate.
Lei
Quoted 121 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Robert Yang
Sent: Monday, January 05, 2015 11:07 AM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/2] GeoIP: add recipeQuoted 7 lines · leimaohui
From: leimh <[email protected]>
GeoIP app allow you to look up information about a given IP address.
Signed-off-by leimh <[email protected]>--- .../recipes-support/geoip/geoip_1.6.0.bb | 58++++++++++++++++++++++
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 1
Quoted 12 lines
1 file changed, 58 insertions(+)create mode 100644
meta-networking/recipes-support/geoip/geoip_1.6.0.bbmeta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0@@ -0,0 +1,58 @@ +SUMMARY = "C library for country/city/organization to IP address or hostnamemapping"
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 6
Quoted 5 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +5
-0+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 DNSlookups."
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 9
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development/Libraries"I think that this is a fedora like section name? We usually use debian style in OE, for example:
SECTION = "net"
The similar to geoipupdate.
// Robert
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 11
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +2
-0+ +SRC_URI ="http://www.maxmind.com/download/geoip/api/c/GeoIP-1.6.0.tar.gz;name=tarba ll \
meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 12
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.da
t.gz;apply=no;name=GeoIP-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 13
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no
;name=GeoIPv6-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 14
Quoted 1 line
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0+http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;appl
y=no;name=GeoLiteCity-dat \meta-networking/recipes-support/geoip/geoip_1.6.0.bb line 15
Quoted 2 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +1
-0++http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/Geo LiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \ "
meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[tarball.md5sum] = "89f4cdfdab43f1d67364cd7c85bbe8ca" +SRC_URI[tarball.sha256sum] ="
075a0c2815cd099e9ec35c9569db716a3fefcdbb6a10dbfa1ce7c6cd48d4a635"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIP-dat.md5sum] = "53416cd33e556a8048ac522fc9a98e05" +SRC_URI[GeoIP-dat.sha256sum] ="
a423a0c87bf9a78ef8d68153b424987c6bbddec85b5f784ca747706f4df10361"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoIPv6-dat.md5sum] = "f1a4abf4015c0300267f4717c9d7ead2" +SRC_URI[GeoIPv6-dat.sha256sum] ="
1a8e61732e39ac9d9acc20d648b2530d7bd0ff1c250f51fd18148931fbfe2830"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCity-dat.md5sum] = "48af3b8a204d7c5f8e42a4f5f4dd1874" +SRC_URI[GeoLiteCity-dat.sha256sum] ="
2f3f62f171c333cdd4e68534585e51978cb3a12dc7b269786f50daf10071d7d6"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 3 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +3
-0+ +SRC_URI[GeoLiteCityv6-dat.md5sum] = "a42504adfd8030c3a10f749191598b4a" +SRC_URI[GeoLiteCityv6-dat.sha256sum] ="
4a5eeaa4a9107e6ccdbe94ad1c7c987dc70cd250cd40624ada1e3a03836bbbdb"meta-networking/recipes-support/geoip/geoip_1.6.0.bb
Quoted 6 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +6
-0+ + +LICENSE = "LGPL-2.1" + +LIC_FILES_CHKSUM = "file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89 \ + file://LICENSE;md5=f04db71812ba70aaba8b38da91984cd2"
Quoted 11 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ +S = "${WORKDIR}/GeoIP-1.6.0" + +inherit autotools + +EXTRA_OECONF = "--disable-static \ + --disable-dependency-tracking " + +do_install() { + make DESTDIR=${D} installmeta-networking/recipes-support/geoip/geoip_1.6.0.bb line 58
Quoted 10 lines
meta-networking/recipes-support/geoip/geoip_1.6.0.bb new file +10
-0+ 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/*" +--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
-Joe MacDonald. :wq
PATCH 2/2 geoipupdate: add new recipe
In reply to leimaohuiFrom: leimh <[email protected]>
for update the IP geolocation databases
--- .../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 ++++++++++++++++++++++ 3 files changed, 46 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
meta-networking/recipes-support/geoip/geoipupdate-2.1.0/GeoIP.conf new file +11 -0
@@ -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
meta-networking/recipes-support/geoip/geoipupdate-2.1.0/geoipupdate.cron new file +5 -0
@@ -0,0 +1,5 @@ +# top of crontab [email protected] + +32 11 * * 4 /usr/local/bin/geoipupdate +# end of crontab
meta-networking/recipes-support/geoip/geoipupdate_2.1.0.bb new file +30 -0
@@ -0,0 +1,30 @@ +SUMMARY = "Crontab entry to provide weekly updates of the GeoIP free databases." +DESCRIPTION = "update databases for GeoIP" + +HOMEPAGE = "http://dev.maxmind.com/geoip/" +SECTION = "Development" + +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/ +}
Signature · 1 line
1.8.4.2
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.
Quoted 22 lines · [[oe] [meta-networking][PATCH 0/2] add new recipes for GeoIP] On 15.01.05 (Mon…
From: leimh <[email protected]>
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.bbSignature · 1 line
1.8.4.2
Signature · 2 lines
-Joe MacDonald. :wq