Provide default adblock config with easylist
This commit is contained in:
parent
18ab34bdc8
commit
ec81068299
2 changed files with 12 additions and 0 deletions
2
data/extensions/adblock/config
Normal file
2
data/extensions/adblock/config
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[settings]
|
||||||
|
filters=http://adblockplus.mozdev.org/easylist/easylist.txt
|
10
wscript
10
wscript
|
@ -454,6 +454,16 @@ def build (bld):
|
||||||
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial.json')
|
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial.json')
|
||||||
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/mootools.js')
|
bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/mootools.js')
|
||||||
|
|
||||||
|
# FIXME: Determine the library naming for other platforms
|
||||||
|
if Options.platform == 'linux':
|
||||||
|
extensions = os.listdir ('data/extensions')
|
||||||
|
for extension in extensions:
|
||||||
|
folder = 'lib' + extension + '.so'
|
||||||
|
source = 'data/extensions/' + extension + '/config'
|
||||||
|
if os.path.exists (source):
|
||||||
|
bld.install_files ('${SYSCONFDIR}/' + APPNAME + \
|
||||||
|
'/extensions/' + folder, source)
|
||||||
|
|
||||||
if Options.commands['check']:
|
if Options.commands['check']:
|
||||||
bld.add_subdirs ('tests')
|
bld.add_subdirs ('tests')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue