From 30667ec7ae3f9e581179da35d308309bbe2f199f Mon Sep 17 00:00:00 2001 From: MarvinHatesOceans Date: Sun, 1 Nov 2020 00:11:50 +0000 Subject: [PATCH] [sys-apps/entropy] Drop old --- sys-apps/entropy/Manifest | 2 - sys-apps/entropy/entropy-322.ebuild | 119 ----------------------- sys-apps/entropy/entropy-323-r1.ebuild | 125 ------------------------- 3 files changed, 246 deletions(-) delete mode 100644 sys-apps/entropy/entropy-322.ebuild delete mode 100644 sys-apps/entropy/entropy-323-r1.ebuild diff --git a/sys-apps/entropy/Manifest b/sys-apps/entropy/Manifest index d52966c93..b07b5112b 100644 --- a/sys-apps/entropy/Manifest +++ b/sys-apps/entropy/Manifest @@ -1,3 +1 @@ -DIST entropy-322.tar.bz2 1849723 BLAKE2B 41eb6e0ab4863d5e146a3dda189d2309191987c5c6d0841eb9aaf3a05143e52ad01c279e7a7388fef38d12b6c8c18a330132db2eaab0d72ab994f073ac5c2a32 SHA512 db93698e1c290307e6e95a8e64e5b7809ec47d7f8eb53c5ae5a3b46b8c250cc1be54d66bc8085e76647d6607e12dc0eeb9203d3d1d3d00d0698f6481f2d39704 -DIST entropy-323.tar.bz2 1852689 BLAKE2B 5b390e86f332562b7b5e99ab0a5a01ec3001b71e4197d156e67403b17e915e4e94d42a7cd5f2f50c25eeb5a621779b566422a46a31c291c9a3335ebeb6294688 SHA512 f02a483833960e0241560a562de36bd0b6c7ba8912cb2d1c6cbf2ff3c84a890989ec933bee2d47b347744fd293510a05c30ba03f2dedb4e1b5ae5d00bc74c411 DIST entropy-324.tar.bz2 1855479 BLAKE2B fcc85bdfdc847b9a2e855f1474c538e98f0e771c1e5cdddf920a9be0d95ce52ebb7d6a542e8264778a1b566cd97e44ff294b44daa9781b3aa90727c131dacd27 SHA512 afe5356daf5613afc42c3e9544aea29392524717011304358c63707618fb5d39c3b6ac8f75dfdd522293aba689919d183cf1a7f4a0c79a94706e015a4a961382 diff --git a/sys-apps/entropy/entropy-322.ebuild b/sys-apps/entropy/entropy-322.ebuild deleted file mode 100644 index 725be0d87..000000000 --- a/sys-apps/entropy/entropy-322.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE="sqlite" - -inherit eutils python-single-r1 user - -DESCRIPTION="Entropy Package Manager foundation library" -HOMEPAGE="http://www.sabayon.org" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" - -IUSE="" -SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2" - -RDEPEND=">=app-misc/pax-utils-0.7 - >=app-portage/portage-utils-0.81 - dev-db/sqlite:3[soundex(+)] - net-misc/rsync - sys-apps/diffutils - sys-apps/sandbox - >=sys-apps/portage-2.1.9[${PYTHON_USEDEP}] - sys-devel/gettext - ${PYTHON_DEPS}" -DEPEND="${RDEPEND} - dev-util/intltool" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -S="${S}/lib" - -PACKAGE_MASK_CONFPATH="${ROOT}/etc/entropy/packages/package.mask" -PACKAGE_UNMASK_CONFPATH="${ROOT}/etc/entropy/packages/package.unmask" -REPO_CONFPATH="${ROOT}/etc/entropy/repositories.conf" -REPO_D_CONFPATH="${ROOT}/etc/entropy/repositories.conf.d" -ENTROPY_CACHEDIR="${ROOT}/var/lib/entropy/caches" - -pkg_setup() { - python-single-r1_pkg_setup - # Can: - # - update repos - # - update security advisories - # - handle on-disk cache (atm) - enewgroup entropy || die "failed to create entropy group" - # Create unprivileged entropy user - enewgroup entropy-nopriv || die "failed to create entropy-nopriv group" - enewuser entropy-nopriv -1 -1 -1 entropy-nopriv || die "failed to create entropy-nopriv user" -} - -src_install() { - emake DESTDIR="${D}" LIBDIR="usr/lib" PYTHON_SITEDIR="$(python_get_sitedir)" \ - install || die "make install failed" - python_optimize -} - -pkg_preinst() { - local pyc=${EROOT}/usr/lib/entropy/lib/kswitch/__init__.pyc - rm -fv "${pyc}" -} - -pkg_postinst() { - for ex_conf in "${REPO_D_CONFPATH}"/_entropy_sabayon-limbo.example; do - real_conf="${ex_conf%.example}" - if [ -f "${real_conf}" ] || [ -f "${real_conf/_}" ]; then - # skip installation then - continue - fi - elog "Installing: ${real_conf}" - cp "${ex_conf}" "${real_conf}" -p - done - - # Copy config files over - for cfg in "${PACKAGE_MASK_CONFPATH}" "${PACKAGE_UNMASK_CONFPATH}" "${REPO_CONFPATH}"; do - if [ -f "${cfg}.example" ] && [ ! -f "${cfg}" ]; then - elog "Copying ${cfg}.example over to ${cfg}" - cp -p "${cfg}.example" "${cfg}" - fi - done - - if [ -d "${ENTROPY_CACHEDIR}" ]; then - einfo "Purging current Entropy cache" - rm -rf "${ENTROPY_CACHEDIR}"/* - fi - - # Fixup Entropy Resources Lock, and /etc/entropy/packages - # files permissions. This fixes unprivileged Entropy Library usage - local res_file="${ROOT}"/var/lib/entropy/client/database/*/.using_resources - if [ -f "${res_file}" ]; then - chown root:entropy "${res_file}" - chmod g+rw "${res_file}" - chmod o+r "${res_file}" - fi - local pkg_files="package.mask package.unmask package.mask.d package.unmask.d" - local pkg_file - for pkg_file in ${pkg_files}; do - pkg_file="${ROOT}/etc/entropy/packages/${pkg_file}" - recursive="" - if [ -d "${pkg_file}" ]; then - recursive="-R" - fi - if [ -e "${pkg_file}" ]; then - chown ${recursive} root:entropy "${pkg_file}" - chmod ${recursive} go+r "${pkg_file}" - fi - done - - # Setup Entropy Library directories ownership - chown root:entropy "${ROOT}/var/lib/entropy" # no recursion - chown root:entropy "${ROOT}/var/lib/entropy/client/packages" # no recursion - chown root:entropy "${ROOT}/var/log/entropy" # no recursion - - elog "If you want to enable Entropy packages delta download support, please" - elog "install dev-util/bsdiff." -} diff --git a/sys-apps/entropy/entropy-323-r1.ebuild b/sys-apps/entropy/entropy-323-r1.ebuild deleted file mode 100644 index cd2629cd4..000000000 --- a/sys-apps/entropy/entropy-323-r1.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2019 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_6 python3_7 python3_8 ) -PYTHON_REQ_USE="sqlite" - -inherit eutils python-r1 user - -DESCRIPTION="Entropy Package Manager foundation library" -HOMEPAGE="http://www.sabayon.org" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" - -IUSE="" -SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2" - -RDEPEND=">=app-misc/pax-utils-0.7 - >=app-portage/portage-utils-0.81 - dev-db/sqlite:3[soundex(+)] - net-misc/rsync - sys-apps/diffutils - sys-apps/sandbox - >=sys-apps/portage-2.1.9[${PYTHON_USEDEP}] - sys-devel/gettext - ${PYTHON_DEPS}" -DEPEND="${RDEPEND} - dev-util/intltool" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -S="${S}/lib" - -PACKAGE_MASK_CONFPATH="${ROOT}/etc/entropy/packages/package.mask" -PACKAGE_UNMASK_CONFPATH="${ROOT}/etc/entropy/packages/package.unmask" -REPO_CONFPATH="${ROOT}/etc/entropy/repositories.conf" -REPO_D_CONFPATH="${ROOT}/etc/entropy/repositories.conf.d" -ENTROPY_CACHEDIR="${ROOT}/var/lib/entropy/caches" - -PATCHES=( - "${FILESDIR}/0001-entropy.client-fixes-for-dictionary-changed-size-dur.patch" -) - -pkg_setup() { - # Can: - # - update repos - # - update security advisories - # - handle on-disk cache (atm) - enewgroup entropy || die "failed to create entropy group" - # Create unprivileged entropy user - enewgroup entropy-nopriv || die "failed to create entropy-nopriv group" - enewuser entropy-nopriv -1 -1 -1 entropy-nopriv || die "failed to create entropy-nopriv user" -} - -src_install() { - installation() { - emake DESTDIR="${D}" LIBDIR="usr/lib" PYTHON_SITEDIR="$(python_get_sitedir)" \ - install || die "make install failed" - python_optimize - } - python_foreach_impl installation -} - -pkg_preinst() { - local pyc=${EROOT}/usr/lib/entropy/lib/kswitch/__init__.pyc - rm -fv "${pyc}" -} - -pkg_postinst() { - for ex_conf in "${REPO_D_CONFPATH}"/_entropy_sabayon-limbo.example; do - real_conf="${ex_conf%.example}" - if [ -f "${real_conf}" ] || [ -f "${real_conf/_}" ]; then - # skip installation then - continue - fi - elog "Installing: ${real_conf}" - cp "${ex_conf}" "${real_conf}" -p - done - - # Copy config files over - for cfg in "${PACKAGE_MASK_CONFPATH}" "${PACKAGE_UNMASK_CONFPATH}" "${REPO_CONFPATH}"; do - if [ -f "${cfg}.example" ] && [ ! -f "${cfg}" ]; then - elog "Copying ${cfg}.example over to ${cfg}" - cp -p "${cfg}.example" "${cfg}" - fi - done - - if [ -d "${ENTROPY_CACHEDIR}" ]; then - einfo "Purging current Entropy cache" - rm -rf "${ENTROPY_CACHEDIR}"/* - fi - - # Fixup Entropy Resources Lock, and /etc/entropy/packages - # files permissions. This fixes unprivileged Entropy Library usage - local res_file="${ROOT}"/var/lib/entropy/client/database/*/.using_resources - if [ -f "${res_file}" ]; then - chown root:entropy "${res_file}" - chmod g+rw "${res_file}" - chmod o+r "${res_file}" - fi - local pkg_files="package.mask package.unmask package.mask.d package.unmask.d" - local pkg_file - for pkg_file in ${pkg_files}; do - pkg_file="${ROOT}/etc/entropy/packages/${pkg_file}" - recursive="" - if [ -d "${pkg_file}" ]; then - recursive="-R" - fi - if [ -e "${pkg_file}" ]; then - chown ${recursive} root:entropy "${pkg_file}" - chmod ${recursive} go+r "${pkg_file}" - fi - done - - # Setup Entropy Library directories ownership - chown root:entropy "${ROOT}/var/lib/entropy" # no recursion - chown root:entropy "${ROOT}/var/lib/entropy/client/packages" # no recursion - chown root:entropy "${ROOT}/var/log/entropy" # no recursion - - elog "If you want to enable Entropy packages delta download support, please" - elog "install dev-util/bsdiff." -}