From a5ee6fa1836ed3986be333d6c9b4eed8d639636b Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 17 May 2023 17:02:25 +0000 Subject: Add schroot --- repo/schroot/schroot.xibuild | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 repo/schroot/schroot.xibuild (limited to 'repo/schroot/schroot.xibuild') diff --git a/repo/schroot/schroot.xibuild b/repo/schroot/schroot.xibuild new file mode 100644 index 0000000..5b95788 --- /dev/null +++ b/repo/schroot/schroot.xibuild @@ -0,0 +1,60 @@ +#!/bin/sh + +NAME="schroot" +DESC="Allows users to execute shell commands under different root filesystems. (Successor to dchroot)." + +MAKEDEPS=" autoconf automake boost coreutils cppunit groff gettext libtool" + +PKG_VER=1.6.10 +SOURCE=" + https://deb.debian.org/debian/pool/main/s/schroot/schroot_$PKG_VER.orig.tar.xz +" + +ADDITIONAL=" + https://deb.debian.org/debian/pool/main/s/schroot/schroot_$PKG_VER-3+deb9u1.debian.tar.xz +busybox-compat.patch +getent.patch +getmntent.patch +musl.patch +pam.d.schroot.patch +remove-networks.patch +schroot-cppunit.patch +" + +prepare() { + apply_patches + + tar xf schroot_$PKG_VER-3+deb9u1.debian.tar.xz + + # shellcheck disable=SC2002 + cat "$BUILD_ROOT"/debian/patches/series | while read -r p; do + patch -p1 -i "$BUILD_ROOT"/debian/patches/"$p" + done + + # invalid sbuild_version + sed -i "s/@sbuild_version@/$PKG_VER/g" sbuild/sbuild.pc.in + + ./bootstrap +} + +build() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-dchroot \ + --enable-lvm-snapshot \ + --enable-btrfs-snapshot \ + --with-bash-completion-dir=/usr/share/bash-completion/completions/ \ + BTRFS=/sbin/btrfs \ + BTRFSCTL=/sbin/btrfsctl \ + LVCREATE=/sbin/lvcreate \ + LVREMOVE=/sbin/lvremove + make +} + +package() { + make DESTDIR="$PKG_DEST" install +} + -- cgit v1.2.1