Merge branch 'master' into 'master'
Add apparmor support for torbrowser-launcher See merge request src_prepare/src_prepare-overlay!74
This commit is contained in:
commit
94a287515f
@ -22,13 +22,14 @@ fi
|
|||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE="apparmor"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
||||||
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
||||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
apparmor? ( sys-libs/libapparmor )
|
||||||
"
|
"
|
||||||
|
|
||||||
PATCHES=(
|
PATCHES=(
|
||||||
@ -39,8 +40,10 @@ python_install_all() {
|
|||||||
distutils-r1_python_install_all
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
# delete apparmor profiles
|
# delete apparmor profiles
|
||||||
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
if ! use apparmor; then
|
||||||
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
||||||
|
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
@ -22,13 +22,14 @@ fi
|
|||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE="apparmor"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
||||||
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
||||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
apparmor? ( sys-libs/libapparmor )
|
||||||
"
|
"
|
||||||
|
|
||||||
PATCHES=(
|
PATCHES=(
|
||||||
@ -39,8 +40,10 @@ python_install_all() {
|
|||||||
distutils-r1_python_install_all
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
# delete apparmor profiles
|
# delete apparmor profiles
|
||||||
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
if ! use apparmor; then
|
||||||
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
||||||
|
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
Loading…
Reference in New Issue
Block a user