Skip to content
Browse files

FL-318: portage-utils fork and qlop -s fix

  • Loading branch information...
1 parent e96be28 commit 76ebcd25a569b52bfc88a48cdc367d8fa63e7a71 @jeanfrancisroy jeanfrancisroy committed Jan 10, 2013
View
10 app-portage/portage-utils/Manifest
@@ -0,0 +1,10 @@
+DIST portage-utils-0.10.tar.xz 381996 SHA256 da4109b27dc2a791874022e56763a7563708f77de3c3da709b27b8cb74982f8a SHA512 a7caa280d459e1d774e1865c59a01825763f63c1d4efa9da55ca710571149a561bb5fe7cb95ab97d2f74d044d6cc140c18ce7c812b62ebc48f785e65883d812f WHIRLPOOL 06b7c5e3ae9454cd20f3a611564b10afa630d8c332f66ebb3789a6d64ca3e5ba3d5953375c715d94fd7f1add27bce8f4f38a211171ce5b8c0001f70e696a7304
+DIST portage-utils-0.11.tar.xz 388004 SHA256 5bd1abe328c6ea82177289143a9be026afaf18c752dc23c486d6248dd582c260 SHA512 2bc9b976d9c2ca6c415f8c4fabe655b8f83a6af6e121e91423cfc7129debf5146f09499fe9cecef19a72cbbb6437865805fabe73001e2031ce67e32fbdb23deb WHIRLPOOL 755b61935afad23179a690e841cd19a32842808d149a9e3756129aec28a74217cdb81b06ccae2909cfe65d0657ed5f4ce82568b9408e2c65024a7bfe97dc62cf
+DIST portage-utils-0.20.tar.xz 385328 SHA256 bfe774047f09a746334648a8630321aaf8d190538ea2942bdd0f509ce74885c9 SHA512 a78ea515e9094e62ecb69ddc46d06efa1cd472f2288d9df8626e0e4a0605819197a3f5ae7a6802aa26698e9cb68606574e71d99aa8d1fab54cc0b58a3f181934 WHIRLPOOL d11b9564dfca159b8857bc21c207be6fbd7de578a28bd9100a7d5de6e6280c904611f2a9c9b88b624c21372916241d76b8f460acf7fd8798574bc4307d5413da
+DIST portage-utils-0.21.tar.xz 387396 SHA256 7531ef71e82fd1a4f26fc93d8ee1f51ae9d1413626064ae5e3e95b2d875a7e23 SHA512 9f42d03356802b1829ef47d44e1e1e81006601012d72e54ff3fb0a963081241338097101c6d26ba94c61572150e5f560d23f8478240aba802c16ab8a225a10e6 WHIRLPOOL ff32a0b30094af149177ee2a000b54e31dfe8c3637eaf3be1a155c3752725e08a35f8d2dcc0e5558c661ef65c8fdccb3bd9406636f5cb569c1d6fb884facd242
+DIST portage-utils-0.3.1.tar.bz2 89122 SHA256 2e14e795e2bfd9078e6b40f8e4fbd183af5ac9f02e8a2140aaa1a92bbf8cc493 SHA512 0b9e246ad1caf380a574a957afc2f68c9879f4db55e90325177261d3488b4afad1638fd7f4c77f1bb30d1c6dd885873c124a2d5fff5829d0c55de8a214eb0ecc WHIRLPOOL dc879052524088c5b096415fe3af06d7c3f6be3648d4043dbb7f58fc53846a5d68bcbe035404d4bc608d760da2d82c5c1ac3406f790d984d17daf25546bb13a9
+DIST portage-utils-0.4.tar.bz2 89409 SHA256 334af67cadb485db2f7269458fd7cc7f3c03742dd420b85ed1b2536735fdc645 SHA512 6c61f383b8fbf187acb1de22c94f885790fa5c9699613ae67f619c925521bef286d4781237a092cfbcd25671acd48d5c3a8efc928aece810f1ee779ca41d6874 WHIRLPOOL 2bae830d9cb6e91b58775e79f059b95bb1480a918f5f8f4a47e6c8283644d2101451759cf662816b8b64e199e04db0a80ca65e9ba1ab23dafae12346f3d0995e
+DIST portage-utils-0.5.tar.xz 99916 SHA256 be8992cc7f4cfc0225d773065ce4c75b1bc6d7c1cab9e44862716f7f697b76bf SHA512 6f72e2b08f46df1ae29047e4cb8137c649ca4bf4b99eec31031986c5b2ee1d9f615a716bf96a1114bda5dec47e56123fefaa2ce8cffe30338c1264e9154c2276 WHIRLPOOL 88a9309216750cb0a143236a3c395d2dd9e5e38213963312d5ea232e250a8cc632184da2de9010fcdee373504855d24819d6615b60af287239fbd693e562cbe3
+DIST portage-utils-0.6.tar.xz 101672 SHA256 1c902be00679910c04cf70ef2d765388213c7bb339ffd47c660e681a6eac88a1 SHA512 b6b11741bf6bd94f9dbd5418468c47f1410ef192ad37f8764364869c52ce9dbb15db12099965d06e0daf4c26d214b12e230f2c85ce1e00fc85d1415b93ec81e5 WHIRLPOOL f0c21db0a32859f80695280a97ba90327c30aa691c68be5ec224f9a2d389cd3042becef31fd896596281404f86f80fb0ab15f33bf56206711363771bf815cfb7
+DIST portage-utils-0.8.tar.xz 378220 SHA256 d7a0dd6f8afc959f965a0dfcba12e808f623035cf1a38f3be4a5765d42174c74 SHA512 991dd836862a856d248bb93100ab94c0365d3fc3caf10931119565c108cb8085cf4aaa8779ae77b2c98fe3a4d26c8585c9d00d645c1bacb6b2b7bf18158fb6cd WHIRLPOOL f529986e4479ac834d220a40734655434d0fe262d1dec2ff1eaeeb44c2c356caf6bcf90afaeb8727e5b98c873d8f1b7133896ea9029f2dc1b13b04c4c0dee943
+DIST portage-utils-0.9.tar.xz 378044 SHA256 dc6ca6c8394a17e47966e7a5aa21030690abd80e493e59780b85c561307c4c58 SHA512 15982f2e55f5307ea82076b53ca604f2a5e683836cfb669e05fb1cf8a18889d82223a05748b745e179dc6c1bb9f88b08460717a9a7eae5ce5d31a0b7d70290cc WHIRLPOOL cfaab6d47ca15662888f3492001507f9c3dc29694a2f3fd44268eee7c9bfb83cb3a31d6fb7ce25b49d8ced311f6ea60828ad1c62f635bae1f35b20e0c2275bd4
View
50 app-portage/portage-utils/files/portage-utils-0.10-funtoo-sync.patch
@@ -0,0 +1,50 @@
+diff -ur portage-utils-0.21.orig/qlop.c portage-utils-0.21/qlop.c
+--- portage-utils-0.21.orig/qlop.c 2013-01-09 13:30:29.991861128 -0500
++++ portage-utils-0.21/qlop.c 2013-01-09 13:31:21.397881153 -0500
+@@ -311,35 +311,32 @@
+ {
+ FILE *fp;
+ size_t buflen;
+- char *buf, *p, *q;
++ char *buf, *path, *pathend;
+ time_t t;
+
+ if ((fp = fopen(logfile, "r")) == NULL) {
+- warnp("Could not open logfile '%s'", logfile);
++ printf("Could not open logfile '%s'", logfile);
+ return;
+ }
+
+ buf = NULL;
+ while (getline(&buf, &buflen, fp) != -1) {
+- if (strlen(buf) < 35)
++ if (strlen(buf) < 24)
+ continue;
+- if (strncmp(buf+12, "=== Sync completed with", 23) != 0)
++
++ if (strncmp(buf+12, ">>> Git pull", 12) != 0)
+ continue;
+
+- if ((p = strchr(buf, '\n')) != NULL)
+- *p = 0;
+- if ((p = strchr(buf, ':')) == NULL)
++ if (strstr(buf, "success") == NULL)
+ continue;
+- *p = 0;
+- q = p+2;
+
+- t = (time_t)atol(buf);
++ path = strchr(buf, '/');
++ pathend = strchr(path, ' ');
++ *pathend = 0;
+
+- if ((p = strstr(q, "with")) == NULL)
+- continue;
+- q = p + 5;
++ t = (time_t)atol(buf);
+
+- printf("%s >>> %s%s%s\n", chop_ctime(t), GREEN, q, NORM);
++ printf("%s >>> %sSync to %s successful %s \n", chop_ctime(t), GREEN, path, NORM);
+ }
+
+ free(buf);
View
18 app-portage/portage-utils/files/portage-utils-0.10-x86-test.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/412067
+
+--- tests/profile/dotest 19 May 2012 13:20:20 -0000 1.2
++++ tests/profile/dotest 8 Jun 2012 04:42:04 -0000
+@@ -31,10 +31,11 @@ unset $(qenv | awk '{print $1}')
+
+ # test vars that should default to known values.
+ # cannot test too many more as portage's default
+-# make.globals will kick in.
++# make.globals will kick in. also can't test
++# some vars (e.g. PORTAGE_BINHOST) that we default
++# on some platforms.
+ tenv inv ROOT /
+ tenv inv ARCH
+-tenv inv PORTAGE_BINHOST
+
+ # this validates simple stuff
+ tenv 1 ARCH x86
View
50 app-portage/portage-utils/files/portage-utils-0.21-funtoo-sync.patch
@@ -0,0 +1,50 @@
+diff -ur portage-utils-0.21.orig/qlop.c portage-utils-0.21/qlop.c
+--- portage-utils-0.21.orig/qlop.c 2013-01-09 13:30:29.991861128 -0500
++++ portage-utils-0.21/qlop.c 2013-01-09 13:31:21.397881153 -0500
+@@ -311,35 +311,32 @@
+ {
+ FILE *fp;
+ size_t buflen;
+- char *buf, *p, *q;
++ char *buf, *path, *pathend;
+ time_t t;
+
+ if ((fp = fopen(logfile, "r")) == NULL) {
+- warnp("Could not open logfile '%s'", logfile);
++ printf("Could not open logfile '%s'", logfile);
+ return;
+ }
+
+ buf = NULL;
+ while (getline(&buf, &buflen, fp) != -1) {
+- if (strlen(buf) < 35)
++ if (strlen(buf) < 24)
+ continue;
+- if (strncmp(buf+12, "=== Sync completed with", 23) != 0)
++
++ if (strncmp(buf+12, ">>> Git pull", 12) != 0)
+ continue;
+
+- if ((p = strchr(buf, '\n')) != NULL)
+- *p = 0;
+- if ((p = strchr(buf, ':')) == NULL)
++ if (strstr(buf, "success") == NULL)
+ continue;
+- *p = 0;
+- q = p+2;
+
+- t = (time_t)atol(buf);
++ path = strchr(buf, '/');
++ pathend = strchr(path, ' ');
++ *pathend = 0;
+
+- if ((p = strstr(q, "with")) == NULL)
+- continue;
+- q = p + 5;
++ t = (time_t)atol(buf);
+
+- printf("%s >>> %s%s%s\n", chop_ctime(t), GREEN, q, NORM);
++ printf("%s >>> %sSync to %s successful %s \n", chop_ctime(t), GREEN, path, NORM);
+ }
+
+ free(buf);
View
8 app-portage/portage-utils/files/post_sync
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Copyright 2006-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+for f in /etc/portage/postsync.d/* ; do
+ [ -x "${f}" ] && "${f}"
+done
+:
View
3 app-portage/portage-utils/files/q-reinitialize
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -x /usr/bin/q ] && /usr/bin/q -r ${PORTAGE_QUIET:+-q}
+:
View
7 app-portage/portage-utils/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>portage-utils@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
View
66 app-portage/portage-utils/portage-utils-0.10-r1.ebuild
@@ -0,0 +1,66 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+IUSE="static"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-x86-test.patch #412067
+ epatch "${FILESDIR}"/${P}-funtoo-sync.patch #FL-318
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
65 app-portage/portage-utils/portage-utils-0.10.ebuild
@@ -0,0 +1,65 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-x86-test.patch #412067
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
61 app-portage/portage-utils/portage-utils-0.11.ebuild
@@ -0,0 +1,61 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static"
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
61 app-portage/portage-utils/portage-utils-0.20.ebuild
@@ -0,0 +1,61 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static"
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
65 app-portage/portage-utils/portage-utils-0.21-r1.ebuild
@@ -0,0 +1,65 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs eutils
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~*"
+IUSE="static"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-funtoo-sync.patch"
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
61 app-portage/portage-utils/portage-utils-0.21.ebuild
@@ -0,0 +1,61 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static"
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}
View
52 app-portage/portage-utils/portage-utils-0.3.1.ebuild
@@ -0,0 +1,52 @@
+# Distributed under the terms of the GNU General Public License v2
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
+IUSE="static"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e 's:\[\[:[:' -e 's:\]\]:]:' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ use static && append-ldflags -static
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}
View
52 app-portage/portage-utils/portage-utils-0.4.ebuild
@@ -0,0 +1,52 @@
+# Distributed under the terms of the GNU General Public License v2
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="static"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e 's:\[\[:[:' -e 's:\]\]:]:' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ use static && append-ldflags -static
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}
View
48 app-portage/portage-utils/portage-utils-0.5.ebuild
@@ -0,0 +1,48 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd"
+IUSE="static"
+
+src_compile() {
+ tc-export CC
+ use static && append-ldflags -static
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}
View
48 app-portage/portage-utils/portage-utils-0.6.ebuild
@@ -0,0 +1,48 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd"
+IUSE="static"
+
+src_compile() {
+ tc-export CC
+ use static && append-ldflags -static
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}
View
54 app-portage/portage-utils/portage-utils-0.8.ebuild
@@ -0,0 +1,54 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="static"
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if ! use kernel_linux || has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${D}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${ROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x /etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x /etc/portage/postsync.d/q-reinitialize"
+}
View
61 app-portage/portage-utils/portage-utils-0.9.ebuild
@@ -0,0 +1,61 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="small and fast portage helper tools written in C"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static"
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf --with-eprefix="${EPREFIX}"
+ else
+ tc-export CC
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ prepalldocs
+
+ exeinto /etc/portage/bin
+ doexe "${FILESDIR}"/post_sync || die
+ insinto /etc/portage/postsync.d
+ doins "${FILESDIR}"/q-reinitialize || die
+
+ # Portage fixes shebangs, we just need to fix the paths in the files
+ sed -i \
+ -e "s:\(/etc/portage/postsync.d\|/usr/bin/q\):${EPREFIX}&:g" \
+ "${ED}"/etc/portage/bin/post_sync \
+ "${ED}"/etc/portage/postsync.d/q-reinitialize || die
+}
+
+pkg_preinst() {
+ # preserve +x bit on postsync files #301721
+ local x
+ pushd "${ED}" >/dev/null
+ for x in etc/portage/postsync.d/* ; do
+ [[ -x ${EROOT}/${x} ]] && chmod +x "${x}"
+ done
+}
+
+pkg_postinst() {
+ elog "${EPREFIX}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"
+ elog "If you wish for it to be automatically run at the end of every --sync:"
+ elog " # chmod +x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+ elog "Normally this should only take a few seconds to run but file systems"
+ elog "such as ext3 can take a lot longer. To disable, simply do:"
+ elog " # chmod -x ${EPREFIX}/etc/portage/postsync.d/q-reinitialize"
+}

0 comments on commit 76ebcd2

Please sign in to comment.
Something went wrong with that request. Please try again.