Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
packages
parrot
apt-parrot
Commits
3ae02c0b
Commit
3ae02c0b
authored
Nov 20, 2016
by
Lorenzo "Palinuro" Faletra
Browse files
add new mirrors and change package structure
parent
54bbdbd1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
3ae02c0b
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
debian/apt-parrot.postinst
View file @
3ae02c0b
...
...
@@ -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"
]
...
...
debian/changelog
View file @
3ae02c0b
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
...
...
debian/config
deleted
100644 → 0
View file @
54bbdbd1
/etc/apt/sources.list
debian/control
View file @
3ae02c0b
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: http
s
://www.parrotsec.org/
Package: apt-parrot
Architecture: all
...
...
apt-parrot/usr/bin/
parrot-mirror-selector
→
parrot-mirror-selector
View file @
3ae02c0b
...
...
@@ -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/"
;;
usa
2
)
base
=
"http://
lug.mtu
.edu/parrot/"
2
)
base
=
"http://
mirrors.ocf.berkeley
.edu/parrot/"
;;
usa
3
)
3
)
base
=
"http://mirror.jmu.edu/pub/parrot/"
;;
usa
4
)
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://
w
ar
wick
-euro.archive.parrotsec.org/mirrors/parrot/"
9
)
base
=
"http://
g
ar
r
-euro.archive.parrotsec.org/mirrors/parrot/"
;;
euro5
)
base
=
"http://
nluug
-euro.archive.parrotsec.org/
os/Linux/distr/parrot
/"
10
)
base
=
"http
s
://
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/
M
irrors/
archive.parrotsec.org
/"
15
)
base
=
"http://
onet
-euro.archive.parrotsec.org/pub/
m
irrors/
parrot
/"
;;
euro10
)
base
=
"http://
dasa1-euro.archive.parrotsec.
or
g
/parrot
/
"
16
)
base
=
"http
s
://
fr.mirror.babylon.netw
or
k
/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
/parrot
sec
/"
18
)
base
=
"http://
ftp.cc.uoc.gr/mirrors/linux
/parrot/"
;;
asia3
)
base
=
"http://
free.nch
c.org
.tw
/parrot
/
"
19
)
base
=
"http://
dasa2-euro.archive.parrotse
c.org/parrot"
;;
asia4
)
base
=
"http://
mirror.0x.s
g/parrot
/
"
20
)
base
=
"http://
dasa1-euro.archive.parrotsec.or
g/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.or
g/parrot/"
23
)
base
=
"http://
mirror.0x.s
g/parrot/"
;;
sam
2
)
base
=
"http://
uta-sam.archive.parrotsec.org
/parrot/"
2
4
)
base
=
"http
s
://
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
apt-parrot/etc/apt/
preferences.d/parrot-pinning
→
preferences.d/parrot-pinning
View file @
3ae02c0b
File moved
apt-parrot/etc/apt/
sources.list.parrot
→
sources.list.parrot
View file @
3ae02c0b
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment