forked from qbittorrent/qBittorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- No longer ships GeoIP database since most distributions provide it …
…in a separate package - 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 changes
- Loading branch information
Christophe Dumez
committed
Dec 7, 2009
1 parent
8df1708
commit 968a5f3
Showing
11 changed files
with
147 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,6 @@ Code from other projects: | |
copyright: Malte Starostik <[email protected]> | ||
license: LGPL | ||
|
||
GeoIP database author: | ||
* files: src/geoip/GeoIP.dat | ||
copyright: MaxMind, Inc (http:https://maxmind.com/) | ||
license: Open Data License (see src/geoip/LICENSE.txt) | ||
|
||
Images Authors: | ||
* files: src/Icons/*.png | ||
copyright: Gnome Icon Theme | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,6 @@ | |
</dep> | ||
<dep type='libnotify'> | ||
</dep> | ||
<dep type='geoip-database'> | ||
</dep> | ||
</qconf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<!DOCTYPE RCC><RCC version="1.0"> | ||
<qresource> | ||
<file>geoip/GeoIP.dat</file> | ||
<file>geoip/VERSION</file> | ||
</qresource> | ||
<RCC> | ||
<qresource prefix="/" > | ||
<file>geoip/GeoIP.dat</file> | ||
</qresource> | ||
</RCC> | ||
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:https://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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters