On Fri, Dec 26, 2014 at 02:23:25PM +0800, leimaohui wrote: > From: leimh <[email protected]> > > 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 <[email protected]> > --- > 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 > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- Martin 'JaMa' Jansa jabber: [email protected]
signature.asc
Description: Digital signature
-- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
