From c5283d322accc6097afec74eab24550829788bab Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Mar 2018 04:19:44 +0000 Subject: gentoo resync : 23.03.2018 --- sys-apps/entropy/Manifest | 2 +- sys-apps/entropy/entropy-302-r1.ebuild | 114 +++++++++++++++++++++++++++++++++ sys-apps/entropy/entropy-302.ebuild | 111 -------------------------------- 3 files changed, 115 insertions(+), 112 deletions(-) create mode 100644 sys-apps/entropy/entropy-302-r1.ebuild delete mode 100644 sys-apps/entropy/entropy-302.ebuild (limited to 'sys-apps/entropy') diff --git a/sys-apps/entropy/Manifest b/sys-apps/entropy/Manifest index d92d41bc18fc..0c04d381fcbb 100644 --- a/sys-apps/entropy/Manifest +++ b/sys-apps/entropy/Manifest @@ -1,3 +1,3 @@ DIST entropy-302.tar.bz2 1701434 BLAKE2B 6e95c000921ddcbf2dd360b841245b9d1ea3e0b14aa5c3d9c532cfb0c56ab9746549d39ec5f27a22d3fed3e1e1fa809fc8e443c212403c4c22fe87af8a4b5955 SHA512 9c3e577b9d3d94ec8491fc10012aec1347bfe440c8bdc473df73e424ae4e3eb89bf96e31c444e8d6ff7574848a6ac44f5ed114bc90d2e6b03e4a00f9873c027e -EBUILD entropy-302.ebuild 3165 BLAKE2B ab1d1188b12b1b43c9c461c634a2f2b5494428b794477d067ad3998c47e0aea3ef34d0a7f979affa3cf6144326a366eda35f393a75bbf964bdb2c0417e366590 SHA512 bdbd6574adabbc74f1c844438e25e4f148cd9f1c8e66d2dd016f002240fe89f4fe561b41bbbda7d2c2181f5f9cebfad2d81ca09d09c309b76842c540afe0de35 +EBUILD entropy-302-r1.ebuild 3219 BLAKE2B a7958b38a68343672ef0bbf0cb5ba5689709316b0becb42960b647485f98c72c1aa14ffbb8afa9f875505388f1594cfe3a1670cd87c3d7fc8e6979008576c5a7 SHA512 85016151e842a5799a2956c27fd7d6bc6d9d8496eb42bde757d36327af76b37d319366cfb83770ace69b3fd8c2fa7c8f8039bb6dadca7e610ec3af01d37b5fa1 MISC metadata.xml 251 BLAKE2B 6092e9d1541af183e24d9f6d2eadb7e9dcac2ce623e0f0487448129cc529e6e824d327243cf04f7f4d32f39cf883b7918b3eb2e5d056e7568fbf6b52aea58bde SHA512 bb292278e0e82efd7370aa9e67eab1ec2c2779afbadf10c74fc4e909ea87cdd1ac1ae284c49ca8b910124010237bd19407338bf9290f718637b1a9a7c311a174 diff --git a/sys-apps/entropy/entropy-302-r1.ebuild b/sys-apps/entropy/entropy-302-r1.ebuild new file mode 100644 index 000000000000..60af0793b789 --- /dev/null +++ b/sys-apps/entropy/entropy-302-r1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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 + dev-db/sqlite:3[soundex(+)] + net-misc/rsync + sys-apps/diffutils + sys-apps/sandbox + || ( + >=sys-apps/portage-2.1.9[${PYTHON_USEDEP}] + sys-apps/portage-mgorny[${PYTHON_USEDEP}] + ) + sys-devel/gettext + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + dev-util/intltool" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +S="${S}/lib" + +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" install || die "make install failed" + + python_optimize "${D}/usr/lib/entropy/lib/entropy" +} + +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 file over + if [ -f "${REPO_CONFPATH}.example" ] && [ ! -f "${REPO_CONFPATH}" ]; then + elog "Copying ${REPO_CONFPATH}.example over to ${REPO_CONFPATH}" + cp "${REPO_CONFPATH}.example" "${REPO_CONFPATH}" -p + fi + + 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 + + echo + elog "If you want to enable Entropy packages delta download support, please" + elog "install dev-util/bsdiff." + echo +} diff --git a/sys-apps/entropy/entropy-302.ebuild b/sys-apps/entropy/entropy-302.ebuild deleted file mode 100644 index bb7cc0fb6890..000000000000 --- a/sys-apps/entropy/entropy-302.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -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 - 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" - -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" install || die "make install failed" - - python_optimize "${D}/usr/lib/entropy/lib/entropy" -} - -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 file over - if [ -f "${REPO_CONFPATH}.example" ] && [ ! -f "${REPO_CONFPATH}" ]; then - elog "Copying ${REPO_CONFPATH}.example over to ${REPO_CONFPATH}" - cp "${REPO_CONFPATH}.example" "${REPO_CONFPATH}" -p - fi - - 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 - - echo - elog "If you want to enable Entropy packages delta download support, please" - elog "install dev-util/bsdiff." - echo -} -- cgit v1.2.3