blob: 5b9578864bda4d9d70ba3b757e60980c2f9377f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
}
|