From 43489602230cfe6e8976b33d78f1da67cbde42ad Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Fri, 28 Jul 2023 07:56:07 +0200 Subject: [PATCH 1/1] =?utf8?q?Przes=C5=82anie=20plik=C3=B3w=20do=20repozyt?= =?utf8?q?orium?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- create_list.sh | 3 + get_preformated_installed_list.sh | 4 + get_preformated_upgradable_list.sh | 4 + ipr.sh | 53 +++++ list.txt | 80 ++++++++ list_lhe.txt | 47 +++++ list_stable.txt | 62 ++++++ list_testing.txt | 64 ++++++ packages_list.html | 309 +++++++++++++++++++++++++++++ 9 files changed, 626 insertions(+) create mode 100755 create_list.sh create mode 100644 get_preformated_installed_list.sh create mode 100644 get_preformated_upgradable_list.sh create mode 100755 ipr.sh create mode 100644 list.txt create mode 100644 list_lhe.txt create mode 100644 list_stable.txt create mode 100644 list_testing.txt create mode 100644 packages_list.html diff --git a/create_list.sh b/create_list.sh new file mode 100755 index 0000000..337cb27 --- /dev/null +++ b/create_list.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cat list_* | sort | uniq > list.txt diff --git a/get_preformated_installed_list.sh b/get_preformated_installed_list.sh new file mode 100644 index 0000000..a487d34 --- /dev/null +++ b/get_preformated_installed_list.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +apt-get update > /dev/null 2>&1; +apt list | grep 'installed' | awk '{printf $1" "$2"\n"}' | sed -e "s/\/${1},.*\ / /g" -e "s/\/${1}\ / /g" diff --git a/get_preformated_upgradable_list.sh b/get_preformated_upgradable_list.sh new file mode 100644 index 0000000..48d9d45 --- /dev/null +++ b/get_preformated_upgradable_list.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +apt-get update > /dev/null 2>&1; +apt list | grep 'upgradable' | awk '{printf $1" "$2"\n"}' | sed -e "s/\/${1},.*\ / /g" -e "s/\/${1}\ / /g" diff --git a/ipr.sh b/ipr.sh new file mode 100755 index 0000000..ca6ca24 --- /dev/null +++ b/ipr.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +sudo chroot /home/xf0r3m/build/stable/immudex/64/chroot /bin/bash get_preformated_upgradable_list.sh stable > /tmp/stable-apt-upgradable-preformated.list; +sudo chroot /home/xf0r3m/build/stable/immudex/64/chroot /bin/bash get_preformated_installed_list.sh stable > /tmp/stable-apt-installed-preformated.list; +sudo chroot /home/xf0r3m/build/testing/immudex-testing/64/chroot /bin/bash get_preformated_upgradable_list.sh testing > /tmp/testing-apt-upgradable-preformated.list; +sudo chroot /home/xf0r3m/build/testing/immudex-testing/64/chroot /bin/bash get_preformated_installed_list.sh testing > /tmp/testing-apt-installed-preformated.list; +sudo chroot /home/xf0r3m/build/lhe/immudex-lhe/32/chroot /bin/bash get_preformated_upgradable_list.sh oldoldstable > /tmp/lhe-apt-upgradable-preformated.list; +sudo chroot /home/xf0r3m/build/lhe/immudex-lhe/32/chroot /bin/bash get_preformated_installed_list.sh oldoldstable > /tmp/lhe-apt-installed-preformated.list; + +function checkPackage() { + + if grep -q "^${1}\ " /tmp/${2}-apt-upgradable-preformated.list; then + version=$(grep "^${1}\ " /tmp/${2}-apt-upgradable-preformated.list | cut -d " " -f 2-); + color="#ff0000"; + else + version=$(grep "^${1}\ " /tmp/${2}-apt-installed-preformated.list | cut -d " " -f 2-); + color="#15ed15"; + fi + echo "$version $color"; + +} + +list=$(awk '{printf $1" "}' list.txt); +echo "

List pakietów oprogramowania

