summaryrefslogtreecommitdiff
path: root/repo/schroot/schroot.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-18 15:48:01 +0100
committerdavidovski <david@davidovski.xyz>2023-05-18 15:48:01 +0100
commite0a428e6c9067b90ce3078c2d50bc75c94047d7f (patch)
tree3cf0d6dfacb972e826dd772a0c53c899a18f9b30 /repo/schroot/schroot.xibuild
parentb9fc4f41e38eaa6d27652d418b983d40d13ef82c (diff)
parenta5ee6fa1836ed3986be333d6c9b4eed8d639636b (diff)
Merge branch 'master' of git.cheetah.remote:xilinux/buildfilesHEADmaster
Diffstat (limited to 'repo/schroot/schroot.xibuild')
-rw-r--r--repo/schroot/schroot.xibuild60
1 files changed, 60 insertions, 0 deletions
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
+}
+