Diff sandbox-2.21 with a sandbox-2.22

/usr/portage/sys-apps/sandbox/sandbox-2.22.ebuild 2021-05-05 01:39:00.000000000 +0300
7 7

  
8 8
DESCRIPTION="sandbox'd LD_PRELOAD hack"
9 9
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Sandbox"
10
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
10
SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
11 11

  
12 12
LICENSE="GPL-2"
13 13
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86"
15 15
IUSE=""
16 16

  
17 17
DEPEND="app-arch/xz-utils
......
33 33

  
34 34
multilib_src_test() {
35 35
	# Default sandbox build will run with --jobs set to # cpus.
36
	# -j1 to prevent test faiures caused by file descriptor
37
	# injection GNU make does.
36 38
	emake -j1 check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
37 39
}
38 40

  
......
46 48
	dodoc AUTHORS ChangeLog* NEWS README
47 49
}
48 50

  
49
pkg_preinst() {
50
	chown root:portage "${ED}"/var/log/sandbox
51
	chmod 0770 "${ED}"/var/log/sandbox
52

  
53
	local v
54
	for v in ${REPLACING_VERSIONS}; do
55
		# 1.x was removed from ::gentoo in 2016
56
		if [[ ${v} == 1.* ]] ; then
57
			local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
58
			if [[ -n ${old} ]] ; then
59
				elog "Removing old sandbox libraries for you:"
60
				find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete
61
			fi
62
		fi
63
	done
64
}
65

  
66 51
pkg_postinst() {
67
	local v
68
	for v in ${REPLACING_VERSIONS}; do
69
		# 1.x was removed from ::gentoo in 2016
70
		if [[ ${v} == 1.* ]] ; then
71
			chmod 0755 "${EROOT}"/etc/sandbox.d #265376
72
		fi
73
	done
52
	chown root:portage "${EROOT}"/var/log/sandbox
53
	chmod 0770 "${EROOT}"/var/log/sandbox
74 54
}
Thank you!