" >> packages_list.html; +echo "" >> packages_list.html; +echo "" >> packages_list.html; +for package in $list; do + echo "" >> packages_list.html; + s_veracol=$(checkPackage $package stable); + s_version=$(echo $s_veracol | cut -d " " -f 1); + s_color=$(echo $s_veracol | cut -d " " -f 2); + t_veracol=$(checkPackage $package testing); + t_version=$(echo $t_veracol | cut -d " " -f 1); + t_color=$(echo $t_veracol | cut -d " " -f 2); + l_veracol=$(checkPackage $package lhe); + l_version=$(echo $l_veracol | cut -d " " -f 1); + l_color=$(echo $l_veracol | cut -d " " -f 2); + if $(echo "$s_version" | grep -q '^#'); then s_version=""; fi + if $(echo "$t_version" | grep -q '^#'); then t_version=""; fi + if $(echo "$l_version" | grep -q '^#'); then l_version=""; fi + #if [ "$package" = "linux-image-amd64" ] || [ "$package" = "linux-image-686" ]; then package="linux-image"; fi; + echo "" >> packages_list.html; + echo "" >> packages_list.html; + echo "" >> packages_list.html; + echo "" >> packages_list.html; + echo "" >> packages_list.html; +done +echo "
Nazwa pakietustabletestingLHE*
${package}${s_version}${t_version}${l_version}
" >> packages_list.html; +echo "

"; +echo "* - Low Hardware Edition, Debian 10 Buster, 32-bit
"; +echo " - zainstalowana wersja
"; +echo " - wersja gotowa do instalacji (aktualizacja)
"; +echo "

"; diff --git a/list.txt b/list.txt new file mode 100644 index 0000000..c5b4edc --- /dev/null +++ b/list.txt @@ -0,0 +1,80 @@ +alsa-utils +base-files +bash-completion +bridge-utils +chrony +cifs-utils +cmus +conky +cryptsetup +curl +debootstrap +desktop-base +dnsutils +dosfstools +efibootmgr +etherwake +extlinux +feh +ffmpeg +figlet +firejail +gimp +git +grub-efi-amd64 +grub-efi-amd64-bin +grub-pc-bin +gvfs-backends +irssi +isolinux +iwd +libvirt-clients +libvirt-daemon +libvirt-daemon-system +linux-image-686-pae +linux-image-amd64 +live-boot +lsof +lynx +mpv +mtools +mutt +netselect-apt +nfs-common +nmap +openvpn +parted +pass +picom +pulseaudio +python3-pip +python3-venv +qemu-system-x86 +qmmp +ranger +ratpoison +redshift +remmina +rsync +squashfs-tools +sudo +syslinux-efi +systemd-sysv +tmux +ufw +vim +vim-gtk3 +virtinst +virt-manager +vlc +wakeonlan +wget +wireless-tools +xdm +xfce4 +xinit +xorriso +xserver-xorg +xserver-xorg-core +xterm +youtube-dl diff --git a/list_lhe.txt b/list_lhe.txt new file mode 100644 index 0000000..8e15518 --- /dev/null +++ b/list_lhe.txt @@ -0,0 +1,47 @@ +base-files +linux-image-686-pae +live-boot +systemd-sysv +xserver-xorg +xserver-xorg-core +xinit +xdm +xterm +ratpoison +feh +sudo +ufw +cryptsetup +lsof +extlinux +bash-completion +etherwake +wakeonlan +cifs-utils +wget +figlet +mpv +youtube-dl +vim +redshift +irssi +nmap +nfs-common +python3-pip +ffmpeg +chrony +python3-venv +rsync +mutt +openvpn +netselect-apt +dnsutils +ranger +tmux +cmus +iwd +wireless-tools +curl +alsa-utils +pulseaudio +parted diff --git a/list_stable.txt b/list_stable.txt new file mode 100644 index 0000000..f9a0629 --- /dev/null +++ b/list_stable.txt @@ -0,0 +1,62 @@ +base-files +desktop-base +firejail +ufw +cryptsetup +lsof +extlinux +grub-efi-amd64 +efibootmgr +bash-completion +etherwake +wakeonlan +cifs-utils +wget +figlet +mpv +youtube-dl +vim-gtk3 +redshift +irssi +nmap +nfs-common +remmina +python3-pip +ffmpeg +debootstrap +squashfs-tools +xorriso +syslinux-efi +grub-pc-bin +grub-efi-amd64-bin +mtools +dosfstools +chrony +python3-venv +isolinux +rsync +mutt +gimp +openvpn +netselect-apt +gvfs-backends +linux-image-amd64 +live-boot +systemd-sysv +ranger +git +qmmp +vlc +lynx +tmux +pass +qemu-system-x86 +libvirt-clients +libvirt-daemon-system +bridge-utils +virtinst +libvirt-daemon +virt-manager +conky +picom +xfce4 diff --git a/list_testing.txt b/list_testing.txt new file mode 100644 index 0000000..1676525 --- /dev/null +++ b/list_testing.txt @@ -0,0 +1,64 @@ +base-files +desktop-base +firejail +ufw +cryptsetup +lsof +extlinux +grub-efi-amd64 +efibootmgr +bash-completion +etherwake +wakeonlan +cifs-utils +wget +figlet +mpv +youtube-dl +vim-gtk3 +redshift +irssi +nmap +nfs-common +remmina +python3-pip +ffmpeg +debootstrap +squashfs-tools +xorriso +syslinux-efi +grub-pc-bin +grub-efi-amd64-bin +mtools +dosfstools +chrony +python3-venv +isolinux +rsync +mutt +gimp +openvpn +netselect-apt +gvfs-backends +dnsutils +ranger +git +qmmp +vlc +lynx +tmux +pass +qemu-system-x86 +libvirt-clients +libvirt-daemon-system +bridge-utils +virtinst +libvirt-daemon +virt-manager +conky +picom +vim-gtk3 +mutt +linux-image-amd64 +live-boot +systemd-sysv diff --git a/packages_list.html b/packages_list.html new file mode 100644 index 0000000..39f91b8 --- /dev/null +++ b/packages_list.html @@ -0,0 +1,309 @@ +

