Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-portage/squashed-portage: Version Bump
Package-Manager: portage-2.2.12
- Loading branch information
Showing
4 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST squashed-portage-0.16.tar.xz 5364 SHA256 39de858ad75a5f370db463922b73bb3e1c622068e97ca2e76761ab7313bc40e6 SHA512 e113bc0d52c76fd6305c5459954ba0e5f5c36c5c40c10669dbc0f9e77e0ddc5560b634868a47af5b4263bdcc80c705f66a5eb562a98c7d1697a00ae19befa232 WHIRLPOOL 9757c41c8a422c081e2b5f4ca105b150863c3581567b38388b82770b796c284a337fa79fd32fec8c2c022a350e25dc2976ad1a12cb3e6b672a4aafdfb465fdbf | ||
DIST squashed-portage-0.17.tar.xz 5712 SHA256 0e605156acd066790cd6dad1e9508d85c271b90281c84c711d6df5572a880a64 SHA512 fc4ee8b9ec6ed3d7c86e5aa1745d0c9872a479a04374d92ba3fe5c2d9cd319bb62d3a013d3af3bdd99f2e0222759b39401c693ef3668ef5727aa438f8e0e34e3 WHIRLPOOL 2298779df97a072e8afc648b96c32ef6f454940cfac01e390d700aa7738f82ae5a291eca4ca7a72c6e2569c83fa9c1845852f9812660686fef32c2055382382d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Copyright 1999-2014 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 ) | ||
|
||
inherit multilib prefix python-r1 systemd | ||
|
||
DESCRIPTION="Tools to handle squashed portage" | ||
HOMEPAGE="http://www.j-schmitz.net/projects/squashed-portage/" | ||
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" | ||
|
||
SLOT="0" | ||
LICENSE="GPL-3" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="aufs zsync" | ||
|
||
RDEPEND=" | ||
!<sys-apps/openrc-0.17 | ||
dev-python/progressbar[${PYTHON_USEDEP}] | ||
sys-fs/squashfs-tools:0 | ||
aufs? ( sys-fs/aufs-util ) | ||
zsync? ( net-misc/zsync )" | ||
DEPEND="" | ||
|
||
RESTRICT="mirror" | ||
|
||
src_prepare() { | ||
eprefixify * | ||
sed \ | ||
-e "s:GENTOOLIBDIR:$(get_libdir):g" \ | ||
-i get-squashed-portage.bash || die | ||
|
||
if use zsync; then | ||
sed \ | ||
-e 's:get-squashed-portage:get-squashed-portage -z:g' \ | ||
-i squashed-portage.init || die | ||
fi | ||
} | ||
|
||
src_install() { | ||
newbin get-squashed-portage.bash get-squashed-portage | ||
|
||
python_foreach_impl python_newscript fetch-squashed-portage.py fetch-squashed-portage | ||
|
||
newinitd ${PN}.init ${PN} | ||
newconfd ${PN}.confd ${PN} | ||
|
||
insinto /etc/ | ||
doins ${PN}.conf | ||
|
||
systemd_dounit *.service *.mount *.target | ||
systemd_dotmpfilesd squashed-portage.tmpfiles.conf | ||
use aufs && systemd_newunit usr-portage.mount.aufs usr-portage.mount | ||
} | ||
|
||
pkg_postinst() { | ||
einfo "Starting with 0.16 some fundamental things have changed:" | ||
einfo " - The get-squashed-portage does no longer stop the squashed-portage service. As a result," | ||
einfo " you have to change your sync to something like:" | ||
einfo "" | ||
einfo " /etc/init.d/squashed-portage stop" | ||
einfo " get-squashed-portage" | ||
einfo " /etc/init.d/squashed-portage start" | ||
einfo "" | ||
einfo " - It is no longer supported to have anything mounted below PORTDIR." | ||
einfo " You are encouraged to set PKGDIR / DISTDIR in /etc/portage/make.conf or make sure you umount/remount" | ||
einfo " the filesystems before starting or stopping the squashed-portage service." | ||
echo "" | ||
ewarn "The config file location changed" | ||
ewarn "please check /etc/${PN}.conf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters