[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/

2020-07-08 Thread Lars Wendler
commit: 7a5bcaf3943523457c0a68a5b48ed36eb5724690
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Jul  8 14:58:35 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Jul  8 15:07:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a5bcaf3

x11-apps/radeon-profile-daemon: Synced live ebuild

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Lars Wendler  gentoo.org>

 .../radeon-profile-daemon/radeon-profile-daemon-.ebuild| 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
index 77f7239752b..dc4d37cb3a8 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -20,6 +20,7 @@ SLOT="0"
 IUSE=""
 
 RDEPEND="
+   !

[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/files/, x11-apps/radeon-profile-daemon/

2020-07-08 Thread Lars Wendler
commit: f312bbbf871b5557a3bdc46f58e628ad4d8a3255
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Jul  8 14:53:40 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Jul  8 15:07:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f312bbbf

x11-apps/radeon-profile-daemon: Revbump to improve socket permissions

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Lars Wendler  gentoo.org>

 ...radeon-profile-daemon-20190603-run_subdir.patch | 33 ++
 ...eon-profile-daemon-20190603-secure_socket.patch | 26 -
 .../files/radeon-profile-daemon.initd-r1   | 19 -
 .../files/radeon-profile-daemon.initd-r2   | 15 ++
 ...ld => radeon-profile-daemon-20190603-r1.ebuild} |  7 +++--
 5 files changed, 52 insertions(+), 48 deletions(-)

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-run_subdir.patch
 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-run_subdir.patch
new file mode 100644
index 000..24bc134fdf9
--- /dev/null
+++ 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-run_subdir.patch
@@ -0,0 +1,33 @@
+From 8aad288652cb7dc9c60eadd85d945ac43a712663 Mon Sep 17 00:00:00 2001
+From: Lars Wendler 
+Date: Wed, 8 Jul 2020 16:08:24 +0200
+Subject: [PATCH] Move radeon-profile-daemon-server socket file into its own
+ subdir under /run
+
+The rationale here is that QT has no methods to run chown on some
+files but we do not want the socket being world readable. So instead of
+writing lenghty C++-code using chown, we simply move the socket file into a
+subdir which we can put our preferred permissions on during startup of the
+daemon.
+
+Signed-off-by: Lars Wendler 
+---
+ radeon-profile-daemon/rpdthread.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/radeon-profile-daemon/rpdthread.h 
b/radeon-profile-daemon/rpdthread.h
+index 280fada..f05d031 100644
+--- a/radeon-profile-daemon/rpdthread.h
 b/radeon-profile-daemon/rpdthread.h
+@@ -31,7 +31,7 @@
+ #define SIGNAL_ALIVE '7'
+ 
+ const QString appVersion = "20190603";
+-const QString serverSocketPath = "/run/radeon-profile-daemon-server";
++const QString serverSocketPath = 
"/run/radeon-profile-daemon/radeon-profile-daemon-server";
+ 
+ class rpdThread : public QThread
+ {
+-- 
+2.27.0
+

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
deleted file mode 100644
index 951e7d12e28..000
--- 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 47ddfbb7b85c3e99eb0d132078c989c0dfa2ea9b Mon Sep 17 00:00:00 2001
-From: Lars Wendler 
-Date: Thu, 13 Jun 2019 15:58:44 +0200
-Subject: [PATCH] Don't make the socket world writable
-
-Signed-off-by: Lars Wendler 

- radeon-profile-daemon/rpdthread.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/radeon-profile-daemon/rpdthread.cpp 
b/radeon-profile-daemon/rpdthread.cpp
-index 8785efa..94a0d6f 100644
 a/radeon-profile-daemon/rpdthread.cpp
-+++ b/radeon-profile-daemon/rpdthread.cpp
-@@ -47,7 +47,7 @@ void rpdThread::createServer()
- 
- QLocalServer::removeServer(serverSocketPath);
- daemonServer.listen(serverSocketPath);
--QFile::setPermissions(serverSocketPath, 
QFile(serverSocketPath).permissions() | QFile::WriteOther | QFile::ReadOther);
-+QFile::setPermissions(serverSocketPath, 
QFile(serverSocketPath).permissions() | QFile::WriteGroup | QFile::ReadGroup);
- }
- 
- void rpdThread::closeConnection()
--- 
-2.22.0
-

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1
deleted file mode 100644
index 813ab9515ae..000
--- a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-description="Daemon for radeon-profile GUI"
-
-command="/usr/sbin/radeon-profile-daemon"
-command_background="true"
-pidfile="/run/${SVCNAME}.pid"
-
-radeon_socket="/run/radeon-profile-daemon-server"
-
-start_post() {
-   if ewaitfile 10 ${radeon_socket} ; then
-   chgrp video ${radeon_socket}
-   else
-   eerror "Failed to find socket file ${radeon_socket}"
-   fi
-}

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r2 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r2
new file mode 100644
index 000..28ed19d4e84
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r2
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed 

[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/, x11-apps/radeon-profile-daemon/files/

2019-10-16 Thread Lars Wendler
commit: 8da742249f42f6b77988f852bb27529b7132820b
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Oct 16 10:54:04 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Oct 16 10:54:22 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8da74224

x11-apps/radeon-profile-daemon: Removed old

Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Lars Wendler  gentoo.org>

 x11-apps/radeon-profile-daemon/Manifest|  1 -
 ...eon-profile-daemon-20190309-secure_socket.patch | 26 --
 .../files/radeon-profile-daemon.initd  | 27 --
 .../radeon-profile-daemon-20190309-r2.ebuild   | 60 --
 4 files changed, 114 deletions(-)

diff --git a/x11-apps/radeon-profile-daemon/Manifest 
b/x11-apps/radeon-profile-daemon/Manifest
index dae73dc833e..9a1f922d02f 100644
--- a/x11-apps/radeon-profile-daemon/Manifest
+++ b/x11-apps/radeon-profile-daemon/Manifest
@@ -1,2 +1 @@
-DIST radeon-profile-daemon-20190309.tar.gz 12178 BLAKE2B 
931ce4bb123456e349a68c8fe0b18150ff988a83a5e58cf451f68025240a8b4c802e03a567ef41684e91442bf21c02cc00d31ef6c82a67ca7eb7587754c6f32e
 SHA512 
f2bb6f7dc0bf322e5c43c5ca1f99501a4fd3f4532cc9c1686b5cfbc58bdd423e81c25d3ae03fcae9dc15dc92d8ad089b2357b27b0ff399de7ac27213e00b2f37
 DIST radeon-profile-daemon-20190603.tar.gz 12232 BLAKE2B 
3ff02f76178c2a30c8f094a2589aaed7d9e2c8ecc4cd0c8d3b6be1e38dddad39bbb4996ef9b7f87ef999890fbdade6ba3c6bcc39de6ae84bf1c224152a8249f1
 SHA512 
1c58008400f5acc5bd39353c6e2c109adecc4eb2b5d7976ce240d372cc60996ee93ce50630292ce85b9a1ae92d82e6cce49fd0ccb28f574bc668d212c50a54ab

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
deleted file mode 100644
index 5d7132b90b7..000
--- 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 8e75c8678b874c6813e590634943166daa98124b Mon Sep 17 00:00:00 2001
-From: Lars Wendler 
-Date: Fri, 10 May 2019 11:01:21 +0200
-Subject: [PATCH] Don't make the socket world writable
-
-Signed-off-by: Lars Wendler 

- radeon-profile-daemon/rpdthread.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/radeon-profile-daemon/rpdthread.cpp 
b/radeon-profile-daemon/rpdthread.cpp
-index 4cf0ac0..137d5b2 100644
 a/radeon-profile-daemon/rpdthread.cpp
-+++ b/radeon-profile-daemon/rpdthread.cpp
-@@ -47,7 +47,7 @@ void rpdThread::createServer()
- 
- QLocalServer::removeServer(serverName);
- daemonServer.listen(serverName);
--QFile::setPermissions("/tmp/" + serverName, QFile("/tmp/" + 
serverName).permissions() | QFile::WriteOther | QFile::ReadOther);
-+QFile::setPermissions("/tmp/" + serverName, QFile("/tmp/" + 
serverName).permissions() | QFile::WriteGroup | QFile::ReadGroup);
- }
- 
- void rpdThread::closeConnection()
--- 
-2.21.0
-

diff --git a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
deleted file mode 100644
index adbc0195e4b..000
--- a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-description="Daemon for radeon-profile GUI"
-
-command="/usr/sbin/radeon-profile-daemon"
-command_background="true"
-pidfile="/run/${SVCNAME}.pid"
-
-radeon_socket="/tmp/radeon-profile-daemon-server"
-
-wait_for_socket() {
-   local i=0
-   while [ ${i} -lt 10 ]; do
-   [ -S "${radeon_socket}" ] && return 0
-   i=$((${i}+1))
-   sleep 1
-   done
-
-   return 1
-}
-
-start_post() {
-   wait_for_socket || return 1
-   chgrp video ${radeon_socket}
-}

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild
deleted file mode 100644
index 924760fc909..000
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit qmake-utils systemd
-
-DESCRIPTION="Daemon for radeon-profile GUI"
-HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon;
-if [[ "${PV}" ==  ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git;
-else
-   SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE=""
-
-RDEPEND="
-   dev-qt/qtcore:5
-   dev-qt/qtnetwork:5
-"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/${P}/${PN}"
-
-PATCHES=(
-   

[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/, x11-apps/radeon-profile-daemon/files/

2019-06-13 Thread Lars Wendler
commit: 554169d137ed8565b7802bd3dcdf3d274f4ce4f1
Author: Lars Wendler  gentoo  org>
AuthorDate: Thu Jun 13 14:06:14 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Thu Jun 13 14:27:27 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=554169d1

x11-apps/radeon-profile-daemon: Adjusted live ebuild

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Lars Wendler  gentoo.org>

 ...eon-profile-daemon-20190603-secure_socket.patch | 26 ++
 .../files/radeon-profile-daemon.initd-r1   | 19 
 .../radeon-profile-daemon-.ebuild  |  4 ++--
 3 files changed, 47 insertions(+), 2 deletions(-)

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
new file mode 100644
index 000..951e7d12e28
--- /dev/null
+++ 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190603-secure_socket.patch
@@ -0,0 +1,26 @@
+From 47ddfbb7b85c3e99eb0d132078c989c0dfa2ea9b Mon Sep 17 00:00:00 2001
+From: Lars Wendler 
+Date: Thu, 13 Jun 2019 15:58:44 +0200
+Subject: [PATCH] Don't make the socket world writable
+
+Signed-off-by: Lars Wendler 
+---
+ radeon-profile-daemon/rpdthread.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/radeon-profile-daemon/rpdthread.cpp 
b/radeon-profile-daemon/rpdthread.cpp
+index 8785efa..94a0d6f 100644
+--- a/radeon-profile-daemon/rpdthread.cpp
 b/radeon-profile-daemon/rpdthread.cpp
+@@ -47,7 +47,7 @@ void rpdThread::createServer()
+ 
+ QLocalServer::removeServer(serverSocketPath);
+ daemonServer.listen(serverSocketPath);
+-QFile::setPermissions(serverSocketPath, 
QFile(serverSocketPath).permissions() | QFile::WriteOther | QFile::ReadOther);
++QFile::setPermissions(serverSocketPath, 
QFile(serverSocketPath).permissions() | QFile::WriteGroup | QFile::ReadGroup);
+ }
+ 
+ void rpdThread::closeConnection()
+-- 
+2.22.0
+

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1
new file mode 100644
index 000..813ab9515ae
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd-r1
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Daemon for radeon-profile GUI"
+
+command="/usr/sbin/radeon-profile-daemon"
+command_background="true"
+pidfile="/run/${SVCNAME}.pid"
+
+radeon_socket="/run/radeon-profile-daemon-server"
+
+start_post() {
+   if ewaitfile 10 ${radeon_socket} ; then
+   chgrp video ${radeon_socket}
+   else
+   eerror "Failed to find socket file ${radeon_socket}"
+   fi
+}

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
index 924760fc909..77f7239752b 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -28,7 +28,7 @@ DEPEND="${RDEPEND}"
 S="${WORKDIR}/${P}/${PN}"
 
 PATCHES=(
-   "${FILESDIR}/${P}-secure_socket.patch"
+   "${FILESDIR}/${PN}-20190603-secure_socket.patch"
 )
 
 src_prepare() {
@@ -51,7 +51,7 @@ src_configure() {
 src_install() {
emake INSTALL_ROOT="${D}" install
 
-   newinitd "${FILESDIR}"/${PN}.initd ${PN}
+   newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
 }
 
 pkg_postinst() {



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/

2019-06-13 Thread Lars Wendler
commit: 49de12341d21581d6e05345705ab9c46f40d28e6
Author: Lars Wendler  gentoo  org>
AuthorDate: Thu Jun 13 14:07:32 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Thu Jun 13 14:27:28 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49de1234

x11-apps/radeon-profile-daemon: Bump to version 20190603

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Lars Wendler  gentoo.org>

 x11-apps/radeon-profile-daemon/Manifest|  1 +
 .../radeon-profile-daemon-20190603.ebuild  | 60 ++
 2 files changed, 61 insertions(+)

diff --git a/x11-apps/radeon-profile-daemon/Manifest 
b/x11-apps/radeon-profile-daemon/Manifest
index 636a758f2f6..dae73dc833e 100644
--- a/x11-apps/radeon-profile-daemon/Manifest
+++ b/x11-apps/radeon-profile-daemon/Manifest
@@ -1 +1,2 @@
 DIST radeon-profile-daemon-20190309.tar.gz 12178 BLAKE2B 
931ce4bb123456e349a68c8fe0b18150ff988a83a5e58cf451f68025240a8b4c802e03a567ef41684e91442bf21c02cc00d31ef6c82a67ca7eb7587754c6f32e
 SHA512 
f2bb6f7dc0bf322e5c43c5ca1f99501a4fd3f4532cc9c1686b5cfbc58bdd423e81c25d3ae03fcae9dc15dc92d8ad089b2357b27b0ff399de7ac27213e00b2f37
+DIST radeon-profile-daemon-20190603.tar.gz 12232 BLAKE2B 
3ff02f76178c2a30c8f094a2589aaed7d9e2c8ecc4cd0c8d3b6be1e38dddad39bbb4996ef9b7f87ef999890fbdade6ba3c6bcc39de6ae84bf1c224152a8249f1
 SHA512 
1c58008400f5acc5bd39353c6e2c109adecc4eb2b5d7976ce240d372cc60996ee93ce50630292ce85b9a1ae92d82e6cce49fd0ccb28f574bc668d212c50a54ab

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190603.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190603.ebuild
new file mode 100644
index 000..77f7239752b
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190603.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Daemon for radeon-profile GUI"
+HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon;
+if [[ "${PV}" ==  ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git;
+else
+   SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE=""
+
+RDEPEND="
+   dev-qt/qtcore:5
+   dev-qt/qtnetwork:5
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/${PN}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-20190603-secure_socket.patch"
+)
+
+src_prepare() {
+   eapply -p2 "${PATCHES[@]}"
+   eapply_user
+
+   sed \
+   -e '/^bin\.path/s@/bin@/sbin@' \
+   -e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
+   -i radeon-profile-daemon.pro || die
+   sed \
+   -e '/^ExecStart/s@/bin/@/sbin/@' \
+   -i extra/${PN}.service || die
+}
+
+src_configure() {
+   eqmake5
+}
+
+src_install() {
+   emake INSTALL_ROOT="${D}" install
+
+   newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+}
+
+pkg_postinst() {
+   elog "Users need to be in the \"video\" group if they want to change"
+   elog "video card settings via ${PN}"
+}



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/files/

2019-05-11 Thread Lars Wendler
commit: 81ce3ca6fbc4d1e55fcf616c89fd85f2902f85b9
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat May 11 18:54:12 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat May 11 18:54:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81ce3ca6

x11-apps/radeon-profile-daemon: init script: wait for the socket creation

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 .../files/radeon-profile-daemon.initd| 16 +++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
index f8ec5179670..e67b9843c25 100644
--- a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
@@ -8,6 +8,20 @@ command="/usr/sbin/radeon-profile-daemon"
 command_background="true"
 pidfile="/run/${SVCNAME}.pid"
 
+radeon_socket="/tmp/radeon-profile-daemon-server"
+
+wait_for_socket() {
+   local i=0
+   while [ ${i} -lt 10 ]; do
+   [ -S "${radeon_socket}" ] && return 0
+   i=$((${i}+1))
+   sleep 1s
+   done
+
+   return 1
+}
+
 start_post() {
-   chgrp video /tmp/radeon-profile-daemon-server
+   wait_for_socket || return 1
+   chgrp video ${radeon_socket}
 }



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/files/

2019-05-11 Thread Lars Wendler
commit: 6646627db068904979e4eaba819e2e0c453c4f4c
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat May 11 18:58:20 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat May 11 18:58:20 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6646627d

x11-apps/radeon-profile-daemon: sleep only accepts integers in POSIX mode

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
index e67b9843c25..adbc0195e4b 100644
--- a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
@@ -15,7 +15,7 @@ wait_for_socket() {
while [ ${i} -lt 10 ]; do
[ -S "${radeon_socket}" ] && return 0
i=$((${i}+1))
-   sleep 1s
+   sleep 1
done
 
return 1



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/, x11-apps/radeon-profile-daemon/files/

2019-05-10 Thread Lars Wendler
commit: bf12cbcf32c902e9825583425340be3cb404dc09
Author: Lars Wendler  gentoo  org>
AuthorDate: Fri May 10 09:59:27 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri May 10 10:01:14 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf12cbcf

x11-apps/radeon-profile-daemon: Secured socket permissions.

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 ...eon-profile-daemon-20190309-secure_socket.patch | 26 ++
 .../files/radeon-profile-daemon.initd  |  4 
 ...ld => radeon-profile-daemon-20190309-r2.ebuild} | 13 ++-
 .../radeon-profile-daemon-.ebuild  | 13 ++-
 4 files changed, 54 insertions(+), 2 deletions(-)

diff --git 
a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
new file mode 100644
index 000..5d7132b90b7
--- /dev/null
+++ 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon-20190309-secure_socket.patch
@@ -0,0 +1,26 @@
+From 8e75c8678b874c6813e590634943166daa98124b Mon Sep 17 00:00:00 2001
+From: Lars Wendler 
+Date: Fri, 10 May 2019 11:01:21 +0200
+Subject: [PATCH] Don't make the socket world writable
+
+Signed-off-by: Lars Wendler 
+---
+ radeon-profile-daemon/rpdthread.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/radeon-profile-daemon/rpdthread.cpp 
b/radeon-profile-daemon/rpdthread.cpp
+index 4cf0ac0..137d5b2 100644
+--- a/radeon-profile-daemon/rpdthread.cpp
 b/radeon-profile-daemon/rpdthread.cpp
+@@ -47,7 +47,7 @@ void rpdThread::createServer()
+ 
+ QLocalServer::removeServer(serverName);
+ daemonServer.listen(serverName);
+-QFile::setPermissions("/tmp/" + serverName, QFile("/tmp/" + 
serverName).permissions() | QFile::WriteOther | QFile::ReadOther);
++QFile::setPermissions("/tmp/" + serverName, QFile("/tmp/" + 
serverName).permissions() | QFile::WriteGroup | QFile::ReadGroup);
+ }
+ 
+ void rpdThread::closeConnection()
+-- 
+2.21.0
+

diff --git a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
index e4e7afb04c5..f8ec5179670 100644
--- a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
@@ -7,3 +7,7 @@ description="Daemon for radeon-profile GUI"
 command="/usr/sbin/radeon-profile-daemon"
 command_background="true"
 pidfile="/run/${SVCNAME}.pid"
+
+start_post() {
+   chgrp video /tmp/radeon-profile-daemon-server
+}

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild
similarity index 81%
copy from x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
copy to x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild
index ca74330cfd3..924760fc909 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r2.ebuild
@@ -27,8 +27,14 @@ DEPEND="${RDEPEND}"
 
 S="${WORKDIR}/${P}/${PN}"
 
+PATCHES=(
+   "${FILESDIR}/${P}-secure_socket.patch"
+)
+
 src_prepare() {
-   default
+   eapply -p2 "${PATCHES[@]}"
+   eapply_user
+
sed \
-e '/^bin\.path/s@/bin@/sbin@' \
-e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
@@ -47,3 +53,8 @@ src_install() {
 
newinitd "${FILESDIR}"/${PN}.initd ${PN}
 }
+
+pkg_postinst() {
+   elog "Users need to be in the \"video\" group if they want to change"
+   elog "video card settings via ${PN}"
+}

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
index ca74330cfd3..924760fc909 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -27,8 +27,14 @@ DEPEND="${RDEPEND}"
 
 S="${WORKDIR}/${P}/${PN}"
 
+PATCHES=(
+   "${FILESDIR}/${P}-secure_socket.patch"
+)
+
 src_prepare() {
-   default
+   eapply -p2 "${PATCHES[@]}"
+   eapply_user
+
sed \
-e '/^bin\.path/s@/bin@/sbin@' \
-e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
@@ -47,3 +53,8 @@ src_install() {
 
newinitd "${FILESDIR}"/${PN}.initd ${PN}
 }
+
+pkg_postinst() {
+   elog "Users need to be in the \"video\" group if they want to change"
+   elog "video card settings via ${PN}"
+}



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/

2019-05-10 Thread Lars Wendler
commit: 4f5c24e5e8991b3cff452dc6ef5c445f88367fbb
Author: Lars Wendler  gentoo  org>
AuthorDate: Fri May 10 10:00:14 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri May 10 10:01:15 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f5c24e5

x11-apps/radeon-profile-daemon: Removed old.

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 .../radeon-profile-daemon-20190309-r1.ebuild   | 49 --
 1 file changed, 49 deletions(-)

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
deleted file mode 100644
index ca74330cfd3..000
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit qmake-utils systemd
-
-DESCRIPTION="Daemon for radeon-profile GUI"
-HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon;
-if [[ "${PV}" ==  ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git;
-else
-   SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE=""
-
-RDEPEND="
-   dev-qt/qtcore:5
-   dev-qt/qtnetwork:5
-"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/${P}/${PN}"
-
-src_prepare() {
-   default
-   sed \
-   -e '/^bin\.path/s@/bin@/sbin@' \
-   -e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
-   -i radeon-profile-daemon.pro || die
-   sed \
-   -e '/^ExecStart/s@/bin/@/sbin/@' \
-   -i extra/${PN}.service || die
-}
-
-src_configure() {
-   eqmake5
-}
-
-src_install() {
-   emake INSTALL_ROOT="${D}" install
-
-   newinitd "${FILESDIR}"/${PN}.initd ${PN}
-}



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/

2019-04-21 Thread Lars Wendler
commit: 5b260c33d920221be83e5ffc47c040f8d34ad3f9
Author: Lars Wendler  gentoo  org>
AuthorDate: Sun Apr 21 19:38:09 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sun Apr 21 19:39:20 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b260c33

x11-apps/radeon-profile-daemon: Added missing dependencies

Closes: https://bugs.gentoo.org/684040
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 .../radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild  | 6 ++
 .../radeon-profile-daemon/radeon-profile-daemon-.ebuild | 6 ++
 2 files changed, 12 insertions(+)

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
index bacc9cb267d..ca74330cfd3 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
@@ -19,6 +19,12 @@ SLOT="0"
 
 IUSE=""
 
+RDEPEND="
+   dev-qt/qtcore:5
+   dev-qt/qtnetwork:5
+"
+DEPEND="${RDEPEND}"
+
 S="${WORKDIR}/${P}/${PN}"
 
 src_prepare() {

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
index bacc9cb267d..ca74330cfd3 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -19,6 +19,12 @@ SLOT="0"
 
 IUSE=""
 
+RDEPEND="
+   dev-qt/qtcore:5
+   dev-qt/qtnetwork:5
+"
+DEPEND="${RDEPEND}"
+
 S="${WORKDIR}/${P}/${PN}"
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/files/, x11-apps/radeon-profile-daemon/

2019-04-20 Thread Lars Wendler
commit: 2889250af852e491b4718ccc552a435205ca54f5
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat Apr 20 13:06:36 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat Apr 20 13:08:44 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2889250a

x11-apps/radeon-profile-daemon: Initial commit

Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 x11-apps/radeon-profile-daemon/Manifest|  1 +
 .../files/radeon-profile-daemon.initd  |  9 +
 x11-apps/radeon-profile-daemon/metadata.xml| 11 ++
 .../radeon-profile-daemon-20190309.ebuild  | 40 ++
 .../radeon-profile-daemon-.ebuild  | 40 ++
 5 files changed, 101 insertions(+)

diff --git a/x11-apps/radeon-profile-daemon/Manifest 
b/x11-apps/radeon-profile-daemon/Manifest
new file mode 100644
index 000..636a758f2f6
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/Manifest
@@ -0,0 +1 @@
+DIST radeon-profile-daemon-20190309.tar.gz 12178 BLAKE2B 
931ce4bb123456e349a68c8fe0b18150ff988a83a5e58cf451f68025240a8b4c802e03a567ef41684e91442bf21c02cc00d31ef6c82a67ca7eb7587754c6f32e
 SHA512 
f2bb6f7dc0bf322e5c43c5ca1f99501a4fd3f4532cc9c1686b5cfbc58bdd423e81c25d3ae03fcae9dc15dc92d8ad089b2357b27b0ff399de7ac27213e00b2f37

diff --git a/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd 
b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
new file mode 100644
index 000..e4e7afb04c5
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/files/radeon-profile-daemon.initd
@@ -0,0 +1,9 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Daemon for radeon-profile GUI"
+
+command="/usr/sbin/radeon-profile-daemon"
+command_background="true"
+pidfile="/run/${SVCNAME}.pid"

diff --git a/x11-apps/radeon-profile-daemon/metadata.xml 
b/x11-apps/radeon-profile-daemon/metadata.xml
new file mode 100644
index 000..1b9303f07e9
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/metadata.xml
@@ -0,0 +1,11 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+polynomia...@gentoo.org
+Lars Wendler
+  
+  
+marazmista/radeon-profile-daemon
+  
+

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild
new file mode 100644
index 000..052a3ef3b33
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Daemon for radeon-profile GUI"
+HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon;
+if [[ "${PV}" ==  ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git;
+else
+   SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE=""
+
+S="${WORKDIR}/${P}/${PN}"
+
+src_prepare() {
+   default
+   sed \
+   -e '/^bin\.path/s@/bin@/sbin@' \
+   -e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
+   -i radeon-profile-daemon.pro || die
+}
+
+src_configure() {
+   eqmake5
+}
+
+src_install() {
+   emake INSTALL_ROOT="${D}" install
+
+   newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
new file mode 100644
index 000..052a3ef3b33
--- /dev/null
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Daemon for radeon-profile GUI"
+HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon;
+if [[ "${PV}" ==  ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git;
+else
+   SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE=""
+
+S="${WORKDIR}/${P}/${PN}"
+
+src_prepare() {
+   default
+   sed \
+   -e '/^bin\.path/s@/bin@/sbin@' \
+   -e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
+   -i radeon-profile-daemon.pro || die
+}
+
+src_configure() {
+   eqmake5
+}
+
+src_install() {
+   emake INSTALL_ROOT="${D}" install
+
+   newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}



[gentoo-commits] repo/gentoo:master commit in: x11-apps/radeon-profile-daemon/

2019-04-20 Thread Lars Wendler
commit: eb42189f3fdc569f7dccd3325a6b3c6fe75fe694
Author: Lars Wendler  gentoo  org>
AuthorDate: Sat Apr 20 18:39:47 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sat Apr 20 18:40:06 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb42189f

x11-apps/radeon-profile-daemon: Fixed daemon path in systemd service

Thanks-to: Michael Cook  mackal.net>
Closes: https://bugs.gentoo.org/683914
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 ...daemon-20190309.ebuild => radeon-profile-daemon-20190309-r1.ebuild} | 3 +++
 x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild   | 3 +++
 2 files changed, 6 insertions(+)

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
similarity index 91%
rename from x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild
rename to 
x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
index 052a3ef3b33..bacc9cb267d 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-20190309-r1.ebuild
@@ -27,6 +27,9 @@ src_prepare() {
-e '/^bin\.path/s@/bin@/sbin@' \
-e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
-i radeon-profile-daemon.pro || die
+   sed \
+   -e '/^ExecStart/s@/bin/@/sbin/@' \
+   -i extra/${PN}.service || die
 }
 
 src_configure() {

diff --git 
a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild 
b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
index 052a3ef3b33..bacc9cb267d 100644
--- a/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
+++ b/x11-apps/radeon-profile-daemon/radeon-profile-daemon-.ebuild
@@ -27,6 +27,9 @@ src_prepare() {
-e '/^bin\.path/s@/bin@/sbin@' \
-e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
-i radeon-profile-daemon.pro || die
+   sed \
+   -e '/^ExecStart/s@/bin/@/sbin/@' \
+   -i extra/${PN}.service || die
 }
 
 src_configure() {