From bd218128dfb5ff5cadbd21d5adfa4ddc0b1c52eb Mon Sep 17 00:00:00 2001 From: adrian15 Date: Sat, 18 Jan 2020 22:47:44 +0100 Subject: [PATCH] Added PUBLISH instructions --- PUBLISH | 144 +++++++++++++ README | 2 + repo-template/README.html | 247 +++++++++++++++++++++++ repo-template/README.non-free.html | 56 +++++ repo-template/rescapp-nonfree-install.sh | 12 ++ repo-template/update-repo.sh | 167 +++++++++++++++ 6 files changed, 628 insertions(+) create mode 100644 PUBLISH create mode 100644 repo-template/README.html create mode 100644 repo-template/README.non-free.html create mode 100644 repo-template/rescapp-nonfree-install.sh create mode 100755 repo-template/update-repo.sh diff --git a/PUBLISH b/PUBLISH new file mode 100644 index 0000000..8b56857 --- /dev/null +++ b/PUBLISH @@ -0,0 +1,144 @@ +-*- Text -*- + +This is Rescapp. Welcome. + +This file contains instructions for publishing new Rescapp Debian packages. +It's aimed at Rescapp developers whom have been given publishing permissions. + + +Verification +============== + +Before publishing a new Rescapp package a minimal set of verifications should be done. +This might be documented in the future. + +VERSION file update +===================== +master branch needs to have its VERSION updated to a new distinct version. +E.g. 0.54b5 +Its associated commit message needs to be: "Bumped version into 0.54b5". + +Example: + +``` +git checkout master +echo "0.54b5" > VERSION +git add VERSION +git commit -m "Bumped version into 0.54b5" +``` + +Debian branch on pair to normal branch +======================================== + +Assuming that the debian branch is debian-dev and the upstream branch is master then you both of them in pair. +That means that debian-dev has to have all of the master commits (but not otherwise). + +``` +git checkout debian-dev +git merge master +``` + +Debian changelog properly updated +=================================== +Once in debian-dev a new commit editing debian/changelog file needs to add the new version according to the current one. + +E.g. +``` +rescapp (0.54b5-1) unstable; urgency=low + + * Handle non found devices properly on the rest of options + + -- Adrian Gibanel Lopez Sat, 18 Jan 2020 21:01:00 +0000 +``` + +Its associated commit message needs to be: "Bumped version into 0.54b5 (debian)". + +Create and push new tags +========================= +Now we are ready to create and push the new tags to github + +``` +git checkout master +git tag -a "v0.54b5" -m "v0.54b5" +git push github-origin v0.54b5 +git checkout debian-dev +git tag -a "v0.54b5-debian" -m "v0.54b5-debian" +git push github-origin v0.54b5-debian +git checkout master +``` + +Git based Debian package build (i386) +======================================== + +Please enter an empty folder (In Buster i386 chroot) and follow this procedure: + +git clone https://github.com/rescatux/rescapp.git -b v0.54b5 rescapp-0.54b5 +# Ignore detached HEAD warning +rm -rf rescapp-0.54b5/.git/ +tar czf rescapp_0.54b5.orig.tar.gz rescapp-0.54b5/ +rm -rf rescapp-0.54b5/ +git clone https://github.com/rescatux/rescapp.git -b v0.54b5-debian rescapp-0.54b5 +# Ignore detached HEAD warning +rm -rf rescapp-0.54b5/.git/ +cd rescapp-0.54b5 +dpkg-buildpackage -us -uc +cd .. +rm -rf rescapp-0.54b5/ + +Once the procedure has completed without errors you will find the following +files: + +rescapp_0.54b5-1.debian.tar.xz +rescapp_0.54b5-1.dsc +rescapp_0.54b5-1_i386.changes +rescapp_0.54b5-1_i386.deb +rescapp_0.54b5.orig.tar.gz + + +Git based Debian package build (amd64) +======================================== + +Please enter an empty folder (In Buster amd64 chroot) and follow this procedure: + +git clone https://github.com/rescatux/rescapp.git -b v0.54b5 rescapp-0.54b5 +# Ignore detached HEAD warning +rm -rf rescapp-0.54b5/.git/ +tar czf rescapp_0.54b5.orig.tar.gz rescapp-0.54b5/ +rm -rf rescapp-0.54b5/ +git clone https://github.com/rescatux/rescapp.git -b v0.54b5-debian rescapp-0.54b5 +# Ignore detached HEAD warning +rm -rf rescapp-0.54b5/.git/ +cd rescapp-0.54b5 +dpkg-buildpackage -us -uc +cd .. +rm -rf rescapp-0.54b5/ + +Once the procedure has completed without errors you will find the following +files: + +rescapp_0.54b5-1.debian.tar.xz +rescapp_0.54b5-1.dsc +rescapp_0.54b5-1_amd64.changes +rescapp_0.54b5-1_amd64.deb +rescapp_0.54b5.orig.tar.gz + + +Copy into local repo +===================== +* Copy rescapp_0.54b5-1.debian.tar.xz, rescapp_0.54b5-1.dsc, rescapp_0.54b5-1_i386.changes, rescapp_0.54b5-1_i386.deb, rescapp_0.54b5.orig.tar.gz built above into the Rescatux repo buster-dev/rescapp subfolder. +* Copy rescapp_0.54b5-1.debian.tar.xz, rescapp_0.54b5-1.dsc, rescapp_0.54b5-1_amd64.changes, rescapp_0.54b5-1_amd64.deb, rescapp_0.54b5.orig.tar.gz built above into the Rescatux repo buster-dev/rescapp subfolder (If asked you can overwrite duplicated files) + +Rebuild local repo +===================== +In one of the chroots where the apt-ftparchive package (apt-utils) has been installed you can run in the repo dir: +./update-repo.sh +Note: You can find update-repo.sh file on the repo-template folder. + +Push local repo into sourceforge repo +===================================== +Use filezilla or other sftp client to upload files into http://rescatux.sourceforge.net/repo . + +Conclusion +=========== + +Now you have published the new Rescapp Debian packages and Rescatux build scripts can make use of them. diff --git a/README b/README index 8bef111..1deac6d 100644 --- a/README +++ b/README @@ -54,6 +54,8 @@ https://www.supergrubdisk.org/rescatux/ To know how to install Rescapp, please read the INSTALL file in the source code tarball. +To know how to publish Rescapp, please read the PUBLISH file in the source code tarball. + If you happen to find a bug in Rescapp, please use the issue tracker on github: https://github.com/rescatux/rescapp/issues diff --git a/repo-template/README.html b/repo-template/README.html new file mode 100644 index 0000000..77099f5 --- /dev/null +++ b/repo-template/README.html @@ -0,0 +1,247 @@ +If you are using a non-free Debian live cd you might want to check README.non-free.html instead. +
+ +
+# ------------------------------------------------------------
+# Debian Buster 10 (i386) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ buster-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Buster 10 (i386) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Debian Stretch 9 (i386) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ stretch-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Stretch 9 (i386) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Debian Jessie 8 (i386) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ jessie-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Jessie 8 (i386) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Debian Buster 10 (amd64) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ buster-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Buster 10 (amd64) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Debian Stretch 9 (amd64) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ stretch-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Stretch 9 (amd64) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Debian Jessie 8 (amd64) - Instructions - BEGIN
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ jessie-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Debian Jessie 8 (amd64) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Ubuntu Xenial 16.04 (amd64) - Instructions - BEGIN
+
+# First of all
+# Add universe to your sources.list
+# if it's not there
+
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ xenial-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Ubuntu Xenial 16.04 (amd64) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+# ------------------------------------------------------------
+# Ubuntu Artful 17.10 (amd64) - Instructions - BEGIN
+
+# First of all
+# Add universe to your sources.list
+# if it's not there
+
+# Create this file:
+# /etc/apt/sources.list.d/rescatux.list
+# with this content:
+
+
+deb http://rescatux.sourceforge.net/repo/ artful-dev main
+
+# Till everything is signed you need this workaround:
+
+sudo apt -o Acquire::AllowInsecureRepositories=true \
+-o Acquire::AllowDowngradeToInsecureRepositories=true \
+update
+
+# Finally you can install rescapp:
+
+apt-get install rescapp
+
+# Just say yes when they tell you the package cannot be authenticated
+# Ignore lilo warning when installing rescapp (just press enter)
+
+
+
+# Ubuntu Artful 17.10 (amd64) - Instructions - END
+# ------------------------------------------------------------
+
+
+
+
diff --git a/repo-template/README.non-free.html b/repo-template/README.non-free.html new file mode 100644 index 0000000..2d815db --- /dev/null +++ b/repo-template/README.non-free.html @@ -0,0 +1,56 @@ +

Why non-free?

+Because you have some special hardware in your computer/laptop which doesn't behave correctly with free-as-freedom drivers only. +Some examples might be: + + + +

Where do I download non-free version of Rescatux?

+Rescatux does not release a non-free version of Rescatux because of ethics. + +

But I need help to repair my computer. Please help me!

+Well, you can just use a Debian non-free live cd/usb and install rescapp on top of it. +It's almost as if you had Rescatux but without SELinux support (mostly needed for Fedora/Redhat/CentOS systems). + +

Where do I download those non-free Debian live cds?

+
+You can find the latest non-free stable releases for Debian live here: +Current non-free live images. +The current Debian version as of 2019 is buster. Rescapp is based on buster and buster will last for about two years. +
+ +You should aim at the lxqt version, e.g. download debian-live-10.1.0-amd64-lxqt+nonfree.iso. +
+You may want to use an older version: debian-live-10.0.0-amd64-lxqt+nonfree.iso if the newest 10.1.0 version features unusable keyboard+mouse in your specific computer model. +
+You can use other graphical live cd versions other than the lxqt one, but be aware that you may have to download more packages. +
+ +

Rescapp installation on non-free Debian live cds.

+First of all make sure that your non-free Debian live cd has a working internet connection. +
+TIP: At this point you may want to visit this page from your non-free live cd so that it's easier to copy and paste. +
+Then at the menu choose System Tools then Qterminal. +
+Copy and paste this single line in a go and press enter. +
+sudo apt update ; sudo apt install wget ; wget "http://rescatux.sf.net/repo/rescapp-nonfree-install.sh" -O rnfi.sh ; chmod +x rnfi.sh ; sudo ./rnfi.sh
+
+Please wait untill all the packages are installed and configured. Once the user@debian:~$ prompt is back you can close the Qterminal window. +
+

