[gentoo-commits] proj/gentoostats:master commit in: overlay/app-portage/gentoostats/

2017-01-01 Thread Göktürk Yüksek
commit: b4dd1dcd2fecec08efef7e56660b92a791a0d105
Author: Göktürk Yüksek  gentoo  org>
AuthorDate: Mon Jan  2 06:34:17 2017 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Mon Jan  2 06:34:17 2017 +
URL:https://gitweb.gentoo.org/proj/gentoostats.git/commit/?id=b4dd1dcd

app-portage/gentoostats: remove obsolete comment

 overlay/app-portage/gentoostats/gentoostats-.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/overlay/app-portage/gentoostats/gentoostats-.ebuild 
b/overlay/app-portage/gentoostats/gentoostats-.ebuild
index 1cd8092..148785f 100644
--- a/overlay/app-portage/gentoostats/gentoostats-.ebuild
+++ b/overlay/app-portage/gentoostats/gentoostats-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -40,7 +40,6 @@ python_install_all() {
insinto /etc/gentoostats
doins client/payload.cfg
 
-   # this doesn't work, why ?
fowners root:portage /etc/gentoostats/payload.cfg
fperms 0640 /etc/gentoostats/payload.cfg
 



[gentoo-commits] proj/gentoostats:master commit in: overlay/app-portage/gentoostats/

2017-01-01 Thread Göktürk Yüksek
commit: ff736990937e18830fb0707d59b3e64ae4211d05
Author: Göktürk Yüksek  gentoo  org>
AuthorDate: Mon Jan  2 06:31:14 2017 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Mon Jan  2 06:31:14 2017 +
URL:https://gitweb.gentoo.org/proj/gentoostats.git/commit/?id=ff736990

app-portage/gentoostats: install manpages for gentoostats-{cli,send}

 overlay/app-portage/gentoostats/gentoostats-.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/overlay/app-portage/gentoostats/gentoostats-.ebuild 
b/overlay/app-portage/gentoostats/gentoostats-.ebuild
index c5a6a36..1cd8092 100644
--- a/overlay/app-portage/gentoostats/gentoostats-.ebuild
+++ b/overlay/app-portage/gentoostats/gentoostats-.ebuild
@@ -44,6 +44,7 @@ python_install_all() {
fowners root:portage /etc/gentoostats/payload.cfg
fperms 0640 /etc/gentoostats/payload.cfg
 
+   doman man/gentoostats-cli.1 man/gentoostats-send.1
dodoc docs/client.txt
 
distutils-r1_python_install_all



[gentoo-commits] proj/gentoostats:master commit in: overlay/app-portage/gentoostats/

2016-12-28 Thread Göktürk Yüksek
commit: c27dab7b20b06392cac8f22c0977a2483901bc97
Author: Göktürk Yüksek  gentoo  org>
AuthorDate: Thu Dec 29 06:25:15 2016 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Thu Dec 29 06:25:15 2016 +
URL:https://gitweb.gentoo.org/proj/gentoostats.git/commit/?id=c27dab7b

app-portage/gentoostats: add python3.4 target

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

diff --git a/overlay/app-portage/gentoostats/Manifest 
b/overlay/app-portage/gentoostats/Manifest
index 22f9336..c7e550a 100644
--- a/overlay/app-portage/gentoostats/Manifest
+++ b/overlay/app-portage/gentoostats/Manifest
@@ -1 +1 @@
-EBUILD gentoostats-.ebuild 1980 SHA256 
795589bf865fc95a3352a93b7efb2118516e4592ae41c1cdd25574d1d1416205 SHA512 
c9be012eb95fa08d42cf81114a8e2f5a105728c3d65727f1cdfef7743ff943935d4d6d665d2700994c0b82e7457752ec9b06a80b320afe93fa5f749402e0eea8
 WHIRLPOOL 
7efa48f940a05c66e5e559260a643f36b06637fa35c5c218edcdaf7fcc3a50857d0507f9a26aa47297e2646808a8882668208c15e01db9cc579321a9b0664104
+EBUILD gentoostats-.ebuild 1930 SHA256 
ea5ec9f7e35d6933bc74e21985ce9e375d7a790d77c42d97f9ad012389bad8af SHA512 
d31bbc80ed9a1b64025691b48c94a4165be24b3bdff87e1108aaed62b394de7272e0fa9bd456983502de75613c244570b80fac7ce4b77a8baed37fc9bafa3499
 WHIRLPOOL 
12cace7271b32afedbea04b7f512a42984df346115970b72c915aa2d9dba08332cc17fde89ba130d1b0d37905c4dd08ac5a65048d1dc9ab89dc6c38ba89d12d3

diff --git a/overlay/app-portage/gentoostats/gentoostats-.ebuild 
b/overlay/app-portage/gentoostats/gentoostats-.ebuild
index c863b94..c5a6a36 100644
--- a/overlay/app-portage/gentoostats/gentoostats-.ebuild
+++ b/overlay/app-portage/gentoostats/gentoostats-.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python{2_7,3_4} )
 
 inherit git-r3 distutils-r1
 



[gentoo-commits] proj/gentoostats:master commit in: overlay/app-portage/gentoostats/

2016-12-11 Thread Göktürk Yüksek
commit: b1a3e81ecba3f2d397c455b2f4f9953b9cc13064
Author: Göktürk Yüksek  gentoo  org>
AuthorDate: Mon Dec 12 02:34:23 2016 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Mon Dec 12 02:35:52 2016 +
URL:https://gitweb.gentoo.org/proj/gentoostats.git/commit/?id=b1a3e81e

app-portage/gentoostats: major improvements

- EAPI bump to 6
- Upgrade to git-r3 and distutils-r1
- Update HOMEPAGE
- Update the repo URI
- Update dependencies
- switch from src_* to python_*
- Install extra docs

Package-Manager: portage-2.3.0
RepoMan-Options: --force

 overlay/app-portage/gentoostats/Manifest   |  2 +-
 .../gentoostats/gentoostats-.ebuild| 56 --
 2 files changed, 32 insertions(+), 26 deletions(-)

diff --git a/overlay/app-portage/gentoostats/Manifest 
b/overlay/app-portage/gentoostats/Manifest
index 5c6ce28..22f9336 100644
--- a/overlay/app-portage/gentoostats/Manifest
+++ b/overlay/app-portage/gentoostats/Manifest
@@ -1 +1 @@
-EBUILD gentoostats-.ebuild 1744 RMD160 
c5f02ce5c22058e8acfc86fa21174a1cdd4a4b14 SHA1 
9336e063ab5ac5af441e228005f0474871913199 SHA256 
3fa8909182cd56c05670e340a3ab7a5a2f5b55919cd6f341cac3d3ec5dfa23fe
+EBUILD gentoostats-.ebuild 1980 SHA256 
795589bf865fc95a3352a93b7efb2118516e4592ae41c1cdd25574d1d1416205 SHA512 
c9be012eb95fa08d42cf81114a8e2f5a105728c3d65727f1cdfef7743ff943935d4d6d665d2700994c0b82e7457752ec9b06a80b320afe93fa5f749402e0eea8
 WHIRLPOOL 
7efa48f940a05c66e5e559260a643f36b06637fa35c5c218edcdaf7fcc3a50857d0507f9a26aa47297e2646808a8882668208c15e01db9cc579321a9b0664104

diff --git a/overlay/app-portage/gentoostats/gentoostats-.ebuild 
b/overlay/app-portage/gentoostats/gentoostats-.ebuild
index 8a7b064..c863b94 100644
--- a/overlay/app-portage/gentoostats/gentoostats-.ebuild
+++ b/overlay/app-portage/gentoostats/gentoostats-.ebuild
@@ -1,45 +1,52 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
+# $Id$
 
-EAPI=3
+EAPI=6
 
-inherit distutils python git-2
+PYTHON_COMPAT=( python2_7 )
+
+inherit git-r3 distutils-r1
 
 DESCRIPTION="Package statistics client"
-HOMEPAGE="http://soc.dev.gentoo.org/gentoostats";
+HOMEPAGE="https://wiki.gentoo.org/wiki/Gentoostats";
 SRC_URI=""
 
-EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoostats.git"
+EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoostats.git"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
 IUSE=""
 
-DEPEND=""
-RDEPEND="${DEPEND}
-   sys-apps/portage
-   >=app-portage/gentoolkit-0.3.0.2
-   dev-python/argparse
-   dev-python/simplejson"
+RDEPEND="
+   sys-apps/portage[${PYTHON_USEDEP}]
+   >=app-portage/gentoolkit-0.3.0.2[${PYTHON_USEDEP}]
+   dev-python/simplejson[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+   dev-python/setuptools[${PYTHON_USEDEP}]"
 
-src_compile() {
-   pushd "client"
-   distutils_src_compile
+python_compile() {
+   cd "${S}"/client || die
+   distutils-r1_python_compile
 }
 
-src_install() {
-   pushd "client"
-   distutils_src_install
+python_install() {
+   cd "${S}"/client || die
+   distutils-r1_python_install
+}
 
-   dodir /etc/gentoostats || die
+python_install_all() {
insinto /etc/gentoostats
-   doins payload.cfg || die
+   doins client/payload.cfg
 
# this doesn't work, why ?
-   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
+
+   dodoc docs/client.txt
+
+   distutils-r1_python_install_all
 }
 
 generate_uuid() {
@@ -56,11 +63,10 @@ generate_uuid() {
 }
 
 pkg_postinst() {
-   distutils_pkg_postinst
-
AUTHFILE="${ROOT}/etc/gentoostats/auth.cfg"
-   if ! [ -f "${AUTHFILE}" ]; then
+   if ! [[ -f "${AUTHFILE}" ]]; then
elog "Generating uuid and password in ${AUTHFILE}"
+   mkdir -p "$(dirname ${AUTHFILE})"
touch "${AUTHFILE}"
echo "[AUTH]" >> "${AUTHFILE}"
echo -n "UUID : " >> "${AUTHFILE}"