diff options
-rw-r--r-- | README | 24 | ||||
-rwxr-xr-x | backport | 4 | ||||
-rwxr-xr-x | backport_others | 4 | ||||
-rwxr-xr-x | clean | 4 | ||||
-rwxr-xr-x | move_debs | 4 |
5 files changed, 20 insertions, 20 deletions
@@ -22,17 +22,17 @@ This means I have the appropriate aptcache and buildresult directories set up under /var/cache/pbuilder. I have several pbuilder images used for package creation under /var/cache/pbuilder, among others: - /var/cache/pbuilder/buster-i386-base.tgz + /var/cache/pbuilder/bookworm-i386-base.tgz With the pbuilderrc mentioned above, this can be created as a normal user with export ARCH=i386 - export DIST=bullseye + export DIST=bookworm sudo -E pbuilder create We also need to create the build directory: - sudo mkdir /var/cache/pbuilder/bullseye-i386/build + sudo mkdir /var/cache/pbuilder/bookworm-i386/build When using these scripts on Debian, I used to configure sudo to allow my normal user to use pbuilder, apt-get and the backporting scripts. Currently, I have @@ -42,29 +42,29 @@ I select during the installation. I am building other architectures on different machines (raspi: armxx) or in a local chroot (amd64). -For creating a local chroot, I am using (e.g. for bullseye) +For creating a local chroot, I am using (e.g. for bookworm) cd /var/chroot - sudo mkdir bullseye-amd64 - sudo debootstrap bullseye bullseye-amd64 http://ftp.de.debian.org/debian/ + sudo mkdir bookworm-amd64 + sudo debootstrap bookworm bookworm-amd64 http://ftp.de.debian.org/debian/ Then I add a new entry in /etc/schroot/schroot.conf like - [bullseye64] - description=Debian bullseye 64-bit + [bookworm64] + description=Debian bookworm 64-bit type=directory profile=default - directory=/var/chroot/bullseye-amd64 + directory=/var/chroot/bookworm-amd64 -and use sudo schroot -c bullseye64 to enter it. Within the chroot I install +and use sudo schroot -c bookworm64 to enter it. Within the chroot I install some necessary or useful stuff apt install vim gnupg build-essential devscripts add the matching local r-cran repository to /etc/apt/sources.list like - deb http://localhost/r-cran bullseye-cran40/ - deb-src http://localhost/r-cran bullseye-cran40/ + deb http://localhost/r-cran bookworm-cran40/ + deb-src http://localhost/r-cran bookworm-cran40/ and tell apt to trust my key (from my Debian CRAN page): @@ -22,7 +22,7 @@ rcrandir=/home/jranke/git/uni-bremen/website/www/ranke/r-cran usage() { -echo "Usage: ./backport [options] sourcepackage buster|bullseye|bookworm" +echo "Usage: ./backport [options] sourcepackage bullseye|bookworm" echo "Options:" echo " -k, --keep Keep copied source package and directory used for package building" echo " -s, --skip Skip apt-get update/upgrade and pbuilder update" @@ -58,7 +58,7 @@ pkg=$1 DIST=$2 # Validate distribution argument -if [ $DIST != "bookworm" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi export DIST # Remove previously extracted sources diff --git a/backport_others b/backport_others index 921ccf6..f77016f 100755 --- a/backport_others +++ b/backport_others @@ -11,7 +11,7 @@ export ARCH usage() { -echo "Usage: ./backport_others [options] buster|bullseye|bookworm" +echo "Usage: ./backport_others [options] bullseye|bookworm" echo "Options:" echo " -s Skip apt-get update/upgrade and pbuilder update" } @@ -51,7 +51,7 @@ then fi # Validate distribution argument -if [ $DIST != "bookworm" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi export DIST # When doing a new repository, do lattice, r-cran-mass @@ -4,14 +4,14 @@ usage() { -echo "Usage: ./clean [buster|bullseye|bookworm]" +echo "Usage: ./clean [bullseye|bookworm]" } if [ $# -gt 1 ]; then usage; exit 1; fi if [ $# -eq 1 ] then DIST=$1 - if [ $DIST != "bookworm" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi + if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi cd $DIST fi @@ -4,7 +4,7 @@ usage() { -echo "Usage: ./move_debs buster|bullseye|bookworm" +echo "Usage: ./move_debs bullseye|bookworm" } # Positional argument @@ -12,7 +12,7 @@ if [ $# -lt 1 ]; then usage; exit 1; fi DIST=$1 # Validate distribution argument -if [ $DIST != "bookworm" ] && [ $DIST != "buster" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi +if [ $DIST != "bookworm" ] && [ $DIST != "bullseye" ]; then usage; exit 1; fi sudo chown jranke $DIST/*${DIST}cran*_amd64.{deb,build} mv -v $DIST/*${DIST}cran*_amd64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40 |