From 35903ca10979d3bde1e24f2d3286ab5e36f78b10 Mon Sep 17 00:00:00 2001 From: mollusk Date: Sat, 9 Feb 2019 20:42:33 -0700 Subject: [PATCH] initial commit --- base-x64.packages | 25 ++++ base-x64.sh | 47 +++++++ build-images.sh | 291 ++++++++++++++++++++++++++++++++++++++++++ cinnamon-x64.packages | 53 ++++++++ cinnamon-x64.sh | 44 +++++++ e17-x64.packages | 61 +++++++++ e17-x64.sh | 44 +++++++ gnome-x64.packages | 62 +++++++++ gnome-x64.sh | 44 +++++++ i3-x64.packages | 55 ++++++++ i3-x64.sh | 44 +++++++ kde-x64.packages | 66 ++++++++++ kde-x64.sh | 44 +++++++ lxde-x64.packages | 52 ++++++++ lxde-x64.sh | 44 +++++++ lxqt-x64.packages | 53 ++++++++ lxqt-x64.sh | 45 +++++++ mate-x64.packages | 50 ++++++++ mate-x64.sh | 47 +++++++ sign-file.sh | 23 ++++ silvernode.asc | 51 ++++++++ xfce-x64.packages | 60 +++++++++ xfce-x64.sh | 44 +++++++ 23 files changed, 1349 insertions(+) create mode 100644 base-x64.packages create mode 100755 base-x64.sh create mode 100755 build-images.sh create mode 100644 cinnamon-x64.packages create mode 100755 cinnamon-x64.sh create mode 100644 e17-x64.packages create mode 100755 e17-x64.sh create mode 100644 gnome-x64.packages create mode 100755 gnome-x64.sh create mode 100644 i3-x64.packages create mode 100755 i3-x64.sh create mode 100644 kde-x64.packages create mode 100755 kde-x64.sh create mode 100644 lxde-x64.packages create mode 100755 lxde-x64.sh create mode 100644 lxqt-x64.packages create mode 100755 lxqt-x64.sh create mode 100644 mate-x64.packages create mode 100755 mate-x64.sh create mode 100755 sign-file.sh create mode 100644 silvernode.asc create mode 100644 xfce-x64.packages create mode 100755 xfce-x64.sh diff --git a/base-x64.packages b/base-x64.packages new file mode 100644 index 0000000..0c82dd2 --- /dev/null +++ b/base-x64.packages @@ -0,0 +1,25 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + + + +#USERLAND PACKAGES +NetworkManager +nano +vim +bash-completion +git +xterm +htop +tuxc +ntp +void-repo-multilib +ntfs-3g diff --git a/base-x64.sh b/base-x64.sh new file mode 100755 index 0000000..1974dd5 --- /dev/null +++ b/base-x64.sh @@ -0,0 +1,47 @@ +#!/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 + + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + + + + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/build-images.sh b/build-images.sh new file mode 100755 index 0000000..812796d --- /dev/null +++ b/build-images.sh @@ -0,0 +1,291 @@ +#!/bin/bash + +HTMLDIR="/var/www/voidbuilds.xyz/public" +FILENAME="status.html" +ISODIR="download" + + +echo "refreshing repo cache" +xbps-install -S + + + + +mvImages(){ + PKGLISTDIR="package_lists" + + if [ ! -f sha256sums.txt ];then + echo "checksum file not found, aborting!" + exit 1 + fi + + if [ -d "${HTMLDIR}" ];then + rm ${HTMLDIR}/${ISODIR}/*.iso + rm ${HTMLDIR}/${ISODIR}/*.txt + rm ${HTMLDIR}/${ISODIR}/*.sig + mv sha256sums.txt build + mv sha256sums.txt.sig build + mv build/* ${HTMLDIR}/${ISODIR} + else + echo "${HTMLDIR}/${ISODIR} 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 e17-x64.packages ${PKGLISTDIR}/e17-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} + + return +} + +runBuilds(){ + TOTAL="8" + ERR_FILE="error-status.txt" + + if [ -f "${ERR_FILE}" ];then + echo "removing error file" + rm ${ERR_FILE} + fi + + if [ ! -z "$(ls -A build)" ];then + rm build/* + fi + + echo "0/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + + echo "Building Image: Base
" >> ${HTMLDIR}/${FILENAME} + echo "Building: Base Image..." + + sleep 1 + ./base-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'base', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "1/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + echo "Building Image: Cinnamon
" >> ${HTMLDIR}/${FILENAME} + echo " Building: Cinnamon Image..." + + sleep 1 + ./cinnamon-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'Cinnamon', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "2/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + #echo "Building Image: GNOME
" >> ${HTMLDIR}/${FILENAME} + #echo " Building: Gnome Image..." + #sleep 1 + #./gnome-x64.sh + + echo "Building Image: i3
" >> ${HTMLDIR}/${FILENAME} + echo "Building: i3 image..." + + sleep 1 + ./i3-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'i3', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "3/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + echo "Building Image: Enlightenment
" >> ${HTMLDIR}/${FILENAME} + echo "Building: enlightenment image..." + + sleep 1 + ./e17-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'i3', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "4/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + #echo "Building Image: KDE
" >> ${HTMLDIR}/${FILENAME} + #echo "Building: Kde image..." + #sleep 1 + #./kde-x64.sh + + echo "Building Image: LXDE
" >> ${HTMLDIR}/${FILENAME} + echo "Building: Lxde Image..." + sleep 1 + ./lxde-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'LXDE', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "5/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + echo "Building Image: LXQT
" >> ${HTMLDIR}/${FILENAME} + echo "Building: Lxqt Image..." + sleep 1 + ./lxqt-x64.sh + + if [ $(cat ${ERR_FILE}) = "ERR=1" ];then + echo "Build failed for image: 'LXQT', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "6/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + echo "Building Image: MATE
" >> ${HTMLDIR}/${FILENAME} + echo "Building: Mate Image..." + sleep 1 + ./mate-x64.sh + + if [ "$(cat ${ERR_FILE})" = "ERR=1" ];then + echo "Build failed for image: 'MATE', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "7/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + echo "Building Image: XFCE
" >> ${HTMLDIR}/${FILENAME} + echo "Building: Xfce Image..." + sleep 1 + ./xfce-x64.sh + + if [ "$(cat ${ERR_FILE})" = "ERR=1" ];then + echo "Build failed for image: 'XFCE', trying again at 00:00 MST
" >> ${HTMLDIR}/${FILENAME} + rm ${ERR_FILE} + ${0} -bl + else + echo "8/${TOTAL} completed at $(date +%T)

