public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/
@ 2011-08-06 19:43 Alec Warner
  0 siblings, 0 replies; 5+ messages in thread
From: Alec Warner @ 2011-08-06 19:43 UTC (permalink / raw
  To: gentoo-commits

commit:     beac89bf236b76fa8ffcc77345a2a1e83199890e
Author:     Alec Warner <antarus <AT> scriptkitty <DOT> com>
AuthorDate: Sat Aug  6 19:46:54 2011 +0000
Commit:     Alec Warner <antarus <AT> gentoo <DOT> org>
CommitDate: Sat Aug  6 19:46:54 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=beac89bf

Fixed bug in uuid generation.

---
 app-portage/gentoostats/gentoostats-9999.ebuild |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app-portage/gentoostats/gentoostats-9999.ebuild b/app-portage/gentoostats/gentoostats-9999.ebuild
index 0b5ddbc..36797c7 100644
--- a/app-portage/gentoostats/gentoostats-9999.ebuild
+++ b/app-portage/gentoostats/gentoostats-9999.ebuild
@@ -66,7 +66,7 @@ pkg_postinst() {
 		touch "${AUTHFILE}"
 		echo "[AUTH]" >> "${AUTHFILE}"
 		echo -n "UUID : " >> "${AUTHFILE}"
-		$(generate_uuid) >> "${AUTHFILE}"
+		generate_uuid >> "${AUTHFILE}"
 		echo -n "PASSWD : " >> "${AUTHFILE}"
 		< /dev/urandom tr -dc a-zA-Z0-9 | head -c16 >> "${AUTHFILE}"
 	fi



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/
@ 2011-08-06 19:43 Alec Warner
  0 siblings, 0 replies; 5+ messages in thread
From: Alec Warner @ 2011-08-06 19:43 UTC (permalink / raw
  To: gentoo-commits

commit:     c568088770c0fafbc739a8de976aad88cc480bb5
Author:     Alec Warner <antarus <AT> scriptkitty <DOT> com>
AuthorDate: Sat Aug  6 19:41:05 2011 +0000
Commit:     Alec Warner <antarus <AT> gentoo <DOT> org>
CommitDate: Sat Aug  6 19:41:05 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=c5680887

Add Gentoostats ebuild

---
 app-portage/gentoostats/gentoostats-9999.ebuild |   75 +++++++++++++++++++++++
 1 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/app-portage/gentoostats/gentoostats-9999.ebuild b/app-portage/gentoostats/gentoostats-9999.ebuild
new file mode 100644
index 0000000..0b5ddbc
--- /dev/null
+++ b/app-portage/gentoostats/gentoostats-9999.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit distutils python git
+
+DESCRIPTION="Package statistics client"
+HOMEPAGE="http://soc.dev.gentoo.org/gentoostats"
+SRC_URI=""
+
+EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoostats.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+	sys-apps/portage
+    >=app-portage/gentoolkit-0.3.0.2
+	dev-python/argparse
+	dev-python/simplejson"
+
+src_compile() {
+	pushd "client"
+	distutils_src_compile
+}
+
+src_install() {
+	pushd "client"
+	distutils_src_install
+
+	dodir /etc/gentoostats || die
+	insinto /etc/gentoostats
+	doins payload.cfg || die
+
+	# TODO(antarus): Vikram mentioned something along the lines of
+	# userpriv not letting you have files owned by portage so we end up
+	# setting perms in postinst instead.
+	fowners root:portage /etc/gentoostats/payload.cfg || die
+	fperms 0640 /etc/gentoostats/payload.cfg || die
+}
+
+generate_uuid() {
+	if [[ -e /proc/sys/kernel/random/uuid ]]; then
+		cat /proc/sys/kernel/random/uuid
+	else
+		AUTH1=$(< /dev/urandom tr -dc a-zA-Z0-9 | head -c8)
+		AUTH2=$(< /dev/urandom tr -dc a-zA-Z0-9 | head -c4)
+		AUTH3=$(< /dev/urandom tr -dc a-zA-Z0-9 | head -c4)
+		AUTH4=$(< /dev/urandom tr -dc a-zA-Z0-9 | head -c4)
+		AUTH5=$(< /dev/urandom tr -dc a-zA-Z0-9 | head -c12)
+		echo "${AUTH1}-${AUTH2}-${AUTH3}-${AUTH4}-${AUTH5}"
+	fi
+}
+
+pkg_postinst() {
+	distutils_pkg_postinst
+
+	AUTHFILE="${ROOT}/etc/gentoostats/auth.cfg"
+	if ! [[ -f "${AUTHFILE}" ]]; then
+		elog "Generating uuid and password in ${AUTHFILE}"
+		touch "${AUTHFILE}"
+		echo "[AUTH]" >> "${AUTHFILE}"
+		echo -n "UUID : " >> "${AUTHFILE}"
+		$(generate_uuid) >> "${AUTHFILE}"
+		echo -n "PASSWD : " >> "${AUTHFILE}"
+		< /dev/urandom tr -dc a-zA-Z0-9 | head -c16 >> "${AUTHFILE}"
+	fi
+	chown root:portage "${AUTHFILE}"
+	chmod 0640 "${AUTHFILE}"
+}



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/
@ 2012-04-27 14:23 Johannes Huber
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Huber @ 2012-04-27 14:23 UTC (permalink / raw
  To: gentoo-commits

commit:     31e52609cae83456bc1d782201e92a6b5842a090
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 27 14:12:14 2012 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Fri Apr 27 14:12:14 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=31e52609

[app-portage/gentoostats] Fix repoman issues.

(Portage version: 2.2.0_alpha101/git/Linux x86_64, signed Manifest commit with key F3CFD2BD)

---
 app-portage/gentoostats/gentoostats-9999.ebuild |    8 ++++----
 app-portage/gentoostats/metadata.xml            |    5 +++++
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/app-portage/gentoostats/gentoostats-9999.ebuild b/app-portage/gentoostats/gentoostats-9999.ebuild
index 36797c7..5d1176f 100644
--- a/app-portage/gentoostats/gentoostats-9999.ebuild
+++ b/app-portage/gentoostats/gentoostats-9999.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
 EAPI=3
 
-inherit distutils python git
+inherit distutils python git-2
 
 DESCRIPTION="Package statistics client"
 HOMEPAGE="http://soc.dev.gentoo.org/gentoostats"
@@ -14,13 +14,13 @@ EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoostats.git"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS=""
 IUSE=""
 
 DEPEND=""
 RDEPEND="${DEPEND}
 	sys-apps/portage
-    >=app-portage/gentoolkit-0.3.0.2
+	>=app-portage/gentoolkit-0.3.0.2
 	dev-python/argparse
 	dev-python/simplejson"
 

diff --git a/app-portage/gentoostats/metadata.xml b/app-portage/gentoostats/metadata.xml
new file mode 100644
index 0000000..31dc017
--- /dev/null
+++ b/app-portage/gentoostats/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/
@ 2012-12-14  8:48 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2012-12-14  8:48 UTC (permalink / raw
  To: gentoo-commits

commit:     edacd34284d6fe60829dd422cc16d126a0217957
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 14 08:45:30 2012 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 14 08:45:30 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=edacd342

app-portage/gentoostats: Use virtual/python-argparse, bug #440388.

Package-Manager: portage-2.2.0_alpha148

---
 app-portage/gentoostats/ChangeLog               |    3 +++
 app-portage/gentoostats/gentoostats-9999.ebuild |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/app-portage/gentoostats/ChangeLog b/app-portage/gentoostats/ChangeLog
new file mode 100644
index 0000000..7fe6af0
--- /dev/null
+++ b/app-portage/gentoostats/ChangeLog
@@ -0,0 +1,3 @@
+  14 Dec 2012; Michał Górny <mgorny@gentoo.org> -Manifest,
+  gentoostats-9999.ebuild:
+  app-portage/gentoostats: Use virtual/python-argparse, bug #440388.

diff --git a/app-portage/gentoostats/gentoostats-9999.ebuild b/app-portage/gentoostats/gentoostats-9999.ebuild
index 5d1176f..16a23d3 100644
--- a/app-portage/gentoostats/gentoostats-9999.ebuild
+++ b/app-portage/gentoostats/gentoostats-9999.ebuild
@@ -21,7 +21,7 @@ DEPEND=""
 RDEPEND="${DEPEND}
 	sys-apps/portage
 	>=app-portage/gentoolkit-0.3.0.2
-	dev-python/argparse
+	virtual/python-argparse
 	dev-python/simplejson"
 
 src_compile() {


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/
@ 2017-03-18 16:38 Justin Lecher
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Lecher @ 2017-03-18 16:38 UTC (permalink / raw
  To: gentoo-commits

commit:     366b4d33cc2c5d7733a5b03993d87b12e3bbd891
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 18 16:38:33 2017 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Mar 18 16:38:33 2017 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=366b4d33

app-portage/gentoostats: Bump to EAPI=6 and distutils-r1

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 app-portage/gentoostats/gentoostats-9999.ebuild | 38 +++++++++++--------------
 app-portage/gentoostats/metadata.xml            |  4 ++-
 2 files changed, 19 insertions(+), 23 deletions(-)

diff --git a/app-portage/gentoostats/gentoostats-9999.ebuild b/app-portage/gentoostats/gentoostats-9999.ebuild
index 29b517d..6e55fe8 100644
--- a/app-portage/gentoostats/gentoostats-9999.ebuild
+++ b/app-portage/gentoostats/gentoostats-9999.ebuild
@@ -1,14 +1,15 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=3
+EAPI=6
 
-inherit distutils python git-2
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 git-r3
 
 DESCRIPTION="Package statistics client"
 HOMEPAGE="http://soc.dev.gentoo.org/gentoostats"
 SRC_URI=""
-
 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoostats.git"
 
 LICENSE="GPL-3"
@@ -18,29 +19,24 @@ IUSE=""
 
 DEPEND=""
 RDEPEND="${DEPEND}
-	sys-apps/portage
-	>=app-portage/gentoolkit-0.3.0.2
-	virtual/python-argparse
-	dev-python/simplejson"
+	sys-apps/portage[${PYTHON_USEDEP}]
+	>=app-portage/gentoolkit-0.3.0.2[${PYTHON_USEDEP}]
+	dev-python/simplejson[${PYTHON_USEDEP}]
+	virtual/python-argparse[${PYTHON_USEDEP}]"
 
-src_compile() {
-	pushd "client"
-	distutils_src_compile
-}
+S="${WORKDIR}"/${P}/client
 
 src_install() {
-	pushd "client"
-	distutils_src_install
+	distutils-r1_src_install
 
-	dodir /etc/gentoostats || die
 	insinto /etc/gentoostats
-	doins payload.cfg || die
+	doins payload.cfg
 
 	# TODO(antarus): Vikram mentioned something along the lines of
 	# userpriv not letting you have files owned by portage so we end up
 	# setting perms in postinst instead.
-	fowners root:portage /etc/gentoostats/payload.cfg || die
-	fperms 0640 /etc/gentoostats/payload.cfg || die
+	fowners root:portage /etc/gentoostats/payload.cfg
+	fperms 0640 /etc/gentoostats/payload.cfg
 }
 
 generate_uuid() {
@@ -57,8 +53,6 @@ generate_uuid() {
 }
 
 pkg_postinst() {
-	distutils_pkg_postinst
-
 	AUTHFILE="${ROOT}/etc/gentoostats/auth.cfg"
 	if ! [[ -f "${AUTHFILE}" ]]; then
 		elog "Generating uuid and password in ${AUTHFILE}"
@@ -69,6 +63,6 @@ pkg_postinst() {
 		echo -n "PASSWD : " >> "${AUTHFILE}"
 		< /dev/urandom tr -dc a-zA-Z0-9 | head -c16 >> "${AUTHFILE}"
 	fi
-	chown root:portage "${AUTHFILE}"
-	chmod 0640 "${AUTHFILE}"
+	chown root:portage "${AUTHFILE}" || die
+	chmod 0640 "${AUTHFILE}" || die
 }

diff --git a/app-portage/gentoostats/metadata.xml b/app-portage/gentoostats/metadata.xml
index b969149..9c7e122 100644
--- a/app-portage/gentoostats/metadata.xml
+++ b/app-portage/gentoostats/metadata.xml
@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="project"><email>maintainer-wanted@gentoo.org</email></maintainer>
+	<maintainer type="project">
+		<email>maintainer-wanted@gentoo.org</email>
+	</maintainer>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-18 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-18 16:38 [gentoo-commits] proj/betagarden:master commit in: app-portage/gentoostats/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2012-12-14  8:48 Michał Górny
2012-04-27 14:23 Johannes Huber
2011-08-06 19:43 Alec Warner
2011-08-06 19:43 Alec Warner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox