Commit 3cd4c337 authored by EclipseSpark's avatar EclipseSpark
Browse files

fixed symlink generation

parent a5226ff9
......@@ -9,7 +9,6 @@ clean:
install:
chmod -R 0644 $(PACKAGE)/*
chmod 755 $(PACKAGE)/usr/bin/parrot-mirror-selector
ln -s $(PACKAGE)/usr/bin/parrot-mirror-selector $(PACKAGE)/usr/bin/parrot-mirror
chown root:root $(PACKAGE)/*
cp -rf $(PACKAGE)/* $(DESTDIR)/
......@@ -3,3 +3,17 @@ 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.6
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
8a8e38eb042dfab9eaff4db9fbd47313 usr/bin/parrot-mirror-selector
b3d6e339d69abffb6e1dcfeaf7e226d4 usr/share/doc/apt-parrot/changelog.gz
d32239bcb673463ab874e80d47fae504 usr/share/doc/apt-parrot/copyright
#!/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 - our stable archive
testing - 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="stable"
case $2 in
stable)
branch="stable"
;;
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://mirrors.mit.edu/parrot/"
;;
usa2)
base="http://lug.mtu.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.parrotec.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
apt-parrot_2.6_all.deb parrot important
......@@ -12,8 +12,8 @@ Build-Depends-Indep: pkg-config
Package-List:
apt-parrot deb parrot important arch=all
Checksums-Sha1:
1d4a659d49863dee2957545d739e034f4a8edfaf 13736 apt-parrot_2.6.tar.xz
200d87b75d90622cf757b051b357a63bbee83956 13720 apt-parrot_2.6.tar.xz
Checksums-Sha256:
e83b86faf275a1a52aed99c36d44ff40a3b4985167393c0a4bda485031a4baa0 13736 apt-parrot_2.6.tar.xz
6c64f6c6a49347ef89381a5f1f2ec699113e48d81608e08d38b12a2814d72773 13720 apt-parrot_2.6.tar.xz
Files:
9179c350c99b1a63f0d653ba20a0bed3 13736 apt-parrot_2.6.tar.xz
4d9b461282bdffc373a399efdce92ac0 13720 apt-parrot_2.6.tar.xz
No preview for this file type
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