Browse Source
- GeoIP database is no longer embedded in qBittorrent executable unless --with-geoip-database-embedded parameter is passed to configure (see src/geoip/REAME) - Dropped "CONFIG += x11 network" in project file since it does not seem to be required - Updated configure file to reflect Geoip changesadaptive-webui-19844
Christophe Dumez
15 years ago
11 changed files with 147 additions and 88 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
/* |
||||
-----BEGIN QCMOD----- |
||||
name: geoip-database |
||||
arg: with-geoip-database-embedded, Geoip Database will be embedded in qBittorrent executable (please follow instructions in src/geoip/README) |
||||
-----END QCMOD----- |
||||
*/ |
||||
// see Conf::findPkgConfig |
||||
class qc_geoip_database : public ConfObj |
||||
{ |
||||
public: |
||||
qc_geoip_database(Conf *c) : ConfObj(c) {} |
||||
QString name() const { return "GeoIP Database (optional)"; } |
||||
QString shortname() const { return "GeoIP Database"; } |
||||
bool exec() { |
||||
#ifdef Q_WS_X11 |
||||
if(!conf->getenv("QC_WITH_GEOIP_DATABASE_EMBEDDED").isEmpty()) { |
||||
#endif |
||||
conf->addDefine("WITH_GEOIP_EMBEDDED"); |
||||
printf(" embedded and"); |
||||
return true; |
||||
#ifdef Q_WS_X11 |
||||
} |
||||
if(QFile::exists("/usr/share/GeoIP/GeoIP.dat") || QFile::exists("/usr/local/share/GeoIP/GeoIP.dat")) |
||||
return true; |
||||
printf("\nWarning: GeoIP database was not found at /usr/share/GeoIP/GeoIP.dat\nCountry resolution will be slow."); |
||||
return false; |
||||
#endif |
||||
} |
||||
}; |
Binary file not shown.
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
There are two licenses, one for the C library software, and one for |
||||
the database. |
||||
|
||||
SOFTWARE LICENSE (C library) |
||||
|
||||
The GeoIP C Library is licensed under the LGPL. For details see |
||||
the COPYING file. |
||||
|
||||
OPEN DATA LICENSE (GeoLite Country and GeoLite City databases) |
||||
|
||||
Copyright (c) 2008 MaxMind, Inc. All Rights Reserved. |
||||
|
||||
All advertising materials and documentation mentioning features or use of |
||||
this database must display the following acknowledgment: |
||||
"This product includes GeoLite data created by MaxMind, available from |
||||
http://maxmind.com/" |
||||
|
||||
Redistribution and use with or without modification, are permitted provided |
||||
that the following conditions are met: |
||||
1. Redistributions must retain the above copyright notice, this list of |
||||
conditions and the following disclaimer in the documentation and/or other |
||||
materials provided with the distribution. |
||||
2. All advertising materials and documentation mentioning features or use of |
||||
this database must display the following acknowledgement: |
||||
"This product includes GeoLite data created by MaxMind, available from |
||||
http://maxmind.com/" |
||||
3. "MaxMind" may not be used to endorse or promote products derived from this |
||||
database without specific prior written permission. |
||||
|
||||
THIS DATABASE IS PROVIDED BY MAXMIND, INC ``AS IS'' AND ANY |
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||||
DISCLAIMED. IN NO EVENT SHALL MAXMIND BE LIABLE FOR ANY |
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||||
DATABASE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
If you wish to embed GeoIP database into qBittorrent executable, please download put GeoIP.dat in this folder. |
||||
|
||||
GeoIP Database can be downloaded from here: |
||||
* http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz |
||||
Note that the database should be uncompressed. |
||||
|
||||
Embedding GeoIP database into qBittorrent executable is advised for: |
||||
* Windows |
||||
* Mac OS X |
||||
* Linux distributions that don't provide GeoIP database in a separate package |
||||
|
||||
On Linux operating system, since this is not the default behavior, you also need to pass --with-geoip-database-embedded parameter to the configure file. |
Loading…
Reference in new issue