diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 8f76135..f6aeb11 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -2,14 +2,15 @@ # Contributor: Andreas Wagner pkgname=schroot -pkgver=1.6.10 -pkgrel=32 +_pkgname=reschroot +pkgver=1.6.13 +pkgrel=1 pkgdesc="Allows users to execute shell commands under different root filesystems. (Successor to dchroot)." -url="https://packages.qa.debian.org/s/schroot.html" +url="https://codeberg.org/shelter/reschroot" license=('GPL3') -depends=('pam' 'lockdev' 'boost-libs' 'e2fsprogs') -makedepends=('boost' 'cppunit') -optdepends=('btrfs-progs-unstable' 'lvm2') +depends=('pam' 'boost-libs' 'util-linux-libs') +makedepends=('cmake' 'boost' 'btrfs-progs' 'lvm2' 'util-linux' 'cppunit' 'po4a') +optdepends=('btrfs-progs' 'lvm2') arch=('x86_64') conflicts=('dchroot') replaces=('dchroot') @@ -19,72 +20,61 @@ backup=('etc/schroot/schroot.conf' 'etc/schroot/arch32/copyfiles' 'etc/schroot/arch32/mount' 'etc/schroot/arch32/nssdatabases') -source=("http://http.debian.net/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.xz" - "http://http.debian.net/debian/pool/main/s/schroot/schroot_$pkgver-3+deb9u1.debian.tar.xz" - "https://src.fedoraproject.org/rpms/schroot/raw/rawhide/f/schroot-gcc8-assert-fix.patch" +source=("https://cdimage.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.xz" + "https://cdimage.debian.org/debian/pool/main/s/schroot/schroot_$pkgver-2.debian.tar.xz" 'arch32-example' 'arch32-config' 'arch32-copyfiles' 'arch32-mount' 'arch32-nssdatabases' - 'pam.d.schroot.patch' - 'schroot-cppunit.patch') + pam.d.schroot.patch) +sha256sums=('2d79ab1ae5ed5b06601ece4b20b7cc0ef0c0c486922693f9bedda927945cc6b3' + '052ffa31243d3f4dca5f81db29c4a6527fdc31e275a8e9beefb84f6b8d67a8b9' + '5ae07ef1b4525e9a6d9793d9d50cbf6d3f577f0a4001a2cde668d6817b03a6d5' + '11730e71d6974a2172a86f2219ff0b394524567f4d75f11b7424dced2b40ed9b' + 'e67bb203b623ae9ecd4fe034546759c60780393d85bf87a907a94f114e425942' + '8e6ea4cc6befc95a7a37edc590619a2ef0a060ad38c4d0a1830bb00c43becdb0' + '2d564a13fbf330465aa00e442dcf6845263253be96f4776075be738b0018ef38' + 'b95ca68904994d91804f5d8573733e832199b221072a6ab86f000a313b850cde') prepare() { - cd ${pkgname}-${pkgver} - cat "$srcdir"/debian/patches/series | while read p; do + cd ${_pkgname}-${pkgver} + grep '\.patch$' "$srcdir"/debian/patches/series | while read p; do + echo "Applying patch $p" patch -p1 -i "$srcdir"/debian/patches/$p done - # fix configure with cppunit 1.4 - patch -p1 -i ../schroot-cppunit.patch - # https://bugs.archlinux.org/task/73481 - patch -p1 -i ../schroot-gcc8-assert-fix.patch - ./bootstrap } build() { - cd ${pkgname}-${pkgver} export CFLAGS="$CFLAGS -ffat-lto-objects" export CXXFLAGS="$CXXFLAGS -ffat-lto-objects" export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" - ./configure \ - --prefix=/usr \ - --libexecdir=/usr/lib \ - --sysconfdir=/etc \ - --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 - # --enable-csbuild - make + cmake -B build -S "${_pkgname}-${pkgver}" \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_INSTALL_SYSCONFDIR='/etc' \ + -DCMAKE_INSTALL_LIBEXECDIR='lib' \ + -Dbash_completion_dir='/usr/share/bash-completion/completions/' \ + -Ddchroot=ON \ + -Dpam=ON \ + -Dlvm-snapshot=ON \ + -Dbtrfs-snapshot=ON \ + -DBTRFS_EXECUTABLE=/sbin/btrfs \ + -DLVCREATE_EXECUTABLE=/sbin/lvcreate \ + -DLVREMOVE_EXECUTABLE=/sbin/lvremove \ + -Wno-dev + cmake --build build } -check() { - cd ${pkgname}-${pkgver} -# make -k check -} +#check() { +# cd build +# ctest +#} package() { - cd ${pkgname}-${pkgver} - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build install -dm 755 "$pkgdir"/etc/schroot/arch32 install -m 644 "$srcdir"/arch32-{config,mount,copyfiles,nssdatabases} "$pkgdir"/etc/schroot/arch32 rename 'arch32-' '' "$pkgdir"/etc/schroot/arch32/* install -m 644 "$srcdir"/arch32-example "$pkgdir"/etc/schroot/chroot.d/arch32.conf.example patch -i "$srcdir"/pam.d.schroot.patch "$pkgdir"/etc/pam.d/schroot } -sha256sums=('3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b' - '56bc82fc8ae7f6ca7eef506ccc1dca1211b2c84d83efc50d24670b8bdb9ea8bb' - '7a15406681e5b06431033ad3fe3212a28c7af7dd9ea3a3e945f4bb95d800bd86' - '5ae07ef1b4525e9a6d9793d9d50cbf6d3f577f0a4001a2cde668d6817b03a6d5' - '11730e71d6974a2172a86f2219ff0b394524567f4d75f11b7424dced2b40ed9b' - 'e67bb203b623ae9ecd4fe034546759c60780393d85bf87a907a94f114e425942' - '8e6ea4cc6befc95a7a37edc590619a2ef0a060ad38c4d0a1830bb00c43becdb0' - '2d564a13fbf330465aa00e442dcf6845263253be96f4776075be738b0018ef38' - 'c7a46fa1c901b41c1d1928771bf4036e1fdb779f6a8241d2acf9fc0d72cd7572' - '604a0b312f33a07e309d7857faf4edcc2985827da08a927c1d267dbb0946a240') diff --git a/trunk/pam.d.schroot.patch b/trunk/pam.d.schroot.patch index f4e5667..80c9822 100644 --- a/trunk/pam.d.schroot.patch +++ b/trunk/pam.d.schroot.patch @@ -1,4 +1,4 @@ -@@ -23,13 +23,9 @@ +@@ -23,12 +23,8 @@ # time restrainst on schroot usage. # account requisite pam_time.so @@ -7,12 +7,9 @@ -# /etc/shadow entries. -@include common-auth -@include common-account --@include common-session -- +-@include common-session-noninteractive +account required pam_unix.so +session required pam_unix.so -+ + # Sets up user limits, please uncomment and read /etc/security/limits.conf # to enable this functionality. - # session required pam_limits.so -