Commit b37cb569 authored by EclipseSpark's avatar EclipseSpark
Browse files

minor fixes

parent 12d3cafb
......@@ -73,10 +73,10 @@ case $1 in
list
;;
usa)
base="http://mirrors.mit.edu/parrot/"
base="http://lug.mtu.edu/parrot/"
;;
usa2)
base="http://lug.mtu.edu/parrot/"
base="http://mirrors.mit.edu/parrot/"
;;
usa3)
base="http://mirror.jmu.edu/pub/parrot/"
......
dh_update_autotools_config
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_auto_install
dh_installdocs
dh_installchangelogs
dh_installdebconf
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
misc:Depends=debconf (>= 0.5) | debconf-2.0
misc:Pre-Depends=
/etc/apt/preferences.d/parrot-pinning
/etc/apt/sources.list.parrot
Package: apt-parrot
Version: 2.7.1
Architecture: all
Maintainer: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
Installed-Size: 57
Pre-Depends: parrot-archive-keyring, apt
Recommends: parrot-core, python-apt-common
Replaces: parrot-update-manager (<= 1.6)
Section: parrot
Priority: important
Homepage: http://www.parrotsec.org/
Description: Parrot APT repositories
this package will install an /etc/apt/sources.list file containing
all the repositories provided by FrozenBox Dev Team for Parrot OS
889ab90731f26005fdadb22a020f6307 usr/bin/parrot-mirror-selector
46c566b0ac13943513d2ccab941bc014 usr/share/doc/apt-parrot/changelog.gz
d32239bcb673463ab874e80d47fae504 usr/share/doc/apt-parrot/copyright
#!/bin/bash
set -e
#update xapian index
if [ -x "/usr/sbin/update-xapian-index" ]
then
update-apt-xapian-index -vf
fi
#install parrot repositories if missing
if ! [ -e "/etc/apt/sources.list.d/parrot.list" ]
then
parrot-mirror-selector euro3 stable nonfree
fi
if [ -e "/etc/parrot.testing" ]
then
parrot-mirror-selector euro3 testing nonfree
fi
if ! [ -e "/etc/apt/sources.list" ]
then
echo /etc/apt/sources.list.parrot > /etc/apt/sources.list
fi
#!/bin/sh
set -e
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
Package: *
Pin: release o=Parrot
Pin-Priority: 1001
Package: *
Pin: release o=Debian
Pin-Priority: 50
Package: *
Pin: release o=Kali
Pin-Priority: 50
Package: *
Pin: release o=Ubuntu
Pin-Priority: 50
Package: *
Pin: release o=archive.parrotsec.org
Pin-Priority: 50
# This file is empty, feel free to
# add here your custom APT repositories
# The standard Parrot repositories
# are NOT here. If you want to
# edit them, take a look into
# /etc/apt/sources.list.d/parrot.list
# If you want to change the
# default parrot repositories by selectng
# another localized mirror,
# then use the command
# parrot-mirror-selector
#
# and see its usage message to
# know what mirrors are available
apt-parrot/usr/bin/parrot-mirror-selector
\ No newline at end of file
#!/bin/bash
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 - michigan (LUG MTU)
usa2 - 1 Gbps - north america - massachussetts (SIPB MIT)
usa3 - 1 Gbps - north america - virginia (JMU)
usa4 - 1 Gbps - north america - new york (CLARKSON)
euro - 10 Gbps - europe - italy (GARR)
euro2 - 250 Mbps - europe - france (FROZENBOX)
euro3 - 20 Gbps - europe - germany (RWTH-AACHEN)
euro4 - 1 Gbps - europe - italy (dasaweb)
asia - 1 Gbps - asia - russia (YANDEX)
asia2 - 1 Gbps - asia - bangladesh (DHAKACOM)
asia3 - 250 Mbps - asia - china (YFGAO)
sam - 100 Mbps - south america - ecuador (CEDIA)
sam2 - 100 Mbps - south america - ecuador (ESPOCH)
sam3 - 100 Mbps - south america - ecuador (UTA)
meast - 1 Gpbs - middle east - iran (ASIS)
ocean - 1 Gbps - oceania - new caledonia (LAGOON)
BRANCHES
current supported branches are
stable | parrot - our stable archive
testing | parrot-teting - our development tree
AREAS
current supported parameters are
free - includes only the main area
nonfree - includes main contrib non-free
USAGE
parrot-mirror-selector <mirror> [branch] [archive area]
EXAMPLE
parrot-mirror-selector asia stable free
"
}
branch="parrot"
case $2 in
stable)
branch="parrot"
;;
testing)
branch="testing"
;;
parrot)
branch="parrot"
;;
parrot-testing)
branch="testing"
;;
esac
areas="main contrib non-free"
case $3 in
free)
areas="main contrib non-free"
;;
nonfree)
areas="main"
;;
esac
case $1 in
list)
list
;;
usa)
base="http://lug.mtu.edu/parrot/"
;;
usa2)
base="http://mirrors.mit.edu/parrot/"
;;
usa3)
base="http://mirror.jmu.edu/pub/parrot/"
;;
usa4)
base="http://mirror.clarkson.edu/parrot/"
;;
euro)
base="http://eu.archive.parrotsec.org/mirrors/parrot/"
;;
euro2)
base="http://eu2.archive.parrotsec.org/parrot/"
;;
euro3)
base="http://euro3.archive.parrotsec.org/parrotsec/"
;;
euro4)
base="http://parrot.dasaweb.net/"
;;
asia)
base="http://asia.archive.parrotsec.org/mirrors/parrot/"
;;
asia2)
base="http://asia2.archive.parrotsec.org/parrotsec/"
;;
asia3)
base="http://mirrors.yfgao.net/parrot/"
;;
sam)
base="http://cedia.archive.parrotsec.org/parrot/"
;;
sam2)
base="http://espoch.archive.parrotsec.org/parrot/"
;;
sam3)
base="http://uta.archive.parrotsec.org/parrot/"
;;
meast)
base="http://parrot.asis.io/parrot/"
;;
ocean)
base="http://mirror.lagoon.nc/pub/parrot/"
;;
*)
list
;;
esac
if [ "$base" != "" ]; then
if [ "$branch" != "" ]; then
if [ "$areas" != "" ]; then
echo "# parrot repository" > /etc/apt/sources.list.d/parrot.list
echo "# this file was automatically generated by parrot-mirror-selector" >> /etc/apt/sources.list.d/parrot.list
echo "deb $base $branch $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb-src $base $branch $areas" >> /etc/apt/sources.list.d/parrot.list
fi
fi
fi
Supports Markdown
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