List pakietów oprogramowania

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nazwa pakietustabletesting
firejail0.9.72-20.9.72-2
ufw0.36.2-10.36.2-1
cryptsetup2:2.6.1-4~deb12u12:2.6.1-4
lsof4.95.0-14.95.0-1
extlinux3:6.04~git20190206.bf6db5b4+dfsg1-3+b13:6.04~git20190206.bf6db5b4+dfsg1-3+b1
grub-efi-amd642.06-132.06-13
efibootmgr17-217-2
bash-completion1:2.11-61:2.11-7
etherwake1.09-4+b11.09-4+b1
wakeonlan0.41-12.10.41-12.1
cifs-utils2:7.0-22:7.0-2
wget1.21.3-1+b21.21.3-1+b2
figlet2.2.5-3+b12.2.5-3+b1
mpv0.35.1-40.35.1-4+b1
youtube-dl2021.12.17-2
vim-gtk32:9.0.1378-22:9.0.1672-1
redshift1.12-4.21.12-4.2
irssi1.4.3-21.4.4-1
nmap7.93+dfsg1-17.93+dfsg1-1
nfs-common1:2.6.2-41:2.6.3-1
remmina1.4.29+dfsg-11.4.31+dfsg-2
python3-pip23.0.1+dfsg-123.2+dfsg-1
ffmpeg7:5.1.3-17:5.1.3-2
debootstrap1.0.128+nmu21.0.128+nmu5
squashfs-tools1:4.5.1-11:4.6.1-1
xorriso1.5.4-41.5.4-4
syslinux-efi3:6.04~git20190206.bf6db5b4+dfsg1-33:6.04~git20190206.bf6db5b4+dfsg1-3
grub-pc-bin2.06-132.06-13
grub-efi-amd64-bin2.06-132.06-13
mtools4.0.33-1+really4.0.32-14.0.33-1+really4.0.32-1
dosfstools4.2-14.2-1
chrony4.3-2+deb12u14.3-4
python3-venv3.11.2-1+b13.11.4-5
isolinux3:6.04~git20190206.bf6db5b4+dfsg1-33:6.04~git20190206.bf6db5b4+dfsg1-3
rsync3.2.7-13.2.7-1
mutt2.2.9-1+b12.2.9-1+b1
gimp2.10.34-12.10.34-1
openvpn2.6.3-1+deb12u12.6.3-2
netselect-apt0.3.ds1-30.10.3.ds1-30.1
gvfs-backends1.50.3-11.50.4-3
linux-image6.1.38-16.3.7-1
live-boot1:202301311:20230131
systemd-sysv252.12-1~deb12u1253.5-1
ranger1.9.3-51.9.3-5
git1:2.39.2-1.11:2.40.1-1
qmmp1.6.2-1+b11.6.2-1+b1
vlc3.0.18-23.0.18-3
lynx2.9.0dev.12-12.9.0dev.12-1
tmux3.3a-33.3a-4
pass1.7.4-61.7.4-6
qemu-system-x861:7.2+dfsg-7+deb12u11:8.0.2+dfsg-3
libvirt-clients9.0.0-49.5.0-1
libvirt-daemon-system9.0.0-49.5.0-1
bridge-utils1.7.1-11.7.1-1
virtinst1:4.1.0-21:4.1.0-2
libvirt-daemon9.0.0-49.5.0-1
virt-manager1:4.1.0-21:4.1.0-2
conky1.18.3-11.19.2-2
picom9.1-110.2-1
xfce44.184.18
dnsutils1:9.18.16-1
-- 2.39.5