add iron scripts
This commit is contained in:
parent
221a95032e
commit
23a8d75133
68
scripts/iron/adblock-iron-generator.sh
Normal file
68
scripts/iron/adblock-iron-generator.sh
Normal file
@ -0,0 +1,68 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Fanboy Adblock Iron Convert script v1.0 (15/05/2011)
|
||||
# Dual License CCby3.0/GPLv2
|
||||
# http://creativecommons.org/licenses/by/3.0/
|
||||
# http://www.gnu.org/licenses/gpl-2.0.html
|
||||
#
|
||||
|
||||
# Creating a 10Mb ramdisk Temp storage...
|
||||
#
|
||||
if [ ! -d "/tmp/iron/" ]; then
|
||||
rm -rf /tmp/iron/
|
||||
mkdir /tmp/iron; chmod 777 /tmp/iron
|
||||
mount -t tmpfs -o size=10M tmpfs /tmp/iron/
|
||||
fi
|
||||
|
||||
# Variables
|
||||
#
|
||||
MAINDIR="/var/www/adblock/opera"
|
||||
IRONDIR="/var/www/adblock/iron"
|
||||
GOOGLEDIR="/home/fanboy/google/fanboy-adblock-list"
|
||||
ZIP="/usr/local/bin/7za"
|
||||
TESTDIR="/tmp/iron"
|
||||
|
||||
|
||||
# Split the Opera-specific stuff off... into its own list
|
||||
#
|
||||
sed -n '/exclude]/,/Wildcards/{/Wildcards/!p}' $MAINDIR/urlfilter.ini > $TESTDIR/urlfilter2.ini
|
||||
sed -n '/Stats list (Opera)/,/Wildcards/{/Wildcards/!p}' $MAINDIR/complete/urlfilter.ini > $TESTDIR/urlfilter3.ini
|
||||
sed -n '/Russian-addon/,/Wildcards/{/Wildcards/!p}' $MAINDIR/rus/urlfilter.ini > $TESTDIR/urlfilter4.ini
|
||||
|
||||
# remove the top line
|
||||
#
|
||||
sed '1d' $TESTDIR/urlfilter2.ini > $TESTDIR/urlfilter.ini
|
||||
sed '1d' $TESTDIR/urlfilter3.ini > $TESTDIR/urlfilter-stats.ini
|
||||
sed '1d' $TESTDIR/urlfilter4.ini > $TESTDIR/urlfilter-rus.ini
|
||||
|
||||
# remove # from the file
|
||||
#
|
||||
sed '/^\#/d' $TESTDIR/urlfilter.ini > $TESTDIR/urlfilter2.ini
|
||||
sed '/^\#/d' $TESTDIR/urlfilter-stats.ini > $TESTDIR/urlfilter-stats2.ini
|
||||
cat $IRONDIR/header.txt $TESTDIR/urlfilter2.ini > $TESTDIR/adblock.ini
|
||||
# Merge with tracking
|
||||
cat $TESTDIR/adblock.ini $TESTDIR/urlfilter-stats2.ini > $TESTDIR/adblock-stats.ini
|
||||
|
||||
|
||||
# remove any blank lines
|
||||
#
|
||||
sed '/^$/d' $TESTDIR/adblock.ini > $TESTDIR/adblock2.ini
|
||||
sed '/^$/d' $TESTDIR/adblock-stats.ini > $TESTDIR/adblock2-stats.ini
|
||||
|
||||
#
|
||||
# remove any wildcards
|
||||
#
|
||||
tr -d '*' <$TESTDIR/adblock2.ini >$IRONDIR/adblock.ini
|
||||
tr -d '*' <$TESTDIR/adblock2-stats.ini >$IRONDIR/complete/adblock.ini
|
||||
|
||||
# Checksum the file (Done)
|
||||
#
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/adblock.ini
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/complete/adblock.ini
|
||||
rm $IRONDIR/adblock.ini.gz
|
||||
rm $IRONDIR/complete/adblock.ini.gz
|
||||
|
||||
# echo "adblock.ini copied" > /dev/null
|
||||
#
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/adblock.ini.gz $IRONDIR/adblock.ini > /dev/null
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/complete/adblock.ini.gz $IRONDIR/complete/adblock.ini > /dev/null
|
65
scripts/iron/czech-iron-generator.sh
Normal file
65
scripts/iron/czech-iron-generator.sh
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Fanboy Adblock Iron Convert script (czech) v1.0 (15/05/2011)
|
||||
# Dual License CCby3.0/GPLv2
|
||||
# http://creativecommons.org/licenses/by/3.0/
|
||||
# http://www.gnu.org/licenses/gpl-2.0.html
|
||||
#
|
||||
|
||||
# Creating a 10Mb ramdisk Temp storage...
|
||||
#
|
||||
if [ ! -d "/tmp/iron/" ]; then
|
||||
rm -rf /tmp/iron/
|
||||
mkdir /tmp/iron; chmod 777 /tmp/iron
|
||||
mount -t tmpfs -o size=10M tmpfs /tmp/iron/
|
||||
fi
|
||||
|
||||
# Variables
|
||||
#
|
||||
MAINDIR="/var/www/adblock/opera"
|
||||
IRONDIR="/var/www/adblock/iron"
|
||||
GOOGLEDIR="/home/fanboy/google/fanboy-adblock-list"
|
||||
ZIP="/usr/local/bin/7za"
|
||||
TESTDIR="/tmp/iron"
|
||||
|
||||
# Split the Opera-specific stuff off... into its own list
|
||||
#
|
||||
sed -n '/cz-addon/,/Wildcards/{/Wildcards/!p}' $MAINDIR/cz/urlfilter.ini > $TESTDIR/urlfilter4.ini
|
||||
|
||||
# remove the top line
|
||||
#
|
||||
sed '1d' $TESTDIR/urlfilter4.ini > $TESTDIR/urlfilter-cz.ini
|
||||
|
||||
# remove # from the file
|
||||
#
|
||||
sed '/^\#/d' $TESTDIR/urlfilter-cz.ini > $TESTDIR/urlfilter-cz2.ini
|
||||
|
||||
# Merge with main
|
||||
#
|
||||
cat $IRONDIR/adblock.ini $TESTDIR/urlfilter-cz2.ini > $TESTDIR/adblock-cz.ini
|
||||
|
||||
# Merge with tracking
|
||||
#
|
||||
cat $IRONDIR/complete/adblock.ini $TESTDIR/adblock-cz.ini > $TESTDIR/adblock-cz-stats.ini
|
||||
|
||||
# remove any blank lines
|
||||
#
|
||||
sed '/^$/d' $TESTDIR/adblock-cz.ini > $TESTDIR/adblock-cz2.ini
|
||||
sed '/^$/d' $TESTDIR/adblock-cz-stats.ini > $TESTDIR/adblock-cz-stats2.ini
|
||||
|
||||
# remove any wildcards
|
||||
#
|
||||
tr -d '*' <$TESTDIR/adblock-cz2.ini >$IRONDIR/cz/adblock.ini
|
||||
tr -d '*' <$TESTDIR/adblock-cz-stats2.ini >$IRONDIR/cz/complete/adblock.ini
|
||||
|
||||
# Checksum the file (Done)
|
||||
#
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/cz/adblock.ini
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/cz/complete/adblock.ini
|
||||
rm $IRONDIR/cz/adblock.ini.gz
|
||||
rm $IRONDIR/cz/complete/adblock.ini.gz
|
||||
|
||||
# Zip up files..
|
||||
#
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/cz/adblock.ini.gz $IRONDIR/cz/adblock.ini > /dev/null
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/cz/complete/adblock.ini.gz $IRONDIR/cz/complete/adblock.ini > /dev/null
|
65
scripts/iron/espanol-iron-generator.sh
Normal file
65
scripts/iron/espanol-iron-generator.sh
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Fanboy Adblock Iron Convert script (espanol) v1.0 (15/05/2011)
|
||||
# Dual License CCby3.0/GPLv2
|
||||
# http://creativecommons.org/licenses/by/3.0/
|
||||
# http://www.gnu.org/licenses/gpl-2.0.html
|
||||
#
|
||||
|
||||
# Creating a 10Mb ramdisk Temp storage...
|
||||
#
|
||||
if [ ! -d "/tmp/iron/" ]; then
|
||||
rm -rf /tmp/iron/
|
||||
mkdir /tmp/iron; chmod 777 /tmp/iron
|
||||
mount -t tmpfs -o size=10M tmpfs /tmp/iron/
|
||||
fi
|
||||
|
||||
# Variables
|
||||
#
|
||||
MAINDIR="/var/www/adblock/opera"
|
||||
IRONDIR="/var/www/adblock/iron"
|
||||
GOOGLEDIR="/home/fanboy/google/fanboy-adblock-list"
|
||||
ZIP="/usr/local/bin/7za"
|
||||
TESTDIR="/tmp/iron"
|
||||
|
||||
# Split the Opera-specific stuff off... into its own list
|
||||
#
|
||||
sed -n '/Portuguese-addon/,/Wildcards/{/Wildcards/!p}' $MAINDIR/esp/urlfilter.ini > $TESTDIR/urlfilter4.ini
|
||||
|
||||
# remove the top line
|
||||
#
|
||||
sed '1d' $TESTDIR/urlfilter4.ini > $TESTDIR/urlfilter-esp.ini
|
||||
|
||||
# remove # from the file
|
||||
#
|
||||
sed '/^\#/d' $TESTDIR/urlfilter-esp.ini > $TESTDIR/urlfilter-esp2.ini
|
||||
|
||||
# Merge with main
|
||||
#
|
||||
cat $IRONDIR/adblock.ini $TESTDIR/urlfilter-esp2.ini > $TESTDIR/adblock-esp.ini
|
||||
|
||||
# Merge with tracking
|
||||
#
|
||||
cat $IRONDIR/complete/adblock.ini $TESTDIR/adblock-esp.ini > $TESTDIR/adblock-esp-stats.ini
|
||||
|
||||
# remove any blank lines
|
||||
#
|
||||
sed '/^$/d' $TESTDIR/adblock-esp.ini > $TESTDIR/adblock-esp2.ini
|
||||
sed '/^$/d' $TESTDIR/adblock-esp-stats.ini > $TESTDIR/adblock-esp-stats2.ini
|
||||
|
||||
# remove any wildcards
|
||||
#
|
||||
tr -d '*' <$TESTDIR/adblock-esp2.ini >$IRONDIR/esp/adblock.ini
|
||||
tr -d '*' <$TESTDIR/adblock-esp-stats2.ini >$IRONDIR/esp/complete/adblock.ini
|
||||
|
||||
# Checksum the file (Done)
|
||||
#
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/esp/adblock.ini
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/esp/complete/adblock.ini
|
||||
rm $IRONDIR/esp/adblock.ini.gz
|
||||
rm $IRONDIR/esp/complete/adblock.ini.gz
|
||||
|
||||
# Zip up files..
|
||||
#
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/esp/adblock.ini.gz $IRONDIR/esp/adblock.ini > /dev/null
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/esp/complete/adblock.ini.gz $IRONDIR/esp/complete/adblock.ini > /dev/null
|
65
scripts/iron/japanese-iron-generator.sh
Normal file
65
scripts/iron/japanese-iron-generator.sh
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Fanboy Adblock Iron Convert script (japanese) v1.0 (15/05/2011)
|
||||
# Dual License CCby3.0/GPLv2
|
||||
# http://creativecommons.org/licenses/by/3.0/
|
||||
# http://www.gnu.org/licenses/gpl-2.0.html
|
||||
#
|
||||
|
||||
# Creating a 10Mb ramdisk Temp storage...
|
||||
#
|
||||
if [ ! -d "/tmp/iron/" ]; then
|
||||
rm -rf /tmp/iron/
|
||||
mkdir /tmp/iron; chmod 777 /tmp/iron
|
||||
mount -t tmpfs -o size=10M tmpfs /tmp/iron/
|
||||
fi
|
||||
|
||||
# Variables
|
||||
#
|
||||
MAINDIR="/var/www/adblock/opera"
|
||||
IRONDIR="/var/www/adblock/iron"
|
||||
GOOGLEDIR="/home/fanboy/google/fanboy-adblock-list"
|
||||
ZIP="/usr/local/bin/7za"
|
||||
TESTDIR="/tmp/iron"
|
||||
|
||||
# Split the Opera-specific stuff off... into its own list
|
||||
#
|
||||
sed -n '/Japanese-addon/,/Wildcards/{/Wildcards/!p}' $MAINDIR/jpn/urlfilter.ini > $TESTDIR/urlfilter4.ini
|
||||
|
||||
# remove the top line
|
||||
#
|
||||
sed '1d' $TESTDIR/urlfilter4.ini > $TESTDIR/urlfilter-jpn.ini
|
||||
|
||||
# remove # from the file
|
||||
#
|
||||
sed '/^\#/d' $TESTDIR/urlfilter-jpn.ini > $TESTDIR/urlfilter-jpn2.ini
|
||||
|
||||
# Merge with main
|
||||
#
|
||||
cat $IRONDIR/adblock.ini $TESTDIR/urlfilter-jpn2.ini > $TESTDIR/adblock-jpn.ini
|
||||
|
||||
# Merge with tracking
|
||||
#
|
||||
cat $IRONDIR/complete/adblock.ini $TESTDIR/adblock-jpn.ini > $TESTDIR/adblock-jpn-stats.ini
|
||||
|
||||
# remove any blank lines
|
||||
#
|
||||
sed '/^$/d' $TESTDIR/adblock-jpn.ini > $TESTDIR/adblock-jpn2.ini
|
||||
sed '/^$/d' $TESTDIR/adblock-jpn-stats.ini > $TESTDIR/adblock-jpn-stats2.ini
|
||||
|
||||
# remove any wildcards
|
||||
#
|
||||
tr -d '*' <$TESTDIR/adblock-jpn2.ini >$IRONDIR/jpn/adblock.ini
|
||||
tr -d '*' <$TESTDIR/adblock-jpn-stats2.ini >$IRONDIR/jpn/complete/adblock.ini
|
||||
|
||||
# Checksum the file (Done)
|
||||
#
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/jpn/adblock.ini
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/jpn/complete/adblock.ini
|
||||
rm $IRONDIR/jpn/adblock.ini.gz
|
||||
rm $IRONDIR/jpn/complete/adblock.ini.gz
|
||||
|
||||
# Zip up files..
|
||||
#
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/jpn/adblock.ini.gz $IRONDIR/jpn/adblock.ini > /dev/null
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/jpn/complete/adblock.ini.gz $IRONDIR/jpn/complete/adblock.ini > /dev/null
|
65
scripts/iron/russian-iron-generator.sh
Normal file
65
scripts/iron/russian-iron-generator.sh
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Fanboy Adblock Iron Convert script (russian) v1.0 (15/05/2011)
|
||||
# Dual License CCby3.0/GPLv2
|
||||
# http://creativecommons.org/licenses/by/3.0/
|
||||
# http://www.gnu.org/licenses/gpl-2.0.html
|
||||
#
|
||||
|
||||
# Creating a 10Mb ramdisk Temp storage...
|
||||
#
|
||||
if [ ! -d "/tmp/iron/" ]; then
|
||||
rm -rf /tmp/iron/
|
||||
mkdir /tmp/iron; chmod 777 /tmp/iron
|
||||
mount -t tmpfs -o size=10M tmpfs /tmp/iron/
|
||||
fi
|
||||
|
||||
# Variables
|
||||
#
|
||||
MAINDIR="/var/www/adblock/opera"
|
||||
IRONDIR="/var/www/adblock/iron"
|
||||
GOOGLEDIR="/home/fanboy/google/fanboy-adblock-list"
|
||||
ZIP="/usr/local/bin/7za"
|
||||
TESTDIR="/tmp/iron"
|
||||
|
||||
# Split the Opera-specific stuff off... into its own list
|
||||
#
|
||||
sed -n '/Russian-addon/,/Wildcards/{/Wildcards/!p}' $MAINDIR/rus/urlfilter.ini > $TESTDIR/urlfilter4.ini
|
||||
|
||||
# remove the top line
|
||||
#
|
||||
sed '1d' $TESTDIR/urlfilter4.ini > $TESTDIR/urlfilter-rus.ini
|
||||
|
||||
# remove # from the file
|
||||
#
|
||||
sed '/^\#/d' $TESTDIR/urlfilter-rus.ini > $TESTDIR/urlfilter-rus2.ini
|
||||
|
||||
# Merge with main
|
||||
#
|
||||
cat $IRONDIR/adblock.ini $TESTDIR/urlfilter-rus2.ini > $TESTDIR/adblock-rus.ini
|
||||
|
||||
# Merge with tracking
|
||||
#
|
||||
cat $IRONDIR/complete/adblock.ini $TESTDIR/adblock-rus.ini > $TESTDIR/adblock-rus-stats.ini
|
||||
|
||||
# remove any blank lines
|
||||
#
|
||||
sed '/^$/d' $TESTDIR/adblock-rus.ini > $TESTDIR/adblock-rus2.ini
|
||||
sed '/^$/d' $TESTDIR/adblock-rus-stats.ini > $TESTDIR/adblock-rus-stats2.ini
|
||||
|
||||
# remove any wildcards
|
||||
#
|
||||
tr -d '*' <$TESTDIR/adblock-rus2.ini >$IRONDIR/rus/adblock.ini
|
||||
tr -d '*' <$TESTDIR/adblock-rus-stats2.ini >$IRONDIR/rus/complete/adblock.ini
|
||||
|
||||
# Checksum the file (Done)
|
||||
#
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/rus/adblock.ini
|
||||
perl $IRONDIR/addChecksum-opera.pl $IRONDIR/rus/complete/adblock.ini
|
||||
rm $IRONDIR/rus/adblock.ini.gz
|
||||
rm $IRONDIR/rus/complete/adblock.ini.gz
|
||||
|
||||
# Zip up files..
|
||||
#
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/rus/adblock.ini.gz $IRONDIR/rus/adblock.ini > /dev/null
|
||||
$ZIP a -mx=9 -y -tgzip $IRONDIR/rus/complete/adblock.ini.gz $IRONDIR/rus/complete/adblock.ini > /dev/null
|
Loading…
x
Reference in New Issue
Block a user