" >> ${HTMLDIR}/${FILENAME} + fi + + if [ ! -f sha256sums.txt ];then + echo "sha manifest does not exist!" + else + echo "Signing checksum file
" >> ${HTMLDIR}/${FILENAME} + ./sign-file.sh -f sha256sums.txt + mvImages + fi + + + + echo "Done!" + return +} + +genHtml(){ + FILENAME="status.html" + + + + echo "" > ${HTMLDIR}/${FILENAME} + echo "" >> ${HTMLDIR}/${FILENAME} + echo "" >> ${HTMLDIR}/${FILENAME} + echo '" >> ${HTMLDIR}/${FILENAME} + + echo "" >> ${HTMLDIR}/${FILENAME} + + echo "" >> ${HTMLDIR}/${FILENAME} + echo '' >> ${HTMLDIR}/${FILENAME} + echo "
This page will refresh every 10 seconds

" >> ${HTMLDIR}/${FILENAME} + + + echo "

Build process initiated at:

$(date +%R) MST ($(date -u +%R) UTC) on $(date +%D)" >> ${HTMLDIR}/${FILENAME} + echo "

ETA: 2 hours from initiation time


" >> ${HTMLDIR}/${FILENAME} + + echo '

System Specs

' >> ${HTMLDIR}/${FILENAME} + echo "CPU Cores: 1
" >> ${HTMLDIR}/${FILENAME} + echo "Disk Size: $(df -h| tr -s ' ' $'\t' | grep vda1 | cut -f2)
" >> ${HTMLDIR}/${FILENAME} + echo "Disk Space Used: $(df | tr -s ' ' $'\t' | grep vda1 | cut -f5)
" >> ${HTMLDIR}/${FILENAME} + echo "Memory Size: $(free -m| tr -s ' ' $'\t' | grep Mem: | cut -f2) Mb
" >> ${HTMLDIR}/${FILENAME} + echo "Memory Free: $(free -m| tr -s ' ' $'\t' | grep Mem: | cut -f4) Mb
" >> ${HTMLDIR}/${FILENAME} + echo "Swap Size: $(free -m| tr -s ' ' $'\t' | grep Swap: | cut -f2) Mb
" >> ${HTMLDIR}/${FILENAME} + echo "Swap Used: $(free -m| tr -s ' ' $'\t' | grep Swap: | cut -f3) Mb

" >> ${HTMLDIR}/${FILENAME} + + echo "

Live Image Specs

" >> ${HTMLDIR}/${FILENAME} + echo "
System
" + echo "Kernel Version: $(xbps-query -S linux| grep pkgver | sed 's/pkgver://') series
" >> ${HTMLDIR}/${FILENAME} + echo "GlibC Version: $(xbps-query -S glibc| grep pkgver | sed 's/pkgver://')

