#!/bin/bash
ISOFILE=$2
PATH=$1
echo "creating torrent for $ISOFILE"

/usr/bin/mktorrent \
-a https://tracker.parrot.sh/announce,https://wolf.parrotsec.io/announce \
-a https://tracker2.parrot.sh/announce,https://wolf2.parrot.sh/announce \
-a https://ashrise.com:443/phoenix/announce \
-a udp://open.demonii.com:1337/announce \
-a udp://tracker.ccc.de:80/announce \
-a udp://tracker.openbittorrent.com:80/announce \
-a udp://tracker.publicbt.com:80/announce \
-a udp://ipv4.tracker.harry.lu:80/announce,udp://ipv6.tracker.harry.lu:80/announce \
-a udp://tracker.coppersurfer.tk:6969/announce \
-c "Parrot Security OS official torrent - don't seed it if an updated version is available. for security reasons we don't want old releases to be seeded." \
-w \
https://ftp-stud.hs-esslingen.de/Mirrors/archive.parrotsec.org/$PATH/$ISOFILE,\
https://ftp.halifax.rwth-aachen.de/parrotsec/$PATH/$ISOFILE,\
https://ftp.nluug.nl/os/Linux/distr/parrot/$PATH/$ISOFILE,\
https://netix.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
https://mirrors.dotsrc.org/parrot/$PATH/$ISOFILE,\
http://matojo.unizar.es/parrot/$PATH/$ISOFILE,\
https://ftp.cc.uoc.gr/mirrors/linux/parrot/$PATH/$ISOFILE,\
http://turkey.archive.parrotsec.org/parrot/$PATH/$ISOFILE,\
https://parrotsec.volia.net/$PATH/$ISOFILE,\
https://mirrors.up.pt/parrot/$PATH/$ISOFILE,\
https://mirror.yandex.ru/mirrors/$PATH/$ISOFILE,\
https://parrot.mirror.garr.it/mirrors/parrot/$PATH/$ISOFILE,\
http://parrot.asis.io/$PATH/$ISOFILE,\
http://download2.nust.na/pub4/sourceforge/p/pa/parrotsecurity/$PATH/$ISOFILE,\
http://mirror.amberit.com.bd/parrotsec/$PATH/$ISOFILE,\
http://mirrors.mit.edu/parrot/$PATH/$ISOFILE,\
http://sft.if.usp.br/parrot/$PATH/$ISOFILE,\
https://mirror.clarkson.edu/parrot/$PATH/$ISOFILE,\
https://mirror.kku.ac.th/parrot/$PATH/$ISOFILE,\
https://mirror.cedia.org.ec/parrot/$PATH/$ISOFILE,\
https://mirror.ueb.edu.ec/parrot/$PATH/$ISOFILE,\
https://mirror.0x.sg/parrot/$PATH/$ISOFILE,\
https://mirrors.tuna.tsinghua.edu.cn/parrot/$PATH/$ISOFILE,\
https://mirrors.ustc.edu.cn/parrot/$PATH/$ISOFILE,\
https://mirrors.shu.edu.cn/parrot/$PATH/$ISOFILE,\
http://free.nchc.org.tw/parrot/$PATH/$ISOFILE,\
https://mirrors.ocf.berkeley.edu/parrot/$PATH/$ISOFILE,\
http://mirror.lagoon.nc/pub/parrot/$PATH/$ISOFILE,\
https://archive.parrotsec.org/parrot/$PATH/$ISOFILE,\
\
http://astuteinternet.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://ayera.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://cfhcable.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://cytranet.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://datapacket.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://excellmedia.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://freefr.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://iweb.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://jaist.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://kent.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://liquidtelecom.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://netcologne.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://netix.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://phoenixnap.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://razaoinfo.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://svwh.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://tenet.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://ufpr.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
http://vorboss.dl.sourceforge.net/project/parrotsecurity/$PATH/$ISOFILE,\
 -l 20 $ISOFILE
