From 5c2dd97a91421e6e5f7e920579fcb88bb71e7fa7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Jan 2013 18:41:31 -0500 Subject: use /usr/share/devtools/makechrootpkg.sh instead of *.gpl2 --- src/chroot-tools/libremakepkg.gpl2 | 115 ------------------------------------- 1 file changed, 115 deletions(-) delete mode 100755 src/chroot-tools/libremakepkg.gpl2 (limited to 'src/chroot-tools/libremakepkg.gpl2') diff --git a/src/chroot-tools/libremakepkg.gpl2 b/src/chroot-tools/libremakepkg.gpl2 deleted file mode 100755 index 6b7180b..0000000 --- a/src/chroot-tools/libremakepkg.gpl2 +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# Contains code derived from devtools' "makechrootpkg" - -# Copyright 2011-2012 The Arch Linux Development Team -# Copyright 2012 Luke Shumaker -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -chroot_init() { - # make sure the chroot exists - librechroot -n "$CHROOT" -l "$CHROOTCOPY" -m - - if [[ -r "$LIBREHOME/.gnupg/pubring.gpg" ]]; then - install -D "$LIBREHOME/.gnupg/pubring.gpg" "$copydir/build/.gnupg/pubring.gpg" - fi - rm -f "$copydir/build/.makepkg.conf" - - mkdir -p "$copydir/pkgdest" - mkdir -p "$copydir/srcdest" - - MAKEPKG_CONF=$copydir/etc/makepkg.conf set_conf_makepkg PKGDEST /pkgdest - MAKEPKG_CONF=$copydir/etc/makepkg.conf set_conf_makepkg SRCDEST /srcdest - - cat > "$copydir/etc/sudoers.d/nobody-pacman" <"$copydir/chrootexec" </dev/null - cp "$pkgfile" . - repo-add repo.db.tar.gz "${pkgfile##*/}" - popd >/dev/null - done -} -chroot_copy_out() { - for pkgfile in "$copydir"/pkgdest/*.pkg.tar*; do - chown "$LIBREUSER" "$pkgfile" - mv "$pkgfile" "$PKGDEST" - if [[ $PKGDEST != . ]]; then - ln -s "$PKGDEST/${pkgfile##*/}" . - fi - done - copy_logs -} -- cgit v1.2.3-2-g168b