" >> ${HTMLDIR}/${FILENAME} + echo "AMDGPU Version: $(xbps-query -S xf86-video-amdgpu| grep pkgver | sed 's/pkgver://')

" >> ${HTMLDIR}/${FILENAME} + + + + echo "
" >> ${HTMLDIR}/${FILENAME} + + #cat ${HTMLDIR}/${FILENAME} + + echo "

Status

" >> ${HTMLDIR}/${FILENAME} + + runBuilds + + echo "Disk Space Used: $(df | tr -s ' ' $'\t' | grep vda1 | cut -f5)
" >> ${HTMLDIR}/${FILENAME} + echo "All images were completed at $(date +%R) MST ($(date -u +%R) UTC)
" >> ${HTMLDIR}/${FILENAME} + echo "Next build round in 24 hours" >> ${HTMLDIR}/${FILENAME} + echo 'Return to landing page' >> ${HTMLDIR}/${FILENAME} + echo "" >> ${HTMLDIR}/${FILENAME} + echo "" >> ${HTMLDIR}/${FILENAME} + + return +} + +case ${1} in + + +-bl|--build-later) + while true;do + snooze -v genHtml + done +;; + +-bn|--build-now) + while true;do + genHtml && snooze -v genHtml + done +;; + + +*) + echo -e "\nusage: ${0} [-bn, -bl]\n" + echo -e "\n-bn run builds now, snooze after\n" + echo -e "-bl snooze now, run builds after\n\n" +;; +esac diff --git a/cinnamon-x64.packages b/cinnamon-x64.packages new file mode 100644 index 0000000..e167cf6 --- /dev/null +++ b/cinnamon-x64.packages @@ -0,0 +1,53 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xauth +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +pm-utils +nano +xdg-utils +git +vim +bash-completion +cinnamon +xrandr +colord +gnome-terminal +alsa-utils +pavucontrol +xterm +htop +tuxc +ntp +octoxbps +gksu +void-repo-multilib +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +firefox diff --git a/cinnamon-x64.sh b/cinnamon-x64.sh new file mode 100755 index 0000000..aa745f6 --- /dev/null +++ b/cinnamon-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/e17-x64.packages b/e17-x64.packages new file mode 100644 index 0000000..19bf0e7 --- /dev/null +++ b/e17-x64.packages @@ -0,0 +1,61 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +xrandr +intel-ucode +setxkbmap +xauth +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +enlightenment +terminology +econnman +xdg-utils +zenity +bash-completion +pm-utils +nano +xdg-utils +vim +git +alsa-utils +paprefs +pasystray +pavucontrol +xterm +htop +tuxc +ntp +void-repo-multilib +void-repo-nonfree +octoxbps +gksu +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +firefox +Adapta +papirus-icon-theme +gnome-themes-standard diff --git a/e17-x64.sh b/e17-x64.sh new file mode 100755 index 0000000..de745b8 --- /dev/null +++ b/e17-x64.sh @@ -0,0 +1,44 @@ +#!/bin/bash +DESKTOP="e17" +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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/gnome-x64.packages b/gnome-x64.packages new file mode 100644 index 0000000..c7a0a23 --- /dev/null +++ b/gnome-x64.packages @@ -0,0 +1,62 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 +dbus +avahi +avahi-utils + + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xauth +xrandr +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +gdm +pm-utils +bash-completion +nano +git +vim +alsa-utils +paprefs +xdg-utils +pasystray +pavucontrol +xterm +htop +tuxc +ntp +void-repo-multilib +void-repo-nonfree +octoxbps +gksu +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +firefox +gnome +gnome-apps +Adapta +papirus-icon-theme +gnome-themes-standard diff --git a/gnome-x64.sh b/gnome-x64.sh new file mode 100755 index 0000000..390a2fe --- /dev/null +++ b/gnome-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/i3-x64.packages b/i3-x64.packages new file mode 100644 index 0000000..d23f5ad --- /dev/null +++ b/i3-x64.packages @@ -0,0 +1,55 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xauth +xrandr +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +pm-utils +nano +xdg-utils +git +vim +bash-completion +i3-gaps +i3blocks +i3status +alsa-utils +pulsemixer +pasystray +xterm +mc +htop +tuxc +ntp +dmenu +sakura +void-repo-multilib +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +qutebrowser diff --git a/i3-x64.sh b/i3-x64.sh new file mode 100755 index 0000000..99f0008 --- /dev/null +++ b/i3-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/kde-x64.packages b/kde-x64.packages new file mode 100644 index 0000000..e7bad7a --- /dev/null +++ b/kde-x64.packages @@ -0,0 +1,66 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xauth +xrandr +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +sddm +konsole +bash-completion +pm-utils +nano +git +vim +xdg-utils +alsa-utils +alsa-plugins-pulseaudio +plasma-pa +paprefs +pavucontrol +inetutils +usbutils +wget +curl +xterm +htop +tuxc +keepassxc +octoxbps +ntp +void-repo-multilib +void-repo-nonfree +octoxbps +kdesu +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +NetworkManager +plasma-nm +firefox +kde5 +dolphin +adapta-kde +papirus-icon-theme diff --git a/kde-x64.sh b/kde-x64.sh new file mode 100755 index 0000000..5222ba7 --- /dev/null +++ b/kde-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/lxde-x64.packages b/lxde-x64.packages new file mode 100644 index 0000000..722ab90 --- /dev/null +++ b/lxde-x64.packages @@ -0,0 +1,52 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xrandr +xauth +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +pm-utils +bash-completion +nano +git +vim +lxde +xdg-utils +gnome-terminal +alsa-utils +pavucontrol +xterm +htop +tuxc +ntp +octoxbps +gksu +void-repo-multilib +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +falkon diff --git a/lxde-x64.sh b/lxde-x64.sh new file mode 100755 index 0000000..0e71096 --- /dev/null +++ b/lxde-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/lxqt-x64.packages b/lxqt-x64.packages new file mode 100644 index 0000000..3673274 --- /dev/null +++ b/lxqt-x64.packages @@ -0,0 +1,53 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +xrandr +intel-ucode +setxkbmap +xauth +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +qt5-plugin-sqlite +pm-utils +nano +bash-completion +git +xdg-utils +vim +lxdm +lxqt +lxterminal +alsa-utils +pavucontrol +xterm +htop +tuxc +ntp +octoxbps +gksu +void-repo-multilib +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +falkon diff --git a/lxqt-x64.sh b/lxqt-x64.sh new file mode 100755 index 0000000..dfac53f --- /dev/null +++ b/lxqt-x64.sh @@ -0,0 +1,45 @@ +#!/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 + + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/mate-x64.packages b/mate-x64.packages new file mode 100644 index 0000000..db987eb --- /dev/null +++ b/mate-x64.packages @@ -0,0 +1,50 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +intel-ucode +setxkbmap +xauth +xrandr +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +mate +mate-extra +bash-completion +caja-extensions +alsa-utils +xdg-utils +pavucontrol +alsa-plugins-pulseaudio +xterm +htop +tuxc +ntp +octoxbps +gksu +void-repo-multilib +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +firefox diff --git a/mate-x64.sh b/mate-x64.sh new file mode 100755 index 0000000..09281a7 --- /dev/null +++ b/mate-x64.sh @@ -0,0 +1,47 @@ +#!/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 + + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build diff --git a/sign-file.sh b/sign-file.sh new file mode 100755 index 0000000..3d6196d --- /dev/null +++ b/sign-file.sh @@ -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 + diff --git a/silvernode.asc b/silvernode.asc new file mode 100644 index 0000000..340fa54 --- /dev/null +++ b/silvernode.asc @@ -0,0 +1,51 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +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 +=ejo/ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/xfce-x64.packages b/xfce-x64.packages new file mode 100644 index 0000000..c2b2d42 --- /dev/null +++ b/xfce-x64.packages @@ -0,0 +1,60 @@ +#GRUB +grub-i386-efi +grub-x86_64-efi + +#BASE PKGS +dialog +cryptsetup +lvm2 +mdadm +ConsoleKit2 + +# X PACKAGES +xorg-minimal +xorg-input-drivers +xorg-video-drivers +xrandr +intel-ucode +setxkbmap +xauth +font-misc-misc +terminus-font +dejavu-fonts-ttf +alsa-plugins-pulseaudio + + +#USERLAND PACKAGES +lxdm +xdg-utils +zenity +bash-completion +pm-utils +nano +xdg-utils +vim +git +alsa-utils +paprefs +pasystray +pavucontrol +xterm +htop +tuxc +ntp +void-repo-multilib +void-repo-nonfree +octoxbps +gksu +gvfs-afc +gvfs-mtp +gvfs-smb +udisks2 +ntfs-3g +gnome-keyring +network-manager-applet +firefox +xfce4 +xfce4-plugins +Adapta +papirus-icon-theme +gnome-themes-standard diff --git a/xfce-x64.sh b/xfce-x64.sh new file mode 100755 index 0000000..82f359e --- /dev/null +++ b/xfce-x64.sh @@ -0,0 +1,44 @@ +#!/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 + +if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then + echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt + +if [ ! -f sha256sums.txt ];then + echo "Missing checksum file, aborting!" + echo "ERR=1" > error-status.txt + exit 1 +fi + +if [ ! -d "${BUILDDIR}" ];then + mkdir ${BUILDDIR} +fi + +mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build