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

Import Debian version 3.0+parrot1

apt-parrot (3.0+parrot1) testing; urgency=medium

  * Prepare packge for new Parrot 5.x repo layout (lts/rolling)

apt-parrot (2.22+parrot2) testing; urgency=medium

  * Fix bash error in postinst script.
parent ea00a971
......@@ -9,22 +9,27 @@ then
update-apt-xapian-index -vf
fi
# Determine distro version
if [ -e /lib/systemd/systemd ];then
DISTRO=rolling
fi
if ! [ -e /lib/systemd/systemd ];then
DISTRO=lts
fi
# Clean old (potentially dangerous) apt configs
cd /etc/apt/trusted.gpg.d/
rm $(ls /etc/apt/trusted.gpg.d/ | grep -v parrot)
cd /etc/apt/sources.list.d/
rm $(ls /etc/apt/sources.list.d/ | grep -v parrot)
# Update default mirror
if [ test `grep 'cloudflare.archive.parrotsec.org' /etc/apt/sources.list.d/parrot.list` ];then
parrot-mirror-selector default
if [ test `grep ' stable main' /etc/apt/sources.list.d/parrot.list` ];then
parrot-mirror-selector default $DISTRO
fi
if [ test `grep 'mirrordirector.archive.parrotsec.org' /etc/apt/sources.list.d/parrot.list` ];then
parrot-mirror-selector default
if [ test `grep ' parrot main' /etc/apt/sources.list.d/parrot.list` ];then
parrot-mirror-selector default $DISTRO
fi
......@@ -32,7 +37,7 @@ fi
if ! [ -e "/etc/apt/sources.list.d/parrot.list" ]
then
parrot-mirror-selector default stable nonfree
parrot-mirror-selector default $DISTRO nonfree
cat /etc/apt/sources.list.parrot > /etc/apt/sources.list
fi
......
apt-parrot (3.0+parrot1) testing; urgency=medium
* Prepare packge for new Parrot 5.x repo layout (lts/rolling)
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Tue, 16 Jul 2019 17:18:34 +0200
apt-parrot (2.22+parrot2) testing; urgency=medium
* Fix bash error in postinst script.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Sun, 09 Jun 2019 14:48:34 +0200
apt-parrot (2.22+parrot1) testing; urgency=medium
* Update package.
......
......@@ -18,25 +18,19 @@ and manually choose the best mirror for you.
Otherwise leave /etc/apt/sources.list empty
and put the following content in /etc/apt/sources.list.d/parrot.list
deb https://deb.parrotsec.org/parrot stable main contrib non-free
deb https://deb.parrotsec.org/parrot rolling main contrib non-free
"
}
branch="parrot"
branch="rolling"
case $2 in
stable)
branch="stable"
lts|stable|main)
branch="lts"
;;
testing)
branch="testing"
;;
parrot)
branch="stable"
;;
parrot-testing)
branch="testing"
rolling|testing|unstable)
branch="rolling"
;;
esac
......@@ -68,10 +62,26 @@ 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
if [ "$branch" == "lts" ]; 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
echo "deb $base $branch-security $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb-src $base $branch-security $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb $base $branch-updates $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb-src $base $branch-updates $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb $base $branch-backports $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb-src $base $branch-backports $areas" >> /etc/apt/sources.list.d/parrot.list
fi
if [ "$branch" == "rolling" ]; 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
echo "deb $base $branch-security $areas" >> /etc/apt/sources.list.d/parrot.list
echo "#deb-src $base $branch-security $areas" >> /etc/apt/sources.list.d/parrot.list
fi
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