How do I start repairing my computer ?

+In order to start rescapp, on the menu choose Other then rescapp. + +

Additional notes

+ diff --git a/repo-template/rescapp-nonfree-install.sh b/repo-template/rescapp-nonfree-install.sh new file mode 100644 index 0000000..5714b1e --- /dev/null +++ b/repo-template/rescapp-nonfree-install.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +cat << EOF > /etc/apt/sources.list.d/rescatux.list +deb http://rescatux.sourceforge.net/repo/ buster-dev main + +EOF + +apt -o Acquire::AllowInsecureRepositories=true \ +-o Acquire::AllowDowngradeToInsecureRepositories=true \ +update + +DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install rescapp diff --git a/repo-template/update-repo.sh b/repo-template/update-repo.sh new file mode 100755 index 0000000..0171ec8 --- /dev/null +++ b/repo-template/update-repo.sh @@ -0,0 +1,167 @@ +#!/bin/bash + + +declare -A description +# I only declare whatever I want to make public +description["jessie-dev"]="Debian Jessie 8" +description["stretch-dev"]="Debian Stretch 9" +description["buster-dev"]="Debian Buster 10" +description["xenial-dev"]="Ubuntu Xenial 16.04" +description["artful-dev"]="Ubuntu Artful 17.10" + +README_HTML_FILE="README.html" + +function generate_top_instructions () { + + +cat << EOF +If you are using a non-free Debian live cd you might want to check README.non-free.html instead. +
+ +
+EOF
+}
+
+function generate_bottom_instructions () {
+
+
+cat << EOF
+
+EOF +} + + +function generate_inner_instructions () { + + nsection="${1}" + narch="${2}" + ndistro="${3}" +if echo ${nsection} | grep 'live-boot' > /dev/null 2>&1 ; then + return 0 +fi + + if [ "${description[$nsection]}x" != "x" ] ; then +cat << EOF +# ------------------------------------------------------------ +# ${description[$nsection]} (${narch}) - Instructions - BEGIN +EOF + +if [ "${ndistro}" = "ubuntu" ] ; then + generate_ubuntu_extra_instructions +fi + +cat << EOF +# Create this file: +# /etc/apt/sources.list.d/rescatux.list +# with this content: + + +deb http://rescatux.sourceforge.net/repo/ ${nsection} main + +# Till everything is signed you need this workaround: + +sudo apt -o Acquire::AllowInsecureRepositories=true \\ +-o Acquire::AllowDowngradeToInsecureRepositories=true \\ +update + +# Finally you can install rescapp: + +apt-get install rescapp + +# Just say yes when they tell you the package cannot be authenticated +# Ignore lilo warning when installing rescapp (just press enter) + +EOF + + +# Might be useful for extra bottom instructions function in the future + +cat << EOF + + +# ${description[$nsection]} (${narch}) - Instructions - END +# ------------------------------------------------------------ + + + +EOF + fi + +} + +function generate_ubuntu_extra_instructions () { + +cat << EOF + +# First of all +# Add universe to your sources.list +# if it's not there + +EOF + +} + + + +### MAIN SCRIPT BEGIN + +generate_top_instructions > ${README_HTML_FILE} + + +ndistro="debian" +# Debian - i386 +for narch in i386 ; do + + for nsection in buster buster-dev buster-live-boot buster-live-boot-dev stretch stretch-dev jessie jessie-dev ; do + if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then + mkdir -p "dists/${nsection}/main/binary-${narch}/" + fi + apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz + apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz + apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages + apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources + generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE} + + done + +done + +ndistro="debian" +# Debian - amd64 +for narch in amd64 ; do + + for nsection in buster buster-dev buster-live-boot buster-live-boot-dev stretch stretch-dev jessie jessie-dev ; do + if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then + mkdir -p "dists/${nsection}/main/binary-${narch}/" + fi + apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz + apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz + apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages + apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources + generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE} + + done + +done + +ndistro="ubuntu" +# Ubuntu +for narch in amd64 ; do + + for nsection in xenial xenial-dev artful artful-dev ; do + if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then + mkdir -p "dists/${nsection}/main/binary-${narch}/" + fi + apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz + apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz + apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages + apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources + generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE} + + done + +done + + +generate_bottom_instructions >> ${README_HTML_FILE} +