Commit d5889057 authored by EclipseSpark's avatar EclipseSpark
Browse files

Add /etc/parrot.testing check for postinst

parent 3cd4c337
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
This diff is collapsed.
......@@ -2,7 +2,7 @@ Format: 3.0 (native)
Source: apt-parrot
Binary: apt-parrot
Architecture: all
Version: 2.6
Version: 2.6.1
Maintainer: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
Uploaders: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>, Lisetta "Sheireen" Ferrero <sheireen@frozenbox.org>
Homepage: http://www.parrotsec.org/
......@@ -12,8 +12,8 @@ Build-Depends-Indep: pkg-config
Package-List:
apt-parrot deb parrot important arch=all
Checksums-Sha1:
200d87b75d90622cf757b051b357a63bbee83956 13720 apt-parrot_2.6.tar.xz
4bd4af5d2fd1b8ff8669cde1eea084b876e0a65a 13932 apt-parrot_2.6.1.tar.xz
Checksums-Sha256:
6c64f6c6a49347ef89381a5f1f2ec699113e48d81608e08d38b12a2814d72773 13720 apt-parrot_2.6.tar.xz
c004eb3ba340a0c86afe5c1feba586403a2078c56b598eb603ac8c5220d7746c 13932 apt-parrot_2.6.1.tar.xz
Files:
4d9b461282bdffc373a399efdce92ac0 13720 apt-parrot_2.6.tar.xz
21042071bd1bf7fc5fa24740bf1000c9 13932 apt-parrot_2.6.1.tar.xz
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package apt-parrot
dpkg-buildpackage: source version 2.6
dpkg-buildpackage: source distribution testing
dpkg-buildpackage: source changed by Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
dpkg-source --before-build apt-parrot-2.6
dpkg-buildpackage: host architecture amd64
dpkg-source: warning: unknown information field 'Includes' in input data in package's section of control info file
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
dpkg-source -b apt-parrot-2.6
dpkg-source: warning: unknown information field 'Includes' in input data in package's section of control info file
dpkg-source: info: using source format '3.0 (native)'
dpkg-source: info: building apt-parrot in apt-parrot_2.6.tar.xz
dpkg-source: info: building apt-parrot in apt-parrot_2.6.dsc
debian/rules build
dh build
dh_testdir
dh_update_autotools_config
dh_auto_configure
dh_auto_build
make -j1
make[1]: ingresso nella directory "/home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6"
make[1]: Nessuna operazione da eseguire per "all".
make[1]: uscita dalla directory "/home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6"
dh_auto_test
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
dh_auto_install
make -j1 install DESTDIR=/home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6/debian/apt-parrot AM_UPDATE_INFO_DIR=no
make[1]: ingresso nella directory "/home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6"
chmod -R 0644 apt-parrot/*
chmod 755 apt-parrot/usr/bin/parrot-mirror-selector
chown root:root apt-parrot/*
cp -rf apt-parrot/* /home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6/debian/apt-parrot/
make[1]: uscita dalla directory "/home/eclipse/Desktop/repo/apt-parrot/apt-parrot-2.6"
dh_installdocs
dh_installchangelogs
dh_installdebconf
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: unknown information field 'Includes' in input data in package's section of control info file
dpkg-gencontrol: warning: package apt-parrot: unused substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: generazione del pacchetto "apt-parrot" in "../apt-parrot_2.6_all.deb".
dpkg-genchanges >../apt-parrot_2.6_amd64.changes
dpkg-genchanges: warning: unknown information field 'Includes' in input data in package's section of control info file
dpkg-genchanges: including full source code in upload
dpkg-source --after-build apt-parrot-2.6
dpkg-source: warning: unknown information field 'Includes' in input data in package's section of control info file
dpkg-buildpackage: full upload; Debian-native package (full source is included)
Now running lintian...
command failed with error code 2 at /usr/share/lintian/collection/unpacked line 215.
warning: collect info unpacked about package apt-parrot failed
warning: skipping check of binary package apt-parrot
W: apt-parrot source: debhelper-but-no-misc-depends apt-parrot
W: apt-parrot source: maintainer-script-lacks-debhelper-token debian/apt-parrot.postinst
W: apt-parrot source: maintainer-also-in-uploaders
W: apt-parrot source: out-of-date-standards-version 3.9.6 (current is 3.9.7)
/bin/rm: cannot remove '/tmp/temp-lintian-lab-bZ9vEiJSia/pool/a/apt-parrot/apt-parrot_2.6_all_binary/unpacked/etc/apt': Permission denied
/bin/rm: cannot remove '/tmp/temp-lintian-lab-bZ9vEiJSia/pool/a/apt-parrot/apt-parrot_2.6_all_binary/unpacked/usr/bin': Permission denied
/bin/rm: cannot remove '/tmp/temp-lintian-lab-bZ9vEiJSia/pool/a/apt-parrot/apt-parrot_2.6_all_binary/unpacked/usr/share': Permission denied
delete_dir ($contents): No child processes at /usr/share/lintian/commands/lintian line 802.
Finished running lintian.
Format: 1.8
Date: Sat, 09 Apr 2016 16:57:01 +0200
Source: apt-parrot
Binary: apt-parrot
Architecture: source all
Version: 2.6
Distribution: testing
Urgency: high
Maintainer: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
Changed-By: Lorenzo "Palinuro" Faletra <palinuro@frozenbox.org>
Description:
apt-parrot - Parrot APT repositories
Changes:
apt-parrot (2.6) testing; urgency=high
.
* Update for Parrot 3
* Debianized package source
* Import from previous source style
Checksums-Sha1:
465cc37e5832767acaf1c35c0742766b3358dc8b 718 apt-parrot_2.6.dsc
200d87b75d90622cf757b051b357a63bbee83956 13720 apt-parrot_2.6.tar.xz
5de71a65e0f2cad0d08363f7da34b2e50e7e729b 14216 apt-parrot_2.6_all.deb
Checksums-Sha256:
699558ca3cb4b6745f7e22b9c85cd68de4d70ac7d182c885f7f1afe21c9a7658 718 apt-parrot_2.6.dsc
6c64f6c6a49347ef89381a5f1f2ec699113e48d81608e08d38b12a2814d72773 13720 apt-parrot_2.6.tar.xz
ea23b776be42dfb5603a4029d1aff02ac65d6294bea3c50345b39f894d79b46f 14216 apt-parrot_2.6_all.deb
Files:
a0a4a45a6a43797ed51b09e4dedfc400 718 parrot required apt-parrot_2.6.dsc
4d9b461282bdffc373a399efdce92ac0 13720 parrot required apt-parrot_2.6.tar.xz
34f28e23209d41aefb43fa9f1f39e3dd 14216 parrot important apt-parrot_2.6_all.deb
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