Commit 3ae02c0b authored by Lorenzo "Palinuro" Faletra's avatar Lorenzo "Palinuro" Faletra
Browse files

add new mirrors and change package structure

parent 54bbdbd1
PACKAGE=apt-parrot
INSTALL=install -m 0644
all:
clean:
install:
chmod -R 0644 $(PACKAGE)/*
chmod 755 $(PACKAGE)/usr/bin/parrot-mirror-selector
chown root:root $(PACKAGE)/*
cp -rf $(PACKAGE)/* $(DESTDIR)/
mkdir -p $(DESTDIR)/etc/apt/{preferences.d,sources.list.d}
mkdir -p $(DESTDIR)/usr/bin
cp preferences.d/parrot-pinning $(DESTDIR)/etc/apt/preferences.d/parrot-pinning
cp sources.list.parrot $(DESTDIR)/etc/apt/sources.list.parrot
cp parrot-mirror-selector $(DESTDIR)/usr/bin/parrot-mirror-selector
chown root:root $(DESTDIR)/etc/apt/sources.list.parrot
chmod 644 $(DESTDIR)/etc/apt/sources.list.parrot
chown root:root $(DESTDIR)/etc/apt/preferences.d/parrot-pinning
chmod 644 $(DESTDIR)/etc/apt/preferences.d/parrot-pinning
chown root:root $(DESTDIR)/usr/bin/parrot-mirror-selector
chmod 755 $(DESTDIR)/usr/bin/parrot-mirror-selector
......@@ -15,12 +15,12 @@ fi
if ! [ -e "/etc/apt/sources.list.d/parrot.list" ]
then
parrot-mirror-selector euro5 stable nonfree
parrot-mirror-selector 12 stable nonfree
fi
if [ -e "/etc/parrot.testing" ]
then
parrot-mirror-selector euro3 testing nonfree
parrot-mirror-selector 8 testing nonfree
fi
if ! [ -e "/etc/apt/sources.list" ]
......
apt-parrot (2.7.6+parrot1) testing; urgency=medium
[ Lisetta "Sheireen" Ferrero ]
* add https transport
* add tor transport
[ Lorenzo "Palinuro" Faletra ]
-- Lisetta "Sheireen" Ferrero <sheireen@autistiche.org> Sun, 28 Aug 2016 20:56:15 +0400
apt-parrot (2.7.6+parrot0) testing; urgency=medium
......
/etc/apt/sources.list
Source: apt-parrot
Section: parrot
Priority: required
Maintainer: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
Uploaders: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>,
Lisetta "Sheireen" Ferrero <sheireen@frozenbox.org>
Maintainer: Parrot Dev Team <parrot-devel@lists.parrotsec.org>
Uploaders: Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org>,
Lisetta "Sheireen" Ferrero <sheireen@parrotsec.org>
Standards-Version: 3.9.8
Build-Depends: debhelper (>= 9)
Build-Depends-Indep: pkg-config
Homepage: http://www.parrotsec.org/
Homepage: https://www.parrotsec.org/
Package: apt-parrot
Architecture: all
......
......@@ -4,35 +4,44 @@ function list() {
echo -e "Parrot Mirror Selector - set up the APT mirror you desire
MIRRORS
codename - speed - region - country (provider)
usa - 1 Gbps - north america - massachussetts (SIPB MIT)
usa2 - 1 Gbps - north america - michigan (LUG MTU)
usa3 - 1 Gbps - north america - virginia (JMU)
usa4 - 1 Gbps - north america - new york (CLARKSON)
usa5 - 1 Gbps - north america - california (BERKELEY)
euro - 10 Gbps - europe - italy (GARR)
euro2 - 250 Mbps - europe - france (FROZENBOX)
euro3 - 20 Gbps - europe - germany (RWTH-AACHEN)
euro4 - 1 Gbps - europe - england (WARWICK)
euro5 - 10 Gbps - europe - netherland (NLUUG)
euro6 - 10 Gbps - europe - poland (ONET)
euro7 - 10 Gbps - europe - sweden (UMU)
euro8 - 10 Gbps - europe - ireland (HEANET)
euro9 - 10 Gbps - europe - germany (ESSLINGEN)
euro10 - 250 Mbps - europe - france (DASAWEB)
asia - 1 Gbps - asia - russia (YANDEX)
asia2 - 1 Gbps - asia - bangladesh (AMBERIT)
asia3 - 10 Gbps - asia - taiwan (NCHC)
asia4 - 10 Gbps - asia - singapore (0x)
asia5 - 1 Gbps - asia - china (USTC)
asia6 - 2 Gbps - asia - china (TUNA)
sam - 100 Mbps - south america - ecuador (CEDIA)
sam2 - 100 Mbps - south america - ecuador (UTA)
meast - 1 Gpbs - middle east - iran (ASIS)
ocean - 1 Gbps - oceania - new caledonia (LAGOON)
africa - 100 Mbps - africa - tanzania (APTUS)
cf - (edge cache) - Global Delivery Network (CLOUDFLARE)
ID - region - country - speed - provider
1 - North America - Massachussetts - 1 Gbps - SIPB MIT
2 - North America - California - 1 Gbps - Berkeley
3 - North America - Virginia - 1 Gbps - JMU
4 - North America - New York - 1 Gbps - Clarkson
5 - South America - Ecuador - 100 Mbps - CEDIA
6 - South America - Ecuador - 100 Mbps - UTA
7 - South America - Ecuador - 100 Mbps - UEB
8 - Europe - Germany - 20 Gbps - Halifax RWTH-Aachen
9 - Europe - Italy - 10 Gbps - GARR Consortium
10 - Europe - Germany - 10 Gbps - Esslingen University
11 - Europe - Netherlands - 10 Gbps - Nluug
12 - Europe - Netherlands - 10 Gbps - Babylon.network
13 - Europe - Sweden - 10 Gbps - Umea University (ACC UMU)
14 - Europe - Ireland - 10 Gbps - Heanet
15 - Europe - Poland - 10 Gbps - Onet
16 - Europe - France - 10 Gbps - Babylon.network
17 - Europe - United Kingdom - 1 Gbps - Warwick University
18 - Europe - Greece - 1 Gbps - University of Crete
19 - Europe - Germany - 1 Gbps - Dasaweb eu2
20 - Europe - France - 250 Mbps - Dasaweb eu1
21 - Europe - France - 250 Mbps - Frozenbox
22 - Asia - Taiwan - 10 Gbps - NCHC
23 - Asia - Singapore - 10 Gbps - 0x
24 - Asia - China - 2 Gbps - TUNA Tsinghua
25 - Asia - China - 1 Gbps - USTC
26 - Asia - Russia - 1 Gbps - Yandex
27 - Asia - Bangladesh - 1 Gbps - Amberit (Dhakacom)
28 - Oceania - New Caledonia - 1 Gbps - Lagoon
29 - Middle East - Iran - 1 Gbps - ASIS
0 - Global Distributed CDN - edge cache - Cloudflare
BRANCHES
current supported branches are
......@@ -46,10 +55,10 @@ AREAS
nonfree - includes main contrib non-free
USAGE
parrot-mirror-selector <mirror> [branch] [archive area]
parrot-mirror-selector <ID> [branch] [archive area]
EXAMPLE
parrot-mirror-selector asia stable free
parrot-mirror-selector 0 stable free
"
}
......@@ -84,90 +93,102 @@ case $1 in
list)
list
;;
cf)
0)
base="http://cloudflare.archive.parrotsec.org/parrot/"
;;
usa)
1)
base="http://mit-usa.archive.parrotsec.org/parrot/"
;;
usa2)
base="http://lug.mtu.edu/parrot/"
2)
base="http://mirrors.ocf.berkeley.edu/parrot/"
;;
usa3)
3)
base="http://mirror.jmu.edu/pub/parrot/"
;;
usa4)
4)
base="http://mirror.clarkson.edu/parrot/"
;;
usa5)
base="http://mirrors.ocf.berkeley.edu/parrot/"
5)
base="http://cedia-sam.archive.parrotsec.org/parrot/"
;;
euro)
base="http://garr-euro.archive.parrotsec.org/mirrors/parrot/"
6)
base="http://uta-sam.archive.parrotsec.org/parrot/"
;;
euro2)
base="http://frozenbox-euro.archive.parrotsec.org/parrot"
7)
base="http://ueb-sam.archive.parrotsec.org/parrot/"
;;
euro3)
8)
base="http://rwth-aachen-euro.archive.parrotsec.org/parrotsec/"
;;
euro4)
base="http://warwick-euro.archive.parrotsec.org/mirrors/parrot/"
9)
base="http://garr-euro.archive.parrotsec.org/mirrors/parrot/"
;;
euro5)
base="http://nluug-euro.archive.parrotsec.org/os/Linux/distr/parrot/"
10)
base="https://esslingen-euro.archive.parrotsec.org/pub/Mirrors/archive.parrotsec.org/"
;;
euro6)
base="http://onet-euro.archive.parrotsec.org/pub/mirrors/parrot/"
11)
base="https://nl.mirror.babylon.network/parrot"
;;
12)
base="https://nl.mirror.babylon.network/parrot"
;;
euro7)
13)
base="http://umu-euro.archive.parrotsec.org/mirror/parrotsec.org/parrot/"
;;
euro8)
14)
base="http://ftp.heanet.ie/pub/parrotsec/"
;;
euro9)
base="http://esslingen-euro.archive.parrotsec.org/pub/Mirrors/archive.parrotsec.org/"
15)
base="http://onet-euro.archive.parrotsec.org/pub/mirrors/parrot/"
;;
euro10)
base="http://dasa1-euro.archive.parrotsec.org/parrot/"
16)
base="https://fr.mirror.babylon.network/parrot"
;;
asia)
base="http://yandex-asia.archive.parrotsec.org/mirrors/parrot/"
17)
base="http://warwick-euro.archive.parrotsec.org/mirrors/parrot/"
;;
asia2)
base="http://amberit-asia.archive.parrotsec.org/parrotsec/"
18)
base="http://ftp.cc.uoc.gr/mirrors/linux/parrot/"
;;
asia3)
base="http://free.nchc.org.tw/parrot/"
19)
base="http://dasa2-euro.archive.parrotsec.org/parrot"
;;
asia4)
base="http://mirror.0x.sg/parrot/"
20)
base="http://dasa1-euro.archive.parrotsec.org/parrot"
;;
asia5)
base="http://mirrors.ustc.edu.cn/parrot/"
21)
base="http://archive.parrotsec.org/parrot"
;;
asia6)
base="http://mirrors.tuna.tsinghua.edu.cn/parrot/"
22)
base="http://free.nchc.org.tw/parrot/"
;;
sam)
base="http://cedia-sam.archive.parrotsec.org/parrot/"
23)
base="http://mirror.0x.sg/parrot/"
;;
sam2)
base="http://uta-sam.archive.parrotsec.org/parrot/"
24)
base="https://mirrors.tuna.tsinghua.edu.cn/parrot/"
;;
sam3)
base="http://ueb-sam.archive.parrotsec.org/parrot/"
25)
base="http://mirrors.ustc.edu.cn/parrot/"
;;
meast)
base="http://parrot.asis.io/parrot/"
26)
base="http://yandex-asia.archive.parrotsec.org/mirrors/parrot/"
;;
ocean)
27)
base="http://amberit-asia.archive.parrotsec.org/parrotsec/"
;;
28)
base="http://lagoon-ocean.archive.parrotsec.org/pub/parrot/"
;;
africa)
base="http://mirror.aptus.co.tz/pub/parrot/"
29)
base="http://parrot.asis.io/parrot/"
;;
*)
list
;;
......@@ -183,5 +204,3 @@ if [ "$base" != "" ]; then
fi
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment