add custom image scripts and update package txt files

This commit is contained in:
mollusk 2018-12-19 03:22:02 -07:00
parent acac699bee
commit 38bdae1b74
20 changed files with 479 additions and 1 deletions

33
base-x64.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
echo "========================="
echo "| BASE VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' base-x64.packages)" \
-T "Void Linux Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

82
build-images.sh Executable file
View File

@ -0,0 +1,82 @@
#!/bin/bash
HTMLDIR="/var/www/voidbuilds.xyz/public"
FILENAME="BUILD_STATUS.html"
TOTAL="7"
echo "0/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
echo "Building Image: Base</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: Base Image..."
sleep 1
./base-x64.sh
echo "1/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
echo "Building Image: Cinnamon</br>" >> ${HTMLDIR}/${FILENAME}
echo " Building: Cinnamon Image..."
sleep 1
./cinnamon-x64.sh
echo "2/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
#echo "Building Image: GNOME</br>" >> ${HTMLDIR}/${FILENAME}
#echo " Building: Gnome Image..."
#sleep 1
#./gnome-x64.sh
echo "Building Image: i3</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: i3 image..."
sleep 1
./i3-x64.sh
echo "3/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
#echo "Building Image: KDE</br>" >> ${HTMLDIR}/${FILENAME}
#echo "Building: Kde image..."
#sleep 1
#./kde-x64.sh
echo "Building Image: LXDE</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: Lxde Image..."
sleep 1
./lxde-x64.sh
echo "4/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
echo "Building Image: LXQT</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: Lxqt Image..."
sleep 1
./lxqt-x64.sh
echo "5/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
echo "Building Image: MATE</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: Mate Image..."
sleep 1
./mate-x64.sh
echo "6/${TOTAL} completed at $(date +%T)</br></br>" >> ${HTMLDIR}/${FILENAME}
echo "Building Image: XFCE</br>" >> ${HTMLDIR}/${FILENAME}
echo "Building: Xfce Image..."
sleep 1
./xfce-x64.sh
echo "7/${TOTAL} completed at $(date +%T) </br></br>" >> ${HTMLDIR}/${FILENAME}
if [ ! -f sha256sums.txt ];then
echo "sha manifest does not exist!"
echo "Done!"
exit 0;
fi
echo "Signing checksum file</br>" >> ${HTMLDIR}/${FILENAME}
./sign-file.sh -f sha256sums.txt
./mv-images.sh
echo "Done!"

34
cinnamon-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="cinnamon"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

34
gnome-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="gnome"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

34
i3-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="i3"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

34
kde-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="kde"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

34
lxde-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="lxde"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

35
lxqt-x64.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
DESKTOP="lxqt"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

36
mate-x64.sh Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
DESKTOP="mate"
echo "========================="
echo "| MATE VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build

32
mv-images.sh Executable file
View File

@ -0,0 +1,32 @@
#!/bin/bash
HTMLDIR="/var/www/voidbuilds.xyz/public"
PKGLISTDIR="package_lists"
if [ -d "${HTMLDIR}" ];then
rm ${HTMLDIR}/*.iso
rm ${HTMLDIR}/*.txt
rm ${HTMLDIR}/*.sig
mv sha256sums.txt build
mv sha256sums.txt.sig build
mv build/* ${HTMLDIR}
else
echo "${HTMLDIR} does not exist"
fi
if [ ! -d "${PKGLISTDIR}" ];then
mkdir "${PKGLISTDIR}"
fi
rm ${PKGLISTDIR}/*
cp base-x64.packages ${PKGLISTDIR}/base-x64.packages.txt
cp cinnamon-x64.packages ${PKGLISTDIR}/cinnamon-x64.packages.txt
cp mate-x64.packages ${PKGLISTDIR}/mate-x64.packages.txt
cp lxde-x64.packages ${PKGLISTDIR}/lxde-x64.packages.txt
cp lxqt-x64.packages ${PKGLISTDIR}/lxqt-x64.packages.txt
cp i3-x64.packages ${PKGLISTDIR}/i3-x64.packages.txt
#cp kde-x64.packages ${PKGLISTDIR}/kde-x64.packages.txt
#cp gnome-x64.packages ${PKGLISTDIR}/gnome-x64.packages.txt
cp xfce-x64.packages ${PKGLISTDIR}/xfce-x64.packages.txt
cp -r ${PKGLISTDIR} ${HTMLDIR}

View File

@ -26,10 +26,12 @@ alsa-plugins-pulseaudio
lxdm
pm-utils
nano
xdg-utils
git
vim
bash-completion
cinnamon
xrandr
colord
gnome-terminal
alsa-utils

View File

@ -16,6 +16,7 @@ xorg-video-drivers
intel-ucode
setxkbmap
xauth
xrandr
font-misc-misc
terminus-font
dejavu-fonts-ttf
@ -26,6 +27,7 @@ alsa-plugins-pulseaudio
lxdm
pm-utils
nano
xdg-utils
git
vim
bash-completion

View File

@ -15,6 +15,7 @@ xorg-input-drivers
xorg-video-drivers
intel-ucode
setxkbmap
xrandr
xauth
font-misc-misc
terminus-font
@ -30,6 +31,7 @@ nano
git
vim
lxde
xdg-utils
gnome-terminal
alsa-utils
pavucontrol

View File

@ -13,6 +13,7 @@ ConsoleKit2
xorg-minimal
xorg-input-drivers
xorg-video-drivers
xrandr
intel-ucode
setxkbmap
xauth
@ -28,6 +29,7 @@ pm-utils
nano
bash-completion
git
xdg-utils
vim
lxdm
lxqt

View File

@ -16,6 +16,7 @@ xorg-video-drivers
intel-ucode
setxkbmap
xauth
xrandr
font-misc-misc
terminus-font
dejavu-fonts-ttf
@ -29,6 +30,7 @@ mate-extra
bash-completion
caja-extensions
alsa-utils
xdg-utils
pavucontrol
alsa-plugins-pulseaudio
xterm

View File

@ -13,6 +13,7 @@ ConsoleKit2
xorg-minimal
xorg-input-drivers
xorg-video-drivers
xrandr
intel-ucode
setxkbmap
xauth
@ -29,6 +30,7 @@ zenity
bash-completion
pm-utils
nano
xdg-utils
vim
git
alsa-utils

7
remote-rm.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
ssh mollusk@voidbuilds.xyz "rm -fv /var/www/html/x86_64/*.txt"
ssh mollusk@voidbuilds.xyz "rm -fv /var/www/html/x86_64/*.sig"
ssh mollusk@voidbuilds.xyz "rm -fv /var/www/html/x86_64/*.iso"
ssh mollusk@voidbuilds.xyz "echo 'New images are in the process of being synced which takes about 5-10 minutes each, due to upload bandwidth limits.' > /var/www/html/x86_64/SYNCING_NEW_IMAGES.txt"
ssh mollusk@voidbuilds.xyz "echo 'The Gnome images are disabled until further notice due to issues with the login manager on the live system' > /var/www/html/x86_64/NOTICE.txt"

23
sign-file.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
case ${1} in
-f)
if [ ! -f "${2}" ];then
echo "File '${2}' does not exist!"
else
if [ ! -f /usr/bin/gpg ];then
gpg2 --output "${2}.sig" --detach-sig ${2}
else
gpg --output "${2}.sig" --detach-sig ${2}
fi
if [ ! -f "${2}.sig" ];then
echo "Error creating file: ${2}.sig"
else
echo "File ${2}.sig created!"
fi
fi
;;
esac

14
sync-images.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
REMOTE_HOST="mollusk@voidbuilds.xyz:/var/www/html/x86_64/"
cd build
rsync -v -I -h --progress sha256sums.txt ${REMOTE_HOST}
rsync -v -I -h --progress sha256sums.txt.sig ${REMOTE_HOST}
rsync -v -I -h --progress *.iso ${REMOTE_HOST}
cd ..
rsync -v -I -h --progress *.packages ${REMOTE_HOST}image_pkglists/
ssh mollusk@voidbuilds.xyz "rm -fv /var/www/html/x86_64/SYNCING_NEW_IMAGES.txt"
echo "Done Syncting to Host!"

34
xfce-x64.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DESKTOP="xfce"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
#NONFREE=https://repo.voidlinux.eu/current/nonfree
FILENAME="void-live-${DESKTOP}-unofficial"
DATE=$(date +%Y%m%d)
KERNEL=$(uname -r)
BUILDDIR="$(pwd)/build"
#shift $((OPTIND - 1))
#: ${ARCH:=$(uname -m)}
sudo ./mklive.sh \
-a x86_64 \
-r ${CURRENT} \
-r ${MUTILIB} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
if [ ! -d "${BUILDDIR}" ];then
mkdir ${BUILDDIR}
